Skip to content

Shruthikr18/Horspool_algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages