Average edit distance between two random binary strings
Description of constant
Let $e_n$ be the expected edit distance (the least number of single-letter insertions, deletions and substitutions turning one string into the other) between two independent uniformly random binary strings of length $n$. Then $C_{91} := \lim_{n \to \infty} e_n/n$; the limit exists by subadditivity, and $C_{91} \leq e_n/n$ for every $n$.
Known upper bounds
| Bound | Reference | Comments |
|---|---|---|
| $1/2$ | Trivial | The expected Hamming distance |
| $0.36932$ | [BS2026] | Computer assisted: the exact value of $e_{24}/24$ (Table 7 of the paper) |
| $0.315514$ | [R2024] | Computer assisted: Lueker’s technique [L2009] adapted to the edit distance, with $h=17$ |
Known lower bounds
| Bound | Reference | Comments |
|---|---|---|
| $0.162377$ | [D1994] | From $C_{91} \geq 1 - C_{31a}$ and Dančík’s $C_{31a} \leq 0.837623$, as tabulated in [BS2026], Table 1 |
| $0.17372$ | [L2009] | From $C_{91} \geq 1 - C_{31a}$ and $C_{31a} \leq 0.826280$ |
| $0.157761$ | [GMR2016] | Volume argument; value computed in [BS2026], Table 1 |
| $0.170552$ | [BS2026] | Computer assisted |
| $0.178037$* | [T2026] | From $C_{91} \geq 1 - C_{31a}$ and $C_{31a} \leq 0.821963$, which [T2026] proves with a Lean 4 formalization |
| $0.216276$ | [J2026] | First-moment count of canonical optimal alignments (alignments obeying five local rules that every pair of strings satisfies with some optimal alignment), done exactly with a transfer matrix; exact rational certificate (rational $x$, $t$ and a positive vector $v$ with $Av < v$) and a matrix-free check, both in the linked repository. Independently replayed from the argument and the two numbers $x$, $t$ alone, with no code shared, by A. Canli [Can2026]. |
| $0.265988$* | [Pin2026] | First-moment count of canonical optimal alignments, extending [J2026]: round 6 adds 4,000 longer exact-DP-verified forbidden words and eight even Walsh input-correlation statistics on round 5’s gap-debt frontier with a bit-complement quotient. Exact integer majorant row checks and Arb/rational exponent checks; independently written different-model full finite replay. The bound as a whole remains L0 because the universal bridges are proved only in prose; finite component: L1. |
Additional comments
- The [Pin2026] update replaces the previous claim 0.263561. It retains Leandre Jack’s #273 canonical-alignment first moment and the canonical-counting antecedents [GMR2016] and [BS2026].
- Bilardi and Schimd estimate $C_{91} \approx 0.27496$ by Monte Carlo at $n = 2^{15}$, with $0.999$-confidence interval $[0.26108, 0.28884]$ [BS2026, Table 6].
- $C_{91} \geq 1 - C_{31a}$ (with $C_{31a}$ the binary Chvátal–Sankoff constant), since an alignment with $m$ matches costs at least $n - m$; the [D1994], [L2009] and [T2026] rows come from this.
- The same constant for $k$-letter alphabets is studied in [R2024], [BS2026] and [J2026]; [J2026] gives lower bounds for $k = 2, \dots, 8, 16, 32$, for example $0.424710$* for $k = 4$ (previously $0.359783$ [BS2026]).
References
- [BS2026] Bilardi, Gianfranco, and Michele Schimd. “Computable bounds and Monte Carlo estimates of the expected edit distance.” Information 17 (2026): 685. doi:10.3390/info17070685. Preprint arXiv:2211.07644 (2022).
- [Can2026] Canli, Arhan. Independent replay of the [J2026] certificate for $C_{91} \geq 0.216276$, comment in pull request #273 (7 Nov 2026); code at commit
3a3662f. - [D1994] Dancík, Vladimír. Expected length of longest common subsequences. Diss. University of Warwick, 1994. Available at https://wrap.warwick.ac.uk/id/eprint/107547/1/WRAP_Theses_Dancik_1994.pdf
- [GMR2016] Ganguly, Shirshendu, Elchanan Mossel, and Miklós Z. Rácz. “Sequence assembly from corrupted shotgun reads.” arXiv preprint (2016) arXiv:1601.07086.
- [J2026] Jack, Leandre. Lower bounds on the average edit distance between two random strings (2026). The argument, code, certificates, exhaustive checks and two reviews are at https://github.com/leandrejack-afk/chvatal-sankoff-bound/tree/574220e/edit-distance-lower (commit 574220e).
- [L2009] Lueker, George S. “Improved bounds on the average length of longest common subsequences.” Journal of the ACM (JACM) 56.3 (2009): 1-38. Available at https://dl.acm.org/doi/pdf/10.1145/1516512.1516519
- [Pin2026] Pinho, R. C91 >= 0.265988: canonical alignments with longer forbidden words and eight Walsh statistics. GitHub repository rpinho/math-certificates, unrefereed, 3 November 2026. AI-assisted analysis.
- [R2024] Rosenfeld, Matthieu. “Upper bounds on the average edit distance between two random strings.” arXiv preprint (2024) arXiv:2407.18113.
- [T2026] Tomar, T. S. “Certified upper bounds for the Chvátal–Sankoff constant.” Zenodo (2026). doi:10.5281/zenodo.23610945
Contribution notes
The [J2026] row was prepared with the help of a large language model; the computation was checked as described in the linked repository.
The [Pin2026] row: the search, the certificate, the verifier and the row text were prepared by AI agents under the direction of R. Pinho, who reviewed the results at summary level. It has not been verified line by line by a human.