计算机科学 > 数据结构与算法
[提交于 2026年11月29日]
标题:Cut-Paste Metrics: A More Natural Approach to Approximate String Matching
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Despite the breadth of application of approximate string matching, the current body of theoretical work [both in 1995 when this paper was written, and today] is largely based on a metric (the so-called edit metric) [or minor variations of it] which does not qualitatively reflect the principal processes through which strings change in applications. To remedy this, we introduce the notion of [entropy-based] cut-paste metrics, in which substring reordering can be accomplished at sublinear cost. We then exhibit a specific cut-paste metric for which best matches can be practically computed. With a text string of length $n$, a search string of length $m$, and at most $k$ paste and insertion errors allowed, the text substring closest to the search string can be found in $O(n k\log m)$ time and $O(m(k+\log m))$ space, provided that the search string has a suffix tree of depth $O(\log m)$ (which is typical). We furthermore demonstrate a non-symmetric cut-paste metric which allows best matches containing long gaps to be computed in the same time and space.
提交历史
来自:Paul Burchard[v1] 2026年11月29日 星期日 22:46:28 UTC (11 KB)