๐งฌ Sequence Alignment & Needleman-Wunsch
101 words
1 min read
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
# ๐งฌ Sequence Alignment & Needleman-Wunsch ## 1. ๐ฏ Learning Objectives - Explain sequence alignment as a search problem - Trace Needleman-Wunsch DP algorithm - Apply A* to sequence alignment ## 2.

๐งฌ Sequence Alignment & Needleman-Wunsch
1. ๐ฏ Learning Objectives
- Explain sequence alignment as a search problem
- Trace Needleman-Wunsch DP algorithm
- Apply A* to sequence alignment
2. ๐ Core Content
3.1 Problem Definition
Given two sequences, find optimal alignment (matches, mismatches, gaps). Example: ATCGAT and ATGAT โ AT-CGAT and AT-G-AT (or AT-CGAT and ATG-AT).
3.2 Needleman-Wunsch Algorithm
DP matrix where D[i][j] = max(D[i-1][j-1]+match, D[i-1][j]+gap, D[i][j-1]+gap).
3.3 A* for Alignment
State = (i,j) position in DP matrix. Heuristic = maximum possible remaining score. Goal = (n,m).
Join Discord
PreviousSMGS & Beam StackNextMinimax & Alpha-Beta