Hardness of Approximation of (Multi-)LCS over Small Alphabet

Amey Bhangale, Diptarka Chakraborty, Rajendra Kumar

TL;DR

This paper establishes the first hardness of approximation results for the Longest Common Subsequence problem over multiple strings (Multi-LCS) when the alphabet size is sublinear. By reducing from the densest $k$-subgraph problem with perfect completeness, the authors prove that under the Exponential Time Hypothesis (ETH), no polynomial-time algorithm can achieve an $n^{-o(1)}$-factor approximation for Multi-LCS over an alphabet of size $n^{o(1)}$.

What Problem Does This Paper Address?

The Longest Common Subsequence (LCS) problem is a foundational problem in computer science with central applications in bioinformatics (e.g., DNA/RNA alignment), text comparison, and data compression. While pairwise LCS can be solved in quadratic time, the general problem across an arbitrary number of strings—Multi-LCS—is NP-hard, even over a binary alphabet.

Regarding approximation, Jiang and Li (1995) showed that approximating Multi-LCS is as hard as approximating Max-Clique, ruling out an $n^{1-\delta}$-factor approximation in polynomial time unless $\text{P} = \text{NP}$. However, this reduction required an alphabet of size $\Omega(n)$. Meanwhile, a trivial baseline algorithm achieves a $1/|\Sigma|$-factor approximation simply by outputting the most frequent identical character across all sequences. Prior to this work, it was completely open whether Multi-LCS remains hard to approximate when the alphabet $\Sigma$ is sublinear in $n$, or even whether constant-factor approximations are possible.

Methods

The paper devises an alphabet-reduction strategy built upon the classic reduction of Jiang and Li:

  1. From Symbols to Block Encodings: In Jiang and Li's reduction from Max-Clique, each vertex $v_i$ corresponds to an alphabet symbol. To shrink the alphabet, the authors replace each vertex symbol $v_i$ with an $m$-length codeword string $S_i$ over a small alphabet $\Sigma'$.
  2. Deterministic Coding via Synchronization Strings: To prevent spurious alignments between distinct blocks, the string collection $\{S_1, \ldots, S_n\}$ must satisfy $|LCS(S_i, S_j)| \le \alpha m$ for all $i \neq j$. While random strings achieve this with alphabet size $O(1/\alpha^2)$, the authors provide a deterministic construction of size $O(\alpha^{-3})$ and length $m > 2\alpha^{-2}\log n$ using long-distance synchronization strings (Cheng et al., SODA 2019).
  3. Reduction from Densest $k$-Subgraph with Perfect Completeness: Because small-alphabet string encodings can still partially align across different blocks, an alignment in the reduced Multi-LCS instance does not necessarily correspond to a clique. Instead, the authors prove a structural dichotomy: either the alignment is "sparse" (mapping very few blocks), or it identifies a subgraph with non-trivial edge density. Thus, they reduce from the gap version of the Densest $k$-Subgraph ($\gamma$-DkS) problem with perfect completeness.

Datasets

Not applicable. This is a purely theoretical paper; no empirical datasets or benchmarks were used.

Key Insights and Ideas

  • Overcoming the "Cross-Block Alignment" Barrier: In large alphabets, distinct characters cannot match at all. In small alphabets, fragments of different codeword strings $S_i$ and $S_j$ can match by chance. Restricting pairwise LCS via synchronization strings ensures that each "improper" cross-block alignment burns through many candidate blocks while contributing negligibly to the overall subsequence length.
  • Density Instead of Cliques: Rather than attempting to force a true clique in the original graph (which fails when blocks leak partial alignments), the authors observe that any sufficiently long common subsequence forces vertices to have dense mutual neighborhoods. This naturally links the soundness of the reduction to DkS rather than Max-Clique.
  • ETH as the Hardness Engine: By targeting $\gamma$-DkS, the authors leverage Pasin Manurangsi’s (STOC 2017) ETH-based inapproximability results for densest $k$-subgraph to obtain sublinear alphabet sizes.

