An Iterative Approach to Determining the Length of the Longest Common Subsequence of Two Strings
Hilary S. Booth (),
Shevarl F. MacNamara (),
Ole M. Nielsen () and
Susan R. Wilson ()
Additional contact information
Hilary S. Booth: Australian National University
Shevarl F. MacNamara: Australian National University
Ole M. Nielsen: Australian National University
Susan R. Wilson: Australian National University
Methodology and Computing in Applied Probability, 2004, vol. 6, issue 4, 401-421
Abstract:
Abstract This paper concerns the longest common subsequence (LCS) shared by two sequences (or strings) of length N, whose elements are chosen at random from a finite alphabet. The exact distribution and the expected value of the length of the LCS, k say, between two random sequences is still an open problem in applied probability. While the expected value E(N) of the length of the LCS of two random strings is known to lie within certain limits, the exact value of E(N) and the exact distribution are unknown. In this paper, we calculate the length of the LCS for all possible pairs of binary sequences from N=1 to 14. The length of the LCS and the Hamming distance are represented in color on two all-against-all arrays. An iterative approach is then introduced in which we determine the pairs of sequences whose LCS lengths increased by one upon the addition of one letter to each sequence. The pairs whose score did increase are shown in black and white on an array, which has an interesting fractal-like structure. As the sequence length increases, R(N) (the proportion of sequences whose score increased) approaches the Chvátal–Sankoff constant a c (the proportionality constant for the linear growth of the expected length of the LCS with sequence length). We show that R(N) is converging more rapidly to a c than E(N)/N.
Keywords: sequence alignment; longest common subsequence; Chvátal–Sankoff constant (search for similar items in EconPapers)
Date: 2004
References: View complete reference list from CitEc
Citations: View citations in EconPapers (2)
Downloads: (external link)
http://link.springer.com/10.1023/B:MCAP.0000045088.88240.3a Abstract (text/html)
Access to the full text of the articles in this series is restricted.
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:spr:metcap:v:6:y:2004:i:4:d:10.1023_b:mcap.0000045088.88240.3a
Ordering information: This journal article can be ordered from
https://www.springer.com/journal/11009
DOI: 10.1023/B:MCAP.0000045088.88240.3a
Access Statistics for this article
Methodology and Computing in Applied Probability is currently edited by Joseph Glaz
More articles in Methodology and Computing in Applied Probability from Springer
Bibliographic data for series maintained by Sonal Shukla () and Springer Nature Abstracting and Indexing ().