TL;DR
This paper presents novel algorithms for approximating the Longest Common Subsequence (LCS) and Longest Increasing Subsequence (LIS) problems. They achieve truly subquadratic time for LCS and truly sublinear time for LIS, with approximation factors that depend on the solution size, improving upon previous results.
What Problem Does This Paper Address?
The Longest Common Subsequence (LCS) and Longest Increasing Subsequence (LIS) are fundamental problems in computer science with applications in areas like bioinformatics, data compression, and pattern matching. While exact algorithms for LCS exist with quadratic time complexity, and LIS can be solved in quasilinear time, there's a strong theoretical belief that truly subquadratic time algorithms for LCS are impossible unless certain complexity assumptions are false. This has driven research into approximation algorithms. Previous work on approximating LCS has been limited, especially in achieving subquadratic running times. This paper aims to bridge this gap by developing new approximation algorithms for LCS and LIS that offer significantly improved running times while maintaining reasonable approximation guarantees.
Methods
The paper introduces two main algorithmic techniques:
- Birthday Triangle Inequality for LCS: For LCS, the standard triangle inequality (used in edit distance approximations) doesn't hold. The authors introduce a novel "birthday triangle inequality" that leverages probabilistic arguments. This idea is applied to a window-based approach, where the input strings are divided into smaller "windows." By analyzing the expected overlap of common subsequences between these windows, they derive a probabilistic bound on the LCS of non-adjacent windows. This is a key departure from previous edit distance approximation techniques.
- Sampling and Data Structures for LIS: For LIS, the authors employ a combination of random sampling and a specialized data structure called "Ics-cmp." The approach involves dividing the input array into subarrays, sampling elements, and using the Ics-cmp structure to efficiently query relationships between subsequences within these subarrays. They also introduce the concept of "pseudo-solutions" to handle the monotonicity constraints inherent in LIS.
Both algorithms rely on a "sparsification" technique, where they aim to identify a sparse subset of potential "edges" (pairs of windows or subarrays) that are likely to contain the optimal solution, thus reducing the overall computation.
Datasets
Not discussed in the paper. The algorithms are theoretical and focus on algorithmic complexity rather than empirical evaluation on specific datasets.
Key Insights and Ideas
- "Birthday Triangle Inequality" for LCS: This is a novel concept that cleverly adapts probabilistic reasoning to approximate LCS, overcoming the lack of a standard metric property. It's a significant theoretical contribution for non-metric sequence problems.
- Sublinear/Subquadratic Time for Approximation: The paper demonstrates that it's possible to achieve good approximations for LCS and LIS in significantly less time than exact algorithms, pushing the boundaries of what's computationally feasible for these problems.
- Parameterizing Approximation by Solution Size: The approximation factors depend on $\lambda$, the ratio of the optimal solution size to the input size. This is a more refined approach than fixed approximation ratios, as it acknowledges that problems with larger solutions might be easier to approximate.
- Window-Based Approach: The use of windowing is a common technique in string algorithms, but here it's adapted and combined with the birthday triangle inequality to achieve subquadratic LCS approximation.
Key Results
- LCS: A truly subquadratic time algorithm for LCS with an approximation factor of $\Omega(\lambda^3)$.
- LIS: A truly sublinear time algorithm for LIS with an approximation factor of $\Omega(\lambda^3)$.
- Balanced Strings: For LCS on balanced strings (where a character appears frequently), they achieve an $O(|\Sigma|^{3/4})$ approximation in truly subquadratic time, improving over the trivial $|\Sigma|^{-1}$ approximation.
- Improved Running Times: The paper presents multiple theorems with different trade-offs between running time and approximation factor, including algorithms with running times like $O(n^{39/20})$ and $O(n^{17/20})$.
Limitations and Future Work
- Approximation Factor Dependence on $\lambda$: While the dependence on $\lambda$ is a strength, the $\Omega(\lambda^3)$ factor can still be large if $\lambda$ is small. Future work could aim to improve this factor.
- Theoretical Focus: The paper is primarily theoretical, focusing on worst-case complexity. Empirical evaluation on real-world datasets would be valuable to understand practical performance.
- Open Problems: The paper highlights that improving approximation factors for LCS while maintaining linear time is an open problem.
- Generalization: The techniques might be applicable to other non-metric sequence problems.
Summary updated