arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1608.08346cs.DS
收藏

一族快速精确模式匹配算法

A family of fast exact pattern matching algorithms

Igor O. Zavadskyi

摘要:

描述了一类基于比较的精确模式匹配算法。它们利用多维数组,以便在搜索周期的每次迭代中处理多个相邻的文本窗口。这种方法以空间为代价降低了平均时间复杂度。这一系列的算法表现良好的短模式和中等大小的字母。在这种情况下,窗口的几个模式的长度一次移动是很有可能的,这是算法成功的主要因素。我们的算法优于Boyer-Moore-Horspool算法,无论是在原始版本中还是在星期天的快速搜索修改中,在一个宽的图案长度-字母表大小的平面区域中。在某些子区域,所提出的算法是所有已知的精确模式匹配算法中最快的。也就是说,当字母大小为约30-40并且模式长度为约4-10时,它们表现最好。这样的参数对于在自然语言文本数据库中的搜索是典型的。

英文摘要:

A family of comparison-based exact pattern matching algorithms is described. They utilize multi-dimensional arrays in order to process more than one adjacent text window in each iteration of the search cycle. This approach leads to a lower average time complexity by the cost of space. The algorithms of this family perform well for short patterns and middle size alphabets. In such case the shift of the window by several pattern lengths at once is quite probable, which is the main factor of algorithm success. Our algorithms outperform the Boyer-Moore-Horspool algorithm, either in the original version or with Sunday's Quick search modification, in a wide area of pattern length - alphabet size plane. In some subareas the proposed algorithms are the fastest among all known exact pattern matching algorithms. Namely, they perform best when alphabet size is about 30-40 and pattern length is about 4-10. Such parameters are typical for search in natural language text databases.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