The Frequent Words Problem

Given a string of length nn and in input integer kk, determine the most frequent kk-mers in the string, i.e. the most frequent words of length kk.

Parameters

  • nn: length of string
  • kk: length of words
  • σ\sigma: size of alphabet

Filters

Computational Model

Randomization

Approximation

Algorithms Table

Displaying 2 of 2 algorithms

See more
Rabin-Karp (hashing-based)1987O(k(nk))O(k(n-k))O(max(n,σk))O(\max(n, \sigma^k))
Naive solution1940O(k(nk)2)O(k(n-k)^2)O(max(n,σk))O(\max(n, \sigma^k))

Reductions Table

Insuffient Data to display table

Other relevant algorithms

Insuffient Data to display table