Rabin Karp (The Frequent Words Problem The Frequent Words Problem)

From Algorithm Wiki
Revision as of 09:51, 10 April 2023 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Time Complexity

$O(n)$

Space Complexity

$O(max(n, \sigma^k)$)? words

(Keep track of counts on at most $n-k+1$ or $\sigma^k$ words)

Description

Approximate?

Exact

Randomized?

No, deterministic

Model of Computation

Word RAM

Year

1987

Reference