0
5.2kviews
To implement the knuth Morris Pratt, string matching algorithm.
1 Answer
| written 9.4 years ago by | • modified 9.4 years ago |
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 …