Bitap
Bitap, also known as the Shift-Or or Shift-And algorithm, is a bit-parallel method for string matching that finds occurrences of a pattern within a text. It can perform exact matching and, with extensions, fuzzy matching that allows a limited number of errors, such as substitutions, insertions, or deletions. The algorithm encodes the pattern into bitmasks for each character in the alphabet and then scans the text from left to right, updating one or more bit vectors with inexpensive bitwise operations. Each vector represents the state of potential matches at the current position, enabling many comparisons to be done in parallel.
In the exact version, the bitmasks indicate where characters of the alphabet appear in the pattern, and
Bitap is widely used in software tools that require fast searching and fuzzy matching, including text editors,