🌱 Knuth–Morris–Pratt Algorithm

Source

You make an index to tell you how far you can shift when you find a mismatch. Saves looking up things that are guaranteed not to match.

Knuth–Morris–Pratt algorithm for string search https://gbhat.com/algorithms/kmp.html https://www.youtube.com/watch?v=pu2aO_3R118

Made by Brandon . If you find this project useful you can donate.