๐Ÿงฌ Sequence Alignment & Needleman-Wunsch

101 words
1 min read
Python Week 1: the first filter for runtime behavior
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
Document outline

Keep your place and jump directly to a heading.

Table of contents

No note selected

Open a chapter to see its outline, backlinks, and sources here.