Closed Kumar-laxmi closed 1 year ago
Could you please assign this to me under SSOC'23?
@Kumar-laxmi I would like to work on this issue. Please assign it to me. Thank you!
@Kumar-laxmi Input: Text: "AABAACAADAABAABA" Pattern: "AABA"
Output: Occurrences found at indices: [0, 9, 12] I am familiar with Rabin- Karp: algorithm , I would like to solve this issue..
Please assign this issue to me. I would be able to solve this problem in both C and JAVA languages.
Assigned! @kundu-baivab : C & Java
I have submitted the code in C and JAVA already
Problem = Rabin- Karp:
The Rabin-Karp algorithm is a string matching algorithm used to find occurrences of a pattern string within a larger text string. Given a pattern string and a text string, the algorithm determines if the pattern occurs within the text and returns the starting indices of all occurrences.
Approach :
Preprocessing:
Matching:
Rolling Hash: -Use a rolling hash technique to efficiently calculate the hash value of subsequent substrings. -Update the hash value by subtracting the contribution of the first character and adding the contribution of the next character as -the window slides over the text.
Hash Function:
Efficiency:
Feature to be Added