Raita Algorithm (Single String Search String Search)

From Algorithm Wiki
Jump to navigation Jump to search

Time Complexity

$O(mn + s)$

Space Complexity

$O(s)$ words

(Derived: Uses a bad-character shift table of size $O(s)$)

Description

Slight variation of BMH

Approximate?

Exact

Randomized?

No, deterministic

Model of Computation

Word RAM

Year

1991

Reference

https://www.cin.ufpe.br/~paguso/courses/if767/bib/Raita_1992.pdf