Quiz 2

🧬 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
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.