KMP Algorithm
KMP String Matching Algorithm What is the meaning of KMP? KMP - Knuth - Morris - Pratt History of KMP string matching algorithm The algorithm was conceived inn 1970 by Donald Knuth and Vaughan Pratt and independently by James H. Morris. The three published it jointly in 1977. Before learn about KMP algorithm there are two things to learn, 1. Prefix A string ω is a prefix of a string x, denoted w ⊏ x, if x = ωy for some string y € Σ* and | ω | <= |x| e.g. ab ⊏ abcca ...