Approximating LCS and Alignment Distance over Multiple Sequences

Debarati Das, Barna SahaarXiv 2021

Abstract

Multiple Sequence Alignment (MSA) is a fundamental problem in bioinformatics, yet computing the Longest Common Subsequence (LCS) or Alignment Distance for $m \ge 3$ sequences is notoriously difficult. This paper introduces the first non-trivial approximation algorithms that break the "triangle inequality barrier," achieving an approximation factor better than 2 for alignment distance in sub-exponential time. By employing a novel covering principle and exploiting pseudorandom string properties, the authors reduce the complexity from $\Theta(n^m)$ to approximately $\tilde{O}_m(n^{m/2})$, providing a significant theoretical advancement in sequence comparison.

Introduction

Comparing DNA, RNA, or protein sequences is a cornerstone of biological research. Two primary metrics for this comparison are the Longest Common Subsequence (LCS), which maximizes similarity, and Alignment Distance, which minimizes the cost of deletions required to make sequences identical. While these problems are well-solved for two strings ($m=2$), they become computationally prohibitive for $m \ge 3$, requiring $\Theta(n^m)$ time for exact solutions. Historically, fast approximations for multiple sequences were limited to a factor-of-2 based on the triangle inequality. This work provides the first algorithms to surpass this limit.

Problem Definition

The study addresses two core problems in Multiple Sequence Alignment (MSA):

  1. Longest Common Subsequence (LCS): Identifying the longest string that exists as a subsequence in all $m$ input strings.
  2. Alignment Distance: Determining the minimum number of character deletions needed to transform all $m$ strings into a single identical string.

For large datasets, the exact $\Theta(n^m)$ complexity is a major bottleneck. The goal of this research is to find "good enough" approximations in significantly less time.

Methodology

The authors introduce several algorithmic frameworks to halve the exponent in running time while improving approximation guarantees.

Breaking the Triangle Inequality Barrier

Standard approximations often rely on a "center" string, comparing all others to it, which inherently limits the approximation factor to 2. The authors overcome this by partitioning the $m$ sequences into two groups. They generate a "cover" of potential alignments for the first group and then use specialized Dynamic Programming (DP) subroutines—MaxDelSimilarAlignment and MinDelSimilarAlignment—to find the optimal match in the second group.

Hierarchical staging of sequence segments for the covering algorithm.

Pseudorandom String Analysis

A key insight involves the use of "(p, B)-pseudorandom" strings, where disjoint parts of the string are significantly different. If at least one sequence in the set is pseudorandom, the search space for "unique matches" can be restricted. This property allows the algorithm to "anchor" alignments, skipping vast amounts of unnecessary computation.

Alignment cost analysis across windows for multiple sequences.

Key Results

The proposed algorithms achieve several breakthrough results:

  • LCS Approximation: For an optimal LCS of length $\lambda n$, the algorithm returns a subsequence of length at least $\frac{\lambda^2 n}{2+\epsilon}$ in $\tilde{O}_m(n^{m/2+1})$ time.
  • Alignment Distance: The authors achieve a "below-two" approximation. For a distance $\theta n$, they obtain a $(2 - \frac{3\theta}{16} + \epsilon)$ approximation in $\tilde{O}_m(n^{m/2+2})$ time.
  • Pseudorandom Case: If one sequence is pseudorandom, the approximation factor improves to $(2 - \frac{3p}{512} + \epsilon)$. Notably, this "below-two" result was previously unknown even for the $m=2$ case involving pseudorandom strings.

Discussion and Future Work

While these algorithms represent a major step forward by halving the exponent of $n$, the running time still depends on $m$ in the exponent (e.g., $n^{m/2}$), which remains expensive for very large $m$. Furthermore, the approximation factors are still distant from a $(1+\epsilon)$ ideal. Future research may focus on closing this gap or developing algorithms that perform efficiently even when strings are highly structured or adversarial, where the current pseudorandom-based shortcuts do not apply.

Summary updated

BibTeX
@misc{das2021approximating,
  author = {Debarati Das and Barna Saha},
  title = {{Approximating LCS and Alignment Distance over Multiple Sequences}},
  year = {2021},
  eprint = {2110.12402},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.12402},
}
Figure