FM-Index Backward Search
Shrink suffix intervals through BWT ranks to locate text patterns.
Free theory articleShrink suffix intervals through BWT ranks to locate text patterns.
Concept & interpretation
The FM-Index is a compressed full-text substring index based on the Burrows-Wheeler Transform (BWT). It allows for fast pattern matching by simulating backward search, finding the count and location of a pattern in the original text without explicitly storing the entire suffix array or the text itself.
Experiment
You can interact with the FM-Index using the provided controls. Try the following steps to observe the backward search process:
- Open the FM-Index Backward Search module.
- Set Text to "Mississippi".
- Set Pattern to "issi".
- Set Rank character to "s" and Rank prefix to "6".
- Observe the search trace and the highlighted interval on the BWT. The actual search interval updates backward character by character.
- Notice how setting Pattern to "Empty" selects the entire text interval, while setting it to "zzz" results in an empty interval
[0, 0)since the characters do not exist.