Overview
Smith-Waterman fills a dynamic-programming table with match, mismatch, and gap scores while resetting negative paths to zero.
Finds the best local alignment between two sequences.
Compact metadata for implementation and discovery.
Smith-Waterman fills a dynamic-programming table with match, mismatch, and gap scores while resetting negative paths to zero.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n m)
Average
O(n m)
Worst
O(n m)
Space
O(n m)
H[i][j] = max(0, H[i-1][j-1] + score, H[i-1][j] - gap, H[i][j-1] - gap)Keeps only positive local alignment scores.
Show matched positions, dynamic-programming cells, or candidate buckets.
Smith-Waterman should be used with the assumptions and tradeoffs of sequence Alignment in mind.
What each reference supports for this entry.
Original local sequence-alignment paper supporting dynamic-programming recurrence and local traceback.
Open sourceSequence-analysis reference covering Smith-Waterman dynamic-programming alignment recurrence, scoring model, and traceback behavior.
Good next jumps from the relationship graph, ranked for useful discovery.
Both use dynamic programming over edit-like sequence operations.
Smith-Waterman computes local sequence alignment.