Abstract: Searching for the longest common substring (LCS) of biosequences is one of the most important tasks in Bioinformatics. A fast algorithm for the LCS problem named FAST_LCS is presented. The algorithm first seeks the successors of the initial identical character pairs according to a successor table to obtain the identical character pairs at the next level. Then, it uses pruning and skipping strategies to reduce redundant calculations. Finally, it leverages parallel processing to achieve significant speedups.
Introduction
Comparing DNA or protein sequences is a cornerstone of bioinformatics. To understand the function of a newly discovered gene, biologists search for its Longest Common Subsequence (LCS) within established databases. However, as biological data grows exponentially, traditional methods face significant computational hurdles.
The classic approach utilizes Dynamic Programming (DP), which typically requires $O(mn)$ time, where $m$ and $n$ are the lengths of the two sequences. For genomic-scale data, this becomes a major bottleneck. While heuristic methods like FASTA offer higher speeds, they are "lossy" and may miss the optimal alignment. This paper introduces FAST_LCS, a parallel algorithm designed to provide the speed of a heuristic with the 100% mathematical precision of classic DP.
Methodology
FAST_LCS moves away from the traditional dense search grid, focusing instead on identical character pairs. Its core innovations include:
- Successor Tables: The algorithm pre-calculates tables (TX and TY) that map the next occurrence of each character ('A', 'C', 'G', 'T') in the sequences. This allows the algorithm to "jump" between relevant points rather than calculating every cell in an $m \times n$ grid.
- Identical Pair Traversal: By starting with initial identical pairs and using successor tables to find subsequent ones, the problem is transformed into a graph search.
- Pruning and Skipping: To maintain efficiency, the algorithm prunes redundant paths—discarding lagging paths that reach the same alignment level. Furthermore, an "Operation of Skipping" allows the algorithm to bypass identical subsequences in a single step, significantly accelerating the process.
- Parallelization: The independent nature of identical pair processing at each LCS level makes the algorithm naturally suited for parallel hardware, leading to a theoretical time complexity of $O(|LCS(X,Y)|)$.
Experimental Evaluation
The authors evaluated FAST_LCS using real-world biological data consisting of rice gene sequences sourced from the TIGR database. Testing involved five groups of 100 sequence pairs, with lengths ranging from 0 to 250 characters.
Performance and Scalability
FAST_LCS demonstrated superior performance compared to the standard Smith-Waterman (S-W) algorithm. As sequence length increased, the performance gap widened. For sequences between 200–250 characters, FAST_LCS achieved nearly a 2x speedup, completing tasks in 230.51 seconds compared to 425.16 seconds for S-W.
Precision and Accuracy
A critical advantage of FAST_LCS is its exactness. While heuristic methods like FASTA lose precision as sequences grow longer, FAST_LCS maintains 100% accuracy due to its rigorous mathematical foundation.
Conclusion
FAST_LCS represents a significant step forward in biosequence alignment, offering a parallelizable, exact solution that scales better than traditional dynamic programming. While memory requirements are proportional to the number of identical character pairs, the algorithm's pruning techniques effectively manage this overhead. Future work may involve testing the algorithm on much longer Next-Generation Sequencing (NGS) data to further explore its scalability in modern genomic contexts.
Summary updated