Frequent Words with Mismatches Problem (Frequent Words with Mismatches Problem)

From Algorithm Wiki
Revision as of 11:26, 15 February 2023 by Admin (talk | contribs) (Created page with "{{DISPLAYTITLE:Frequent Words with Mismatches Problem (Frequent Words with Mismatches Problem)}} == Description == Given two strings, determine the most frequent substring with at most $k$ mismatches, where mismatches are not counted towards the length of the substring. == Parameters == <pre>n: length of string k: length of words d: number of allowed mismatches sigma: size of alphabet</pre> == Table of Algorithms == {| class="wikitable sortable" style="text-alig...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

Given two strings, determine the most frequent substring with at most $k$ mismatches, where mismatches are not counted towards the length of the substring.

Parameters

n: length of string
k: length of words
d: number of allowed mismatches
sigma: size of alphabet

Table of Algorithms

Name Year Time Space Approximation Factor Model Reference
Naive solution 1940 $O(n*f_{bin}(sigma-{1}, k, d)$) where f_{bin}(x, y, z) = sum_{i=0}^z C(y, i)*x^i $O(max(n*f_{bin}(sigma-{1}, k, d)$, sigma^k)) auxiliary where f_{bin}(x, y, z) = sum_{i=0}^z C(y, i)*x^i Exact Deterministic

Time Complexity graph

Frequent Words with Mismatches Problem - Time.png

Space Complexity graph

Frequent Words with Mismatches Problem - Space.png

Pareto Decades graph

Frequent Words with Mismatches Problem - Pareto Frontier.png