EdusalsaDiscover Your Stanford

CS 161

Design and Analysis of Algorithms

  • autumn
  • winter
  • summer
  • 2018-2019

3 - 5 units

Letter or Credit/No Credit

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: 103 or 103B; 109 or STATS 116.


  • GER:DB-EngrAppSci

  • WAY-FR

Course Prequisites


  • LEC

    • Tuesday Thursday 9:30:00 AM - 11:20:00 AM @ Gates B1 with Reyna Hulett

      May be taken for 3 units by Stanford graduate students.

Grade Distribution

Sign Up

To save CS 161 to your course bucketlist

Already Have An Account? Log In