0
5.2kviews
To implement the knuth Morris Pratt, string matching algorithm.
1 Answer
2
55views

i. This algorithm is named after scientist Knuth, Morris and Pratt.

ii. The basic idea behind this algorithm is to build a prefix array.

iii. This array is also called as Π array.

iv. Prefix array is build using the prefix and suffix information of pattern.

v. This algorithm achieves …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.