Computable Bounds and Monte Carlo Estimates of the Expected Edit Distance
Abstract
The edit distance is a metric of dissimilarity between strings, widely applied in computational biology, speech recognition, and machine learning. Let denote the average edit distance between random, independent strings of characters from an alphabet of size . For , it is an open problem how to efficiently compute the exact value of as well as of , a limit known to exist. This paper shows that , for a specific , a result which implies that is computable. The exact computation of is explored, leading to an algorithm running in time , a complexity that makes it of limited practical use. An analysis of statistical estimates is proposed, based on McDiarmid's inequality, showing how can be evaluated with good accuracy, high confidence level, and reasonable computation time, for values of say up to a quarter million. Correspondingly, 99.9\% confidence intervals of width approximately are obtained for . Combinatorial arguments on edit scripts are exploited to analytically characterize an efficiently computable lower bound to , such that . In general, ; for greater than a few dozens, computing is much faster than generating good statistical estimates with confidence intervals of width . The techniques developed in the paper yield improvements on most previously published numerical values as well as results for alphabet sizes and string lengths not reported before.
Keywords
Cite
@article{arxiv.2211.07644,
title = {Computable Bounds and Monte Carlo Estimates of the Expected Edit Distance},
author = {Gianfranco Bilardi and Michele Schimd},
journal= {arXiv preprint arXiv:2211.07644},
year = {2024}
}
Comments
42 pages, 1 figure, 9 tables, submitted for review