Home LiteratureArticle Details
PMID: 2706401 Published · ppublish English Journal Article Research Support, U.S. Gov't, Non-P.H.S.

Approximate matching of regular expressions.

Bulletin of mathematical biology ·Vol. 51 ·No. 1 ·1989-00-00 ·Pages 5-37

Myers EW, Miller W

Abstract

Given a sequence A and regular expression R, the approximate regular expression matching problem is to find a sequence matching R whose optimal alignment with A is the highest scoring of all such sequences. This paper develops an algorithm to solve the problem in time O(MN), where M and N are the lengths of A and R. Thus, the time requirement is asymptotically no worse than for the simpler problem of aligning two fixed sequences. Our method is superior to an earlier algorithm by Wagner and Seiferas in several ways. First, it treats real-valued costs, in addition to integer costs, with no loss of asymptotic efficiency. Second, it requires only O(N) space to deliver just the score of the best alignment. Finally, its structure permits implementation techniques that make it extremely fast in practice. We extend the method to accommodate gap penalties, as required for typical applications in molecular biology, and further refine it to search for sub-strings of A that strongly align with a sequence in R, as required for typical data base searches. We also show how to deliver an optimal alignment between A and R in only O(N + log M) space using O(MN log M) time. Finally, an O(MN(M + N) + N2log N) time algorithm is presented for alignment scoring schemes where the cost of a gap is an arbitrary increasing function of its length.

MeSH Terms
Algorithms Amino Acid Sequence Base Sequence Information Systems Mathematics Models, Theoretical
Authors & Affiliations
2 authors, click to expand affiliations / ORCID
Myers E W
Miller W
References (6)
6 references, click to expand
  1. Rapid searches for complex patterns in biological molecules.
    Nucleic Acids Res. 1984 Jan 11;12(1 Pt 1):263-80 PMID: 6546419
  2. An improved algorithm for matching biological sequences.
    J Mol Biol. 1982 Dec 15;162(3):705-8 PMID: 7166760
  3. Turn prediction in proteins using a pattern-matching approach.
    Biochemistry. 1986 Jan 14;25(1):266-75 PMID: 3754149
  4. Optimal alignments in linear space.
    Comput Appl Biosci. 1988 Mar;4(1):11-7 PMID: 3382986
  5. Optimal sequence alignments.
    Proc Natl Acad Sci U S A. 1983 Mar;80(5):1382-6 PMID: 16593289
  6. Sequence comparison with concave weighting functions.
    Bull Math Biol. 1988;50(2):97-120 PMID: 3207952
Article Info
Journal
Bulletin of mathematical biology
Abbr.
Bull Math Biol
ISSN
0092-8240
Published
1989-00-00
Pages
5-37
Language
English
Region
United States
NLM ID
0401404
Subset
IM
Analysis Services
Analysis Services

Contact

No. 2 Wenbo Road, Zhangqiu District, Jinan, Shandong

Qilu Normal University · Genelibs Bioinformatics Lab

750 Shunhua Rd, Jinan

2F, Bldg F, University Science Park

Tel: 0531-88819269

WeChat Official Account

Follow our WeChat subscription account for real-time updates and the latest in medical and biological research.


Business Email

E-mail: [email protected]