Searching Algorithms
Boyer-Moore Search(boyer_moore.hpp)
Interface
For flexibility, the Boyer-Moore algorithm has two interfaces:
- A object-based interface
1 | template<typename patIter> |
- A procedural one
1 | template<typename patIter, typename corpusIter> |
Performance
Memory Use
The algorithm allocates two internal tables
- The first one is proportional to the length of the pattern
- The second one has one entry for each member of the “alphabet”
in the pattern. For (8-bit) character types, this table contains 256 entries.