Rabin–Karp algorithm: Difference between revisions

Content deleted Content added
Watcher (talk | contribs)
m =Rabin-Karp and multiple pattern search=
Watcher (talk | contribs)
mNo edit summary
Line 1:
'''Rabin-Karp algorithm''' is a [[string searching algorithm]] that seeks a patterpattern, i.e. a substring, within a text by using [[hashing]]. It is not widely used for single pattern matching, but is of considerable theoretical importance and is very effective for multiple pattern matching. Historically, it predates the very popular [[Knuth-Morris-Pratt algorithm]]. For text of length n and pattern of length m, its average and best case running time is proportional to n, but the worst case scenario is proportional to n*m, which is one of the reasons why it is not widely used.
 
== Shifting substrings search and competing algorithms ==