Stanford Root

Schedule

Stanford Root

Schedule

CS 161

Design and Analysis of Algorithms

UNITS:3-5
GRADING:Letter or Credit/No Credit
LEVEL:Undergrad
GER:WAY-FR

Worst and average case analysis. Recurrences and asymptotics. Efficient algorithms for sorting, searching, and selection. Data structures: binary search trees, heaps, hash tables. Algorithm design techniques: divide-and-conquer, dynamic programming, greedy algorithms, amortized analysis, randomization. Algorithms for fundamental graph problems: minimum-cost spanning tree, connected components, topological sort, and shortest paths. Possible additional topics: network flow, string searching. Prerequisite: CS 106B or CS 106X; CS 103 or CS 103B; CS 109 or STATS CS 116.

Syllabus for selected term:
View Winter 2027 Syllabus

Sections

1 Term
Lecture 1Open
ID: 1933
0 / 999 enrolled
DAYS:Monday, Wednesday, Friday
TIME:1:30 PM – 2:50 PM
LOCATION:TBD
INSTRUCTOR:
Charikar, Moses, Vitercik, Ellen, Selvam, Nikil, Fang, William, Rybalkin, Michael+5 more
units

CS 161: Design and Analysis of Algorithms

3-5 units · Letter or Credit/No Credit · GER: WAY-FR

Worst and average case analysis. Recurrences and asymptotics. Efficient algorithms for sorting, searching, and selection. Data structures: binary search trees, heaps, hash tables. Algorithm design techniques: divide-and-conquer, dynamic programming, greedy algorithms, amortized analysis, randomization. Algorithms for fundamental graph problems: minimum-cost spanning tree, connected components, topological sort, and shortest paths. Possible additional topics: network flow, string searching. Prerequisite: 106B or 106X; 103 or 103B; 109 or STATS 116.

Offered in Winter 2027 at Stanford University.

Winter 2027 sections

  • Lecture — Monday Wednesday Friday 1:30 PM – 2:50 PM — Charikar, Moses, Vitercik, Ellen, Selvam, Nikil, Fang, William, Rybalkin, Michael, Shkirko, Illia, Gao, Ruiquan, Yang, Mingwei, Wefers, Zoe, Ding, Ziyi (Undergrad)

More CS courses

  • CS 151: Logic Programming
  • CS 152: Trust and Safety (COMM 122, INTLPOL 267)
  • CS 153: Frontier Systems
  • CS 154: Introduction to the Theory of Computation
  • CS 155: Computer and Network Security
  • CS 157: Computational Logic
  • CS 161ACE: Problem-Solving Lab for CS161
  • CS 163: The Practice of Theory Research
  • CS 166: Advanced Data Structures
  • CS 168: The Modern Algorithmic Toolbox
  • CS 170: Stanford Laptop Orchestra: Composition, Coding, and Performance (MUSIC 128)
  • CS 171: Causality, Decision Making and Data Science (DATASCI 161, ECON 115)

All CS courses · All departments