Skip to content

invincibleaayu/kmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Knuth-Morris-Pratt substring search

Python implementation of Knuth-Morris-Pratt algorithim

The Knuth-Morris-Pratt algorithm

The Knuth-Morris-Pratt String Searching Algorithm or KMP Algorithm searches for occurrences of a "Pattern" within a main "Text" by employing the observation that when a mismatch occurs, the word itself embodies sufficient information to determine where the next match could begin, thus bypassing re-examination of previously matched characters. The algorithm was conceived in 1970 by Donuld Knuth and Vaughan Pratt and independently by James H. Morris. The trio published it jointly in 1977.

To run this file

I have used a page source for searching.Download the file and change the directory to file location in terminal and type

python kmp.py

About

Python implementation of Knuth-Morris-Pratt algorithim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages