• DocumentCode
    2478036
  • Title

    A new method to obtain the shift-table in Boyer-Moore’s string matching algorithm

  • Author

    Wang, Yang

  • Author_Institution
    Comput. Sci. Dept., Missouri State Univ. Springfield, Springfield, MO, USA
  • fYear
    2008
  • fDate
    8-11 Dec. 2008
  • Firstpage
    1
  • Lastpage
    4
  • Abstract
    The Boyer-Moore algorithm uses two pre-computed tables for searching a string: skip, which utilizes the occurrence heuristic of symbols in a pattern, and shift, which utilizes the match heuristic of the pattern. Researchers have pointed out that the difficulty of understanding the computation of the shift table has hindered utilization of the algorithm in a wider range of applications. This paper describes an alternative way to compute the shift table. We believe that the new method is more intuitive and straightforward both conceptually and logically than the original method, and thus, easier to understand and to implement. Also, the new method has O(m) complexity in both required space and time for a pattern of length m. Therefore, it preserves the high performance of the Boyer-Moore algorithm.
  • Keywords
    string matching; Boyer-Moore algorithm; precomputed tables; shift-table; skip; string matching algorithm; Algorithm design and analysis; Computer science; DNA; Data compression; Information security; Keyword search; Pattern matching; Performance analysis; Search methods; Sequences;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Pattern Recognition, 2008. ICPR 2008. 19th International Conference on
  • Conference_Location
    Tampa, FL
  • ISSN
    1051-4651
  • Print_ISBN
    978-1-4244-2174-9
  • Electronic_ISBN
    1051-4651
  • Type

    conf

  • DOI
    10.1109/ICPR.2008.4761246
  • Filename
    4761246