Rabin–Karp algorithm: Difference between revisions

Content deleted Content added
ISee (talk | contribs)
Line 67:
'''if''' hs ∈ hsubs
'''if''' s[i..i+m-1] = a substring with hash hs
'''return''' i
hs := hash(s[i+1..i+m])
'''return''' not found