← News

ResearchSources: arXiv · 1 Dec 2026

Researchers propose cut-paste metrics for string matching that model substring reordering

An arXiv paper argues the standard edit metric poorly reflects how strings change in real applications and introduces entropy-based cut-paste metrics with practical algorithms for finding best matches.

In plain words

Approximate string matching is the task of finding text that is close, but not identical, to a search string. The paper's authors say the usual way of measuring closeness, the edit metric, does not capture how strings actually change in applications, where chunks of text get moved around. They define new cut-paste measures that treat moving a substring as cheap, and give an algorithm to compute best matches under one such measure.

What was announced

Writing on arXiv, the authors state that theoretical work on approximate string matching, both in 1995 when the paper was written and today, rests largely on the edit metric or minor variations of it, which they argue does not qualitatively reflect the principal processes through which strings change in applications. Their remedy is a family of entropy-based cut-paste metrics in which reordering a substring costs sublinearly, meaning the cost grows more slowly than the length of the moved piece.

The paper then exhibits a specific cut-paste metric for which best matches can be practically computed. Given a text of length n, a search string of length m, and at most k paste and insertion errors allowed, the closest text substring can be found in O(nk log m) time and O(m(k + log m)) space, provided the search string has a suffix tree of depth O(log m), a condition the authors describe as typical. They also demonstrate a non-symmetric variant of the metric that finds best matches containing long gaps within the same time and space bounds.

What it does not show

  • The source is an abstract only, so the full paper's proofs, experiments and applications are not covered here.
  • The claimed running time and space bounds come from the authors and have not been independently verified.
  • The efficiency guarantee depends on the search string having a suffix tree of depth O(log m), which the authors call typical but do not prove universal.

Sources

Source-support review completed 5 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 5 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.