DP score (low)
DP score (high)
Traceback path
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.
Enter two sequences and press Align.
This simulator builds the dynamic-programming matrix behind global sequence alignment as a live 3D bar grid: two DNA sequences form the row and column axes, and every cell's height animates in as its score is computed from the diagonal, upward and leftward neighbours. Once the grid is full, a highlighted traceback path threads from the bottom-right corner back to the origin, revealing the optimal alignment — read off below as the two sequences with gap characters inserted. Match, mismatch and gap parameters are all adjustable, so the same pair of sequences can be re-aligned instantly under different scoring rules.