Quadratic Conditional Lower Bounds for String Problems and Dynamic Time Warping
Not on the map. Why?
Abstract (arXiv)
Classic similarity measures of strings are longest common subsequence and Levenshtein distance (i.e., the classic edit distance). A classic similarity measure of curves is dynamic time warping. These measures can be computed by simple O(n2) dynamic programming algorithms, and despite much effort no algorithms with significantly better running time are known. We prove that, even restricted to binary strings or one-dimensional curves, respectively, these measures do not have strongly subquadratic time algorithms, i.e., no algorithms with running time O(n2-varepsilon) for any varepsilon > 0, unless the Strong Exponential Time Hypothesis fails. We generalize the result to edit distance for arbitrary fixed costs of the four operations (deletion in one of the two strings, matching, substitution), by identifying trivial cases that can be solved in constant time, and proving quadratic-time hardness on binary strings for all other cost choices. This improves and generalizes the known hardness result for Levenshtein distance [Backurs, Indyk STOC'15] by the restriction to binary strings and the generalization to arbitrary costs, and adds important problems to a recent line of research showing conditional lower bounds for a growing number of quadratic time problems. As our main technical contribution, we introduce a framework for proving quadratic-time hardness of similarity measures. To apply the framework it suffices to construct a single gadget, which encapsulates all the expressive power necessary to emulate a reduction from satisfiability. Finally, we prove quadratic-time hardness for longest palindromic subsequence and longest tandem subsequence via reductions from longest common subsequence, showing that conditional lower bounds based on the Strong Exponential Time Hypothesis also apply to string problems that are not necessarily similarity measures.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Feb 2015.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 1; 2023: 1; 2024: 1; 2025: 2.
6 papers.
- 2022On The Computational Complexity of Self-Attentioncited by 137
- 2025Improved Learning via k-DTW: A Novel Dissimilarity Measure for Curvescited by 2
- 2021On Complexity of 1-Center in Various Metricscited by 1
- 2023On the Fine-Grained Hardness of Inverting Generative Modelscited by 1
- 2024Directed Regular and Context-Free Languagescited by 0
- 2025Resource Constrained Pathfinding with A* and Negative Weightscited by 0
- 2025Improved Learning via k-DTW: A Novel Dissimilarity Measure for Curves29 May 2025
- 2025Resource Constrained Pathfinding with A* and Negative Weights14 Mar 2025
- 2024Directed Regular and Context-Free Languages13 Jan 2024
- 2023On the Fine-Grained Hardness of Inverting Generative Models11 Sep 2023
- 2022On The Computational Complexity of Self-Attention11 Sep 2022
- 2021On Complexity of 1-Center in Various Metrics6 Dec 2021