Skip to content
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

Added Rabin Karp algorithm #260

Merged
merged 2 commits into from
Oct 3, 2021
Merged

Conversation

Abhishek-kumar82078
Copy link
Contributor

@Abhishek-kumar82078 Abhishek-kumar82078 commented Oct 3, 2021

Description

Rabin Karp is a pattern-matching algorithm. This algorithm needs to calculate hash values for the following strings.

  1. Pattern itself.
  2. All the substrings of the text of length m.
    If it matches the hash value of the pattern with the hash value of the current substring of text, and if the hash values match then only it starts matching individual characters

Make sure you have:

  • [X ] Visited http://join.codezoned.com/
  • [X ] Starred ScriptsDump!
  • [X ] Referred the issue number in the fixes title below.
  • [X ] Made a PR in Join_codezoned.
  • [X ] Joined our discord server.

Fixes # (issue)
issue - #256

Rabin karp is a pattern matching algorithm. This algorithm needs to calculate hash values for following strings.
1) Pattern itself.
2) All the substrings of the text of length m.
If it matches the hash value of the pattern with the hash value of current substring of text, and if the hash values match then only it starts matching individual characters
@master-fury master-fury self-requested a review October 3, 2021 17:36
Copy link
Member

@master-fury master-fury left a comment

Choose a reason for hiding this comment

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

Nice Work!! Keep posting scripts like this!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants