Commit Graph

1 Commits (45fc077dc4e4480044bdbe490560d92ed449a1ac)

Author SHA1 Message Date
Francesco Franco 0ae417b362
Add files via upload
Python implementation of Boyer_Moore algorithm for patter matching                     
This version includes both the 'bad character' and the 'good suffix'                      
heuristics. The program preprocesses the pattern and creates different arrays             
for each of the two heuristics. At every step, it slides the pattern by the               
maximum of the slides suggested by the two heuristics at every step.                      
Worst case performance is Theta(m) (preprocessing) + O(mn) (matching).                     
Best case performance is Theta(m) preprocessing + Omega(n/m) matching.                     
"""
2023-05-15 12:58:23 +02:00