Abstract
This paper introduces the first deterministic, polynomial-time algorithms to approximate three fundamental string measures—Edit Distance (ED), Longest Common Subsequence (LCS), and Longest Increasing Subsequence (LIS)—using significantly less than linear space. By leveraging recursive techniques inspired by Savitch’s theorem, the authors achieve $(1 \pm \epsilon)$-approximations in space as small as polylogarithmic, effectively placing these classic problems into the complexity class SC (Steve’s Class).
Introduction
In bioinformatics and large-scale data analysis, string comparison is a foundational task. Measures such as Edit Distance (ED) and Longest Common Subsequence (LCS) are typically computed using dynamic programming (DP) algorithms that require $O(n)$ space. When $n$ reaches billions of characters, as in genomic sequences, linear space requirements exceed the RAM capacity of standard hardware. While time complexity has been extensively studied, space complexity has remained a bottleneck. Prior small-space algorithms were often randomized, required exponential time, or failed to break the $\Omega(\sqrt{n})$ space barrier. This work investigates whether these measures can be approximated deterministically in polynomial time using sub-linear space.
Methodological Framework
The authors bridge the gap between theoretical complexity and practical algorithm design using three primary pillars:
1. Savitch’s Theorem as a Template
Savitch’s theorem demonstrates that any non-deterministic log-space algorithm can be made deterministic using $O(\log^2 n)$ space via recursion. However, a direct application typically results in quasi-polynomial running times. The authors adapt this recursive structure to maintain efficiency.
2. Recursive Pruning for Edit Distance
To maintain polynomial time, the algorithm avoids checking every possible alignment. Instead, it adapts techniques from recent "truly sub-quadratic time" algorithms to compute distances only between a carefully selected set of candidate intervals at each recursion level. By accepting a $(1+\epsilon)$ approximation, the search space is restricted to a logarithmic number of "guesses," preventing exponential growth of the recursion tree.
3. The LCS-to-LIS Bridge and Patience Sorting
A significant contribution is a new log-space reduction transforming the LCS problem into a Longest Increasing Subsequence (LIS) problem. The LIS is then solved using a recursive adaptation of "patience sorting" combined with space-efficient streaming techniques.
Theoretical Results
The paper establishes two primary performance regimes for ED, LCS, and LIS:
- Sub-linear Space Regime: For any constant $\delta > 0$, the algorithms achieve a $(1 \pm \epsilon)$-approximation using $n^\delta$ space. The running time remains comparable to standard $O(n^2)$ or $O(n^3)$ DP approaches.
- Polylogarithmic Space Regime: The algorithms achieve a $(1 \pm \epsilon)$-approximation using only $\text{polylog}(n)$ space. This reduction in space comes at the cost of a higher-degree polynomial running time (e.g., $O(n^7)$ for Edit Distance).
Additionally, the authors improve results in the "asymmetric streaming model," reducing running time from exponential to polynomial while maintaining $O(\sqrt{n})$ space.
Conclusion and Future Work
By achieving polylogarithmic space and polynomial time, the authors prove that approximating ED, LCS, and LIS belongs to SC (Steve’s Class). While the high-degree polynomial runtimes currently limit immediate practical application for "big data," this work represents a major theoretical milestone. Future research may focus on reducing these runtimes or exploring whether exact computation is possible within similar space constraints.
Summary updated