Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Horspool_algorithm

string matching algorithm

The Horspool algorithm checks first the text character aligned with the last pattern character. If it doesn’t match, move (shift) the pattern forward until there is a match. The length of the shift is determined by the shift table

enter the string

enter the pattern

it gives position of the first occurance of the pattern in the string. non zero-

uncomment another print inside shift funtion to see the shift table

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages