Abstract
The Multiple Longest Common Subsequence (MLCS) problem is a cornerstone of bioinformatics, essential for genomic sequence alignment and protein analysis. However, its computational complexity—$O(n^d)$ for $d$ sequences of length $n$—presents a significant bottleneck for large-scale data. This paper introduces mini-MLCS, a high-performance algorithm that utilizes a novel "path elimination" strategy. By pruning unnecessary nodes during Directed Acyclic Graph (DAG) construction using a branch-and-bound approach, mini-MLCS generates a "mini-DAG" that drastically reduces memory consumption and execution time. Experimental evaluations on biological sequences and standard benchmarks demonstrate that mini-MLCS outperforms state-of-the-art methods, achieving speedups of up to 100x and maintaining robustness where other algorithms fail due to memory constraints.
Introduction
In bioinformatics, comparing multiple DNA or protein sequences is fundamental for tasks such as cancer detection and phylogenetic analysis. The goal is often to identify the Longest Common Subsequence (LCS)—the longest string of characters appearing in the same relative order across all sequences. While finding the LCS for two sequences is computationally efficient, the MLCS problem for three or more sequences is NP-hard.
Traditional Dynamic Programming (DP) approaches suffer from the "curse of dimensionality," as the search space expands exponentially with the number of sequences. Modern methods attempt to model the problem as finding the longest path in a Directed Acyclic Graph (DAG) composed of "match points." However, for large-scale genomic data, these graphs become so massive that they exceed available system memory or require prohibitive computation times.
The mini-MLCS Methodology
The core innovation of mini-MLCS is its "path elimination" strategy. Unlike previous methods that build a complete DAG and then search it, mini-MLCS prunes the graph during construction. This is achieved through several key mechanisms:
- Bound Estimation: The algorithm calculates a lower bound ($Lower(R)$) using a quick heuristic to establish a baseline common subsequence length. It also estimates an upper bound ($Upper(p, \infty)$) for the maximum possible path length passing through any new match point.
- Branch-and-Bound Pruning: If the current path length plus the estimated remaining length for a node is less than the established lower bound, the node is identified as incapable of contributing to the longest sequence. These nodes and their subsequent branches are immediately discarded.
- Diversity Metric: To optimize preprocessing, the authors employ a diversity metric to select a subset of the most distinct sequences. This ensures that the pruning bounds are as tight as possible without requiring the upfront processing of every sequence.
Experimental Evaluation
The algorithm was rigorously tested using real-world genomic data from the NCBI database (Pseudomonas aeruginosa PAO1) and the BL Benchmark set (450 instances).
Key Results
- Memory Efficiency: In large-scale tests involving 10,000 to 50,000 sequences, mini-MLCS successfully completed computations while competing algorithms like Fast-LCS and Quick-DP crashed due to memory overflow.
- Computational Speed: On the BL benchmark, mini-MLCS was consistently 10x to 100x faster than Top-MLCS. For instance, in a test with 200 sequences, mini-MLCS finished in 0.01 seconds, compared to 0.11 seconds for Top-MLCS and 0.06 seconds for A* search.
- Scalability: The algorithm exhibited remarkable stability as sequence lengths increased. While competitors faced exponential runtime growth, mini-MLCS remained efficient, benefiting from the fact that the number of common subsequences often drops as the number of sequences increases, making pruning even more effective.
Conclusion
Mini-MLCS represents a significant advancement in solving the MLCS problem for large-scale biological data. By shifting the focus from sorting match points to eliminating non-viable paths early, the algorithm achieves unprecedented efficiency. Future work will focus on refining pruning bounds for exceptionally long sequences and exploring performance on larger alphabets, such as complex protein sequences.
Summary updated