Skip to content

Improved logic of Boyer Moore & added few edge cases in test #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 8, 2020

Conversation

sharoha
Copy link
Contributor

@sharoha sharoha commented Jun 3, 2020

This PR fixes #174 for edge cases. It uses Bad Character Heuristic to find the matches.

@sharoha sharoha marked this pull request as draft June 3, 2020 19:55
@sharoha sharoha marked this pull request as ready for review June 3, 2020 19:58
@sharoha sharoha requested a review from williamfiset June 6, 2020 08:29
Copy link
Contributor Author

@sharoha sharoha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have modified a few changes. Could you please review it?

@sharoha sharoha requested a review from williamfiset June 8, 2020 05:31
@williamfiset
Copy link
Owner

Rohan, thank you for adding tests and fixing this implementation!

@williamfiset williamfiset merged commit 5ff004e into williamfiset:master Jun 8, 2020
@sharoha sharoha deleted the boyer-moore-fix branch June 8, 2020 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Boyer moore algorithm is not working
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy