9. Week 08: Searching in Strings¶
- 9.1. Substring Search
- 9.2. Rabin-Karp Search
- 9.3. Knuth–Morris–Pratt Algorithm
- 9.3.1. Revisiting the naive algorithm
- 9.3.2. Returning the Interrupt Index
- 9.3.3. Relating Matched Text and the pattern
- 9.3.4. Fast-Forwarding Search using Interrupt Index
- 9.3.5. Extracting the Interrupt Index
- 9.3.6. Exploiting the Prefix Equality
- 9.3.7. Tabulating the interrupt indices
- 9.3.8. Boot-strapping the table
- 9.3.9. Comparing performance, again
- 9.4. Exercises