Key Results

  • Main Hardness Connection (Theorem 2): For $k/n = \beta/\gamma$ (with $\beta < \gamma \le 1$), if there is no polynomial-time algorithm solving $(\gamma^2/4)\text{-DkS}(k, n)$, then there is no polynomial-time algorithm solving $2\gamma$-approximate Multi-LCS over an alphabet of size $O(1/\beta^6)$.
  • Inapproximability under ETH (Theorem 1): Combining this reduction with Manurangsi's DkS hardness implies that there is a growing function $f(n) = n^{o(1)}$ such that, assuming ETH:
  • There is no polynomial-time $1/f(n)$-factor (i.e., $n^{-o(1)}$-factor) approximation algorithm for Multi-LCS over an alphabet of size $n^{o(1)}$.
  • This specifically rules out any efficient poly-logarithmic factor approximation over $n^{o(1)}$-sized alphabets.

Limitations and Future Work

  • Not Yet Constant Alphabets: The result achieves alphabet size $n^{o(1)}$, leaving open Jiang and Li's 1995 conjecture that Multi-LCS is MAX-SNP-hard over constant-sized (or even binary) alphabets.
  • Dependence on DkS Hardness Regimes: In the reduction, setting $k = \Omega(n)$ would yield constant alphabet size. However, dense $k$-subgraph with perfect completeness is solvable in polynomial time for $k = \Omega(n)$ (Feige & Seltser, 1997). Therefore, proving constant-alphabet hardness will require a different approach or starting problem.
  • Poly-logarithmic Regimes: The authors note that if the hardness of $\gamma$-DkS is improved to $k/n = 1/\text{poly}(\log n)$ and $\gamma = 1/\text{poly}(\log n)$, their reduction would immediately yield constant-factor hardness for Multi-LCS over $\text{poly}(\log n)$-sized alphabets.

Summary updated

Abstract

The problem of finding longest common subsequence (LCS) is one of the fundamental problems in computer science, which finds application in fields such as computational biology, text processing, information retrieval, data compression etc. It is well known that (decision version of) the problem of finding the length of a LCS of an arbitrary number of input sequences (which we refer to as Multi-LCS problem) is NP-complete. Jiang and Li [SICOMP'95] showed that if Max-Clique is hard to approximate within a factor of s then Multi-LCS is also hard to approximate within a factor of Θ(s). By the NP-hardness of the problem of approximating Max-Clique by Zuckerman [ToC'07], for any constant δ > 0, the length of a LCS of arbitrary number of input sequences of length n each, cannot be approximated within an n^{1-δ}-factor in polynomial time unless {P}={NP}. However, the reduction of Jiang and Li assumes the alphabet size to be Ω(n). So far no hardness result is known for the problem of approximating Multi-LCS over sub-linear sized alphabet. On the other hand, it is easy to get 1/|Σ|-factor approximation for strings of alphabet Σ. In this paper, we make a significant progress towards proving hardness of approximation over small alphabet by showing a polynomial-time reduction from the well-studied densest k-subgraph problem with perfect completeness to approximating Multi-LCS over alphabet of size poly(n/k). As a consequence, from the known hardness result of densest k-subgraph problem (e.g. [Manurangsi, STOC'17]) we get that no polynomial-time algorithm can give an n^{-o(1)}-factor approximation of Multi-LCS over an alphabet of size n^{o(1)}, unless the Exponential Time Hypothesis is false.
BibTeX
@inproceedings{bhangale2020hardness,
  author = {Amey Bhangale and Diptarka Chakraborty and Rajendra Kumar},
  title = {{Hardness of Approximation of (Multi-)LCS over Small Alphabet}},
  booktitle = {APPROX-RANDOM},
  year = {2020},
  url = {https://openreview.net/forum?id=WD6ioCWLRF},
}

Loading related content...

Figure