Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. The
Smith-Waterman algorithm is a well-known algorithm for performing local
sequence alignment; that is, for determining similar regions between two
nucleotide or protein sequences. Instead of looking at the total
sequence, the Smith-Waterman algorithm compares segments of all possible
lengths and optimizes the similarity measure. The algorithm was first
proposed by Temple F. Smith and Michael S. Waterman in 1981. Like the
Needleman-Wunsch algorithm, of which it is a variation, Smith-Waterman
is a dynamic programming algorithm. As such, it has the desirable
property that it is guaranteed to find the optimal local alignment with
respect to the scoring system being used.