[Paper Review] Quadratic Conditional Lower Bounds for String Problems and Dynamic Time Warping
This paper establishes conditional quadratic-time lower bounds for fundamental string and curve similarity problems, including edit distance, dynamic time warping, longest common subsequence, longest palindromic subsequence, and longest tandem subsequence, under the Strong Exponential Time Hypothesis (SETH). It introduces a general framework for proving such lower bounds via a single, expressive gadget that enables reductions from satisfiability, demonstrating that no strongly subquadratic algorithms exist for these problems on binary strings or one-dimensional curves unless SETH fails.
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(n^2)$ 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(n^{2-\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.
Motivation & Objective
- To explain why classic string and curve similarity problems have resisted faster algorithms despite decades of research.
- To establish strong evidence that the known O(n²) dynamic programming algorithms for these problems are optimal up to lower-order factors.
- To extend and generalize prior conditional lower bounds—especially for Levenshtein distance and Fréchet distance—to broader classes of problems, including arbitrary edit operation costs and non-similarity measures like longest palindromic subsequence.
- To develop a general, reusable framework for proving quadratic-time hardness of similarity measures via a single, powerful reduction gadget.
Proposed method
- Introduces a novel reduction framework that reduces k-SAT to similarity problems using a single, carefully constructed gadget that captures all necessary expressive power.
- Uses the Strong Exponential Time Hypothesis (SETH) as the underlying complexity assumption to derive conditional lower bounds.
- Constructs reductions from k-SAT to edit distance with arbitrary operation costs, proving quadratic-time hardness for all non-trivial cost combinations on binary strings.
- Applies the same framework to dynamic time warping, showing it is also hard to compute in strongly subquadratic time on one-dimensional curves.
- Reduces longest common subsequence (LCS) to longest palindromic subsequence (LPS) and longest tandem subsequence (LTS), transferring the lower bound to these non-similarity measures.
- Employs combinatorial facts about subsequence distances (e.g., monotonicity, subadditivity) to bound the length of resulting subsequences in the reductions.
Experimental results
Research questions
- RQ1Can we prove that edit distance with arbitrary operation costs cannot be computed in strongly subquadratic time on binary strings?
- RQ2Is dynamic time warping on one-dimensional curves also subject to a quadratic-time lower bound under SETH?
- RQ3Can the conditional lower bound technique be generalized beyond similarity measures to other string problems like LPS and LTS?
- RQ4Is there a unified framework that enables such lower bounds for a broad class of string and curve similarity problems?
- RQ5Can the same reduction gadget be used to prove hardness for multiple problems, simplifying future lower bound proofs?
Key findings
- Edit distance with any non-trivial choice of operation costs (including Levenshtein distance) cannot be computed in O(n²−ε) time for any ε>0 on binary strings unless SETH fails.
- Dynamic time warping on one-dimensional curves also lacks strongly subquadratic algorithms under SETH, extending prior hardness results to this fundamental curve similarity measure.
- Longest palindromic subsequence and longest tandem subsequence are shown to be quadratic-time hard via reductions from LCS, proving that SETH-based lower bounds apply even to non-similarity measures.
- The proposed framework reduces the task of proving quadratic-time hardness to constructing a single, universal gadget, significantly streamlining future lower bound proofs.
- The results hold even when restricted to binary strings or one-dimensional curves, strengthening the evidence that current O(n²) algorithms are optimal up to lower-order terms.
- The paper generalizes and improves upon prior work, such as Backurs and Indyk’s 2015 SETH-based lower bound for Levenshtein distance, by extending it to arbitrary costs and binary alphabets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.