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

字符串比较的快速算法

Faster Algorithm of String Comparison

Qi Xiao Yang, Sung Sam Yuan, Lu Chun, Li Zhao, Sun Peng

摘要:

在许多应用中,需要确定字符串的相似性。编辑距离[WF 74]方法是确定字段相似性的经典方法。一个众所周知的动态规划算法[GUS 97]用于计算编辑距离,其时间复杂度为O(nm)。(for最坏的情况,平均情况,甚至最好的情况)而不是继续改进编辑距离方法,[LL+99]采用了一种全新的方法-基于令牌的方法。它的新概念token-base-retain原始语义信息,良好的时间复杂度O(nm)(最坏,平均和最好的情况下)和良好的实验性能,使它在这方面的一个里程碑式的文件。进一步的研究表明,其字段相似度算法仍有改进的空间。本文提出了一种基于子串的字段相似度判定算法。综合起来,新算法不仅获得了更高的精度,而且在最坏情况下的时间复杂度为O(knm)(k<0.75),平均情况下的时间复杂度为O(*n),其中<6,最好情况下的时间复杂度为O(1)。在整个文件中,我们使用的比较例子的方法,以显示更高的准确性,我们的算法相比,在[LL+99]中提出的。理论分析、具体实例和实验结果表明,该算法能显著提高场相似度计算的准确性和时间复杂度。[US97] D.古塞尔德计算机科学和计算生物学中字符串、树和序列的算法。[LL Mong Li Lee,Cleansing data for mining and warehousing,第10届数据库和专家系统应用国际会议论文集(DEXA 99),第751-760页,1999年8月。[WF74] R. Wagner和M. Fisher,The String to String Correction Problem,JACM 21,168-173,1974。

英文摘要:

In many applications, it is necessary to determine the string similarity. Edit distance[WF74] approach is a classic method to determine Field Similarity. A well known dynamic programming algorithm [GUS97] is used to calculate edit distance with the time complexity O(nm). (for worst case, average case and even best case) Instead of continuing with improving the edit distance approach, [LL+99] adopted a brand new approach-token-based approach. Its new concept of token-base-retain the original semantic information, good time complex-O(nm) (for worst, average and best case) and good experimental performance make it a milestone paper in this area. Further study indicates that there is still room for improvement of its Field Similarity algorithm. Our paper is to introduce a package of substring-based new algorithms to determine Field Similarity. Combined together, our new algorithms not only achieve higher accuracy but also gain the time complexity O(knm) (k<0.75) for worst case, O(*n) where <6 for average case and O(1) for best case. Throughout the paper, we use the approach of comparative examples to show higher accuracy of our algorithms compared to the one proposed in [LL+99]. Theoretical analysis, concrete examples and experimental result show that our algorithms can significantly improve the accuracy and time complexity of the calculation of Field Similarity. [US97] D. Guseld. Algorithms on Strings, Trees and Sequences, in Computer Science and Computational Biology. [LL+99] Mong Li Lee, Cleansing data for mining and warehousing, In Proceedings of the 10th International Conference on Database and Expert Systems Applications (DEXA99), pages 751-760,August 1999. [WF74] R. Wagner and M. Fisher, The String to String Correction Problem, JACM 21 pages 168-173, 1974.

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

↑