利用弱因子识别加速字符串匹配
Speeding Up String Matching by Weak Factor Recognition
摘要:
字符串匹配是找到与给定模式匹配的文本的所有子字符串的问题。它是计算机科学中研究最多的问题之一,主要是由于它在几个领域中的非常不同的应用。近年来,字符串匹配领域的研究主要集中在搜索过程的效率和灵活性上,并且已经提出了非常有效的技术来加速现有的解决方案。在这种情况下,基于因素识别的算法是最好的解决方案之一。在本文中,我们提出了一个简单的和非常有效的字符串匹配算法的基础上弱因子识别和散列。我们的算法有一个二次最坏情况下的运行时间。然而,尽管它的二次复杂性,实验结果表明,我们的算法在大多数情况下获得最佳的运行时间相比,在各种条件下,对文献中最有效的算法。在小字母和长模式的情况下,运行时间的增益达到28%。这使得我们提出的算法在实际情况下最灵活的解决方案之一。
英文摘要:
String matching is the problem of finding all the substrings of a text which match a given pattern. It is one of the most investigated problems in computer science, mainly due to its very diverse applications in several fields. Recently, much research in the string matching field has focused on the efficiency and flexibility of the searching procedure and quite effective techniques have been proposed for speeding up the existing solutions. In this context, algorithms based on factors recognition are among the best solutions. In this paper, we present a simple and very efficient algorithm for string matching based on a weak factor recognition and hashing. Our algorithm has a quadratic worst-case running time. However, despite its quadratic complexity, experimental results show that our algorithm obtains in most cases the best running times when compared, under various conditions, against the most effective algorithms present in literature. In the case of small alphabets and long patterns, the gain in running times reaches 28%. This makes our proposed algorithm one of the most flexible solutions in practical cases.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。