The Needleman-Wunsch algorithm is a dynamic programming algorithm that finds the best
possible alignments between two strings.
It takes three score parameters: match, mismatch, and gap.
Since it is a dynamic programming algorithm, the problem is solved by filling a two
dimensional matrix. It requires O(nm) space and time where n and m are the lengths
of the first and second string, respectively.
All best possible alignments are found by filling the matrix according to the defined
score parameters.
Some optimizations of the algorithm avoid filling values distant from the diagonal, since those values are only needed for the poorest alignments.
Лицето поврзано со делото со овој документ го има предадено истото во јавна сопственост, откажувајќи се од сите права на тоа дело за цел свет, под законот за авторско право и поврзани или сродни законски права што ги имало на тоа дело, дотолку колку што е дозволено со закон. Делата под CC0 не бараат припишување (наведување автор и/или извор). Кога го наведувате делото, наводот не треба да подразбира каква било поддршка од авторот.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse