Ayush7614 / Ayush7614/Daily-Coding-DS-ALGO-Practice

Rabin Karp Algorithm

Open
#397 10 comments 0 reactions 2 assignees Assigned to @mitali-1703 View on GitHub
LGMSOC21 🟧 Level3
Dominant language
C++
Stars
323
Forks
472
PR merge metrics
No merged PRs in 30d

Description

Rabin Karp algorithm 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. So Rabin Karp algorithm needs to calculate hash values for following strings.
1) Pattern itself.
2) All the substrings of the text of length m.

### Programming language

- [ ] C
- [ ] C++
- [ ] Java
- [x] Python

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.