Posts

SU-CS161 DEC022025

Last edited: December 12, 2025

Key Sequence

Notation

New Concepts

Important Results / Claims

Questions

Interesting Factoids

SU-CS161 NOV182025

Last edited: December 12, 2025

see greedy algorithm

SU-CS161 NOV202025

Last edited: December 12, 2025

Key Sequence

Notation

New Concepts

Important Results / Claims

Questions

Interesting Factoids

SU-CS161 Review

Last edited: December 12, 2025

Key Questions

  • Does it work?
  • Is it fast?
  • Can I do better?

General Structure

  • worst-case analysis: what’s the performance on the worst input
  • Big-oh notation

Syllabus

Divide and Conquer

We typically proof these’s correctness via induction, and we proof runtime by substitution method or master theorem.

Randomized Algorithm

quicksort: worst-case input, we use randomness after input is chosen

sorting with a model of computation

data structures

DFS/BFS

Shortest Paths

DP

dynamic programming has a recipe: identify optimal substructure, write down the recursive formulation, fill in table to figure out full answer.

all-paris

Last edited: November 11, 2025