Dynamic programming: alignment of two protein (amino acid) sequences

The aim is to find the best alignment of two protein (amino acid) sequences.

Javascript demonstration of aligning two amino-acid sequences

Protein 1:

Protein 2:

Scoring matrix Gap scores:


Best score: ?.
Best alignment:

Score table (truncated at the first 20 amino acid residues):
The score at the bottom-right corner of the table gives the best alignment score of the two sequences.

Download: