CS 161 - Algorithms - Spring 2013

[general info]  [lectures] [homeworks] [exams]


what's new

general information


instructor:

TAs:

when and where:

You can ask questions using piazza

references: the textbook is

grading: the homeworks are worth 50% of the grade, the final 30% and the midterm 20%. We will drop the lowest homework grade in computing the homework grade average.

homeworks:


schedule of classes

general plan:
  1. April 1. Introduction and examples
    Readings: chapter 1 and 2
    (lecture notes)

  2. April 3. Divide and conquer
    Readings: 5.1, 5.5
    (lecture notes)

  3. April 8. Master theorem
    Readings: 5.2, lecture notes
    (lecture notes)

  4. April 10. Median in linear time
    Readings: lecture notes
    (lecture notes)

  5. April 15. Graphs, undirected connectivity, BFS
    Readings: 3.1, 3.2, 3.3
    (lecture notes)

  6. April 17. Directed connectivity, DFS, topological sort
    Readings: 3.5, 3.6
    (lecture notes)

  7. April 22. Dijkstra's algorithm
    Readings: 4.4
    (lecture notes) (animation)

  8. April 24. Shortest paths with negative edge-lengths
    Readings: 6.8
    (lecture notes)

  9. April 29. All-pairs shortest paths, independent set in paths, knapsack
    Readings: 6.8, 6.4
    (lecture notes: same as lecture 8)

  10. May 1. Sequence Alignment
    Readings: 6.6, 6.7

  11. May 6. Minimum spanning tree, Union-find data structures
    Readings: 4.5, 4.6

  12. May 8. The maximum flow problem
    Readings: 7.1, 7.2
    (lecture notes)

  13. May 13. Cuts and flows
    Readings: 7.1, 7.2

  14. May 15. Cuts and flows
    Readings: 7.1, 7.2
    (lecture notes)

  15. May 20. Introduction to randomized algorithms
    Readings: 13.1, 13.2
    (lecture notes)

  16. May 22. Randomized hashing
    Readings: 13.5
    (lecture notes)

    May 27: no class

  17. May 29. NP-completeness
    Readings: chapter 8
    (lecture notes, sections 1-7)

  18. June 3. Approximation algorithms
    Readings: 11.1, 11.2, 11.3

  19. June 5. What's next: matching, linear programming, FFT, clustering

homeworks

  1. hw1.pdf (hw1.tex) : due 4pm Tuesday 4/9
  2. hw2.pdf (hw2.tex) : due 4pm Tuesday 4/16
  3. hw3.pdf (hw3.tex) : due 4pm Tuesday 4/23
  4. hw4.pdf (hw4.tex) : due 4pm Tuesday 4/30
  5. hw5.pdf (hw5.tex) : due 4pm Tuesday 5/7
  6. hw6.pdf (hw6.tex) : due 4pm Tuesday 5/21
  7. hw7.pdf (hw7.tex) : due 4pm Tuesday 5/28
  8. hw8.pdf (hw8.tex) : due 4pm Tuesday 6/4
  9. Practice Final

exams

Midterm posted.

The final is on June 10 12:15-3:15 in Hewlett 200.