D-Neighborhood of a String: Difference between revisions

From Algorithm Wiki
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:d-Neighborhood of a String (d-Neighborhood of a String)}} == Description == Given a DNA string pattern and an integer $d$, find the collection of strings that are within a $d$-neighborhood of the given pattern. A $d$-neighborhood is the set of all $k$-mers whose Hamming distance from the pattern is at most $d$. == Parameters == <pre>n: length of string d: neighborhood distance threshold sigma: size of alphabet</pre> == Table of Algorithms == {| cla...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
== Parameters ==  
== Parameters ==  


<pre>n: length of string
$n$: length of string
d: neighborhood distance threshold
 
sigma: size of alphabet</pre>
$d$: neighborhood distance threshold
 
$\sigma$: size of alphabet


== Table of Algorithms ==  
== Table of Algorithms ==  
Line 18: Line 20:
|-
|-


| [[Iterative naive (d-Neighborhood of a String d-Neighborhood of a String)|Iterative naive]] || 1940 || $O(f_{bin}(sigma-{1}, n, d)$) where f_{bin}(x, y, z) = sum_{i=0}^z C(y, i)*x^i || $O(n)$ auxiliary || Exact || Deterministic || [http://rosalind.info/problems/ba1n/ Time]
| [[Iterative naive (d-Neighborhood of a String d-Neighborhood of a String)|Iterative naive]] || 1940 || $O(f_{bin}(sigma-{1}, n, d)$) where f_{bin}(x, y, z) = sum_{i=0}^z C(y, i)*x^i || $O(n)$ || Exact || Deterministic || [http://rosalind.info/problems/ba1n/ Time]
|-
|-
|}
|}
== Time Complexity Graph ==
[[File:d-Neighborhood of a String - Time.png|1000px]]

Latest revision as of 10:11, 28 April 2023

Description

Given a DNA string pattern and an integer $d$, find the collection of strings that are within a $d$-neighborhood of the given pattern. A $d$-neighborhood is the set of all $k$-mers whose Hamming distance from the pattern is at most $d$.

Parameters

$n$: length of string

$d$: neighborhood distance threshold

$\sigma$: size of alphabet

Table of Algorithms

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

Time Complexity Graph

D-Neighborhood of a String - Time.png