Skip to content

Exact String Matching

Reading

OnlineOffline
Exact
Approximate

Exact online string matching is covered in depth in:

Approximate online string matching:

Approximate offline string matching:

Graphs

Dependency on the size of the alphabet and length of strings

Gonzalo Navarro & Mathieu Raffinot, 2002:

Exact online string matching bibliography

See Chronology of Exact Online String Matching Algorithms

Algorithms classification

  1. Type
    • Exact
      • Substring
      • Pattern
    • Approximate
  2. For approximate matching
    • Type of measure (edit distance/similarity)
    • Ranking function
    • Recall and precision
  3. Based on
    • characters comparison
    • automata
    • bit-parallelism
    • packed string matching
  4. Depends on size of
    • alphabet
    • text
    • query
  5. Relationship to other algorithms
    • Combination of / Modification of / Refinement of / Variant of / Improvement of / Simplification of

WIP

Approximate String Matching using Backtracking over Suffix Arrays:

OnlineOffline
ExactKMP O(n+m)Suffix Tree O(m)
ApproximateDynamic Programming O(n·m), Landau+Vishkin O(k·n)Myers, Navarro+Baeza-Yates, Ukkonnen