arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2307.11496cs.IR
收藏

基于压缩和签名的Levenshtein距离快速估计用于文档相似性识别

Identifying document similarity using a fast estimation of the Levenshtein Distance based on compression and signatures

Peter Coates, Frank Breitinger

AI总结:

针对Levenshtein距离二次时间复杂度不适用于大文档相似性识别的问题,提出基于压缩签名的快速估计算法,兼具效率与准确性,还引入显著性分数辅助相关文档识别。

摘要:

文档相似性识别在源代码分析、抄袭检测等场景有诸多应用,但相似性识别并非易事,且时间复杂度较高。例如,Levenshtein距离(编辑距离)是定义两篇文档相似性的常用指标,但它的运行时间为二次级,对于几百KB及以上的大文档来说并不实用。本文提出了一种可估计Levenshtein距离的新概念:该算法首先利用用户定义的压缩比,将文档压缩为签名(类似于哈希值);随后可在满足一定约束的条件下对签名进行两两比较,输出结果即为估计的Levenshtein距离。我们的评估显示,该方法在运行效率和准确性方面均表现出良好效果。此外,我们还提出了一种显著性分数,供审查人员设置阈值以识别相关文档。

英文摘要:

Identifying document similarity has many applications, e.g., source code analysis or plagiarism detection. However, identifying similarities is not trivial and can be time complex. For instance, the Levenshtein Distance is a common metric to define the similarity between two documents but has quadratic runtime which makes it impractical for large documents where large starts with a few hundred kilobytes. In this paper, we present a novel concept that allows estimating the Levenshtein Distance: the algorithm first compresses documents to signatures (similar to hash values) using a user-defined compression ratio. Signatures can then be compared against each other (some constrains apply) where the outcome is the estimated Levenshtein Distance. Our evaluation shows promising results in terms of runtime efficiency and accuracy. In addition, we introduce a significance score allowing examiners to set a threshold and identify related documents.

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

↑