Technology beats algorithms in exact string matching

Periodicals(2017)

引用 11|浏览42
暂无评分
摘要
AbstractMore than 120 algorithms have been developed for exact string matching within the last 40ï źyears. We show by experiments that the naïve algorithm exploiting SIMD instructions of modern CPUs with symbols compared in a special order is the fastest one for patterns of length up to about 50 symbols and extremely good for longer patterns and small alphabets. The algorithm compares 16 or 32 characters in parallel by applying SSE2 or AVX2 instructions, respectively. Moreover, it uses loop peeling to further speed up the searching phase. We tried several orders for comparisons of pattern symbols, and the increasing order of their probabilities in the text was the best.
更多
查看译文
关键词
AVX2,exact string matching,SIMD instructions,SSE2
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要