Computer Science 282
Design and Analysis of Efficient
Algorithms
Fall 2016
Instructor:
Daniel Stefankovic Class: Tuesday,
Thursday 11:05am-12:20pm, B&L 109.
Instructor office hours (CSB 620): Tuesday 12:30pm - 1:30pm, Thursday 12:30pm - 1:30pm.
TAs: Brian Dickinson, Jeffrey Hrebenach, Maria Janczak, Xiangru Lian, Shir Maimon, Daniel Rubery, Adeeb Sheikh.
TA office hours: Xiangru Lian (CSB 725): Monday 3:30pm - 4:30pm, Tuesday 3:30pm-4:30pm; Brian Dickinson (CSB 724): Wednesday 5:00pm-6:00pm, Thursday 1:30pm-2:30pm.
Problem sessions (only in weeks with exams or when homework is due):
- Monday 6:15pm - 7:15pm in Hylan 202
- Tuesday 6:15pm - 7:15pm in Goergen 109
- Wednesday 6:15pm - 7:15pm in Gavett 310
- Wednesday 7:40pm - 8:40pm in Hutchinson 473
Textbooks (all on a 2 hour reserve in the library):
- recommended: [DPV] = Algorithms, S. Dasgupta, C. Papadimitriou, U.
Vazirani, 2006.
- recommended: [CLRS] = Introduction to Algorithms (3rd edition),
T. Cormen, C. Leiserson, R. Rivest, and C. Stein, 2009.
Other resources/recommended reading (all on a 2 hour reserve in the library; or free):
-
Algorithms, J. Erickson, 2013.
-
Algorithm Design, J. Kleinberg and E. Tardos, 2005.
- The Design and Analysis of Algorithms, D. Kozen,
1991.
- The Design and Analysis of Computer
Algorithms, A. Aho, J. Hopcroft, J. Ulman, 1974.
- Algorithms
Algorithms, R. Johnsonbaugh, M. Schaefer, 2003.
- How to Think About Algorithms
Algorithms, J. Edmonds, 2008.
-
Probability and Computing: Randomized Algorithms and
Probabilistic Analysis, M. Mitzenmacher, E. Upfal, 2005.
- Randomized Algorithms, R. Motwani, P. Raghavan,
1995.
- Approximation Algorithms, V. Vazirani,
2004.
- Algorithms, R. Sedgewick, K. Wayne, 2011.
- The Algorithm Design Manual, S. Skiena, 2008.
Prerequisites: CSC162 or CSC172 or MTH172.
Schedule
TOPIC: Greedy algorithms/Dynamic programming
Sep. 1 Th - Introduction/review.
Sep. 6 Tu - When does greedy algorithm for the coin change problem work?
Sep. 8 Th - Dynamic programming for the coin change problem. Knapsack (integer weights).
Sep. 13 Tu - Knapsack revisited (integer values). Longest increasing subsequence.
Sep. 15 Th - Edit distance. Chain matrix multiplication.
Sep. 20 Tu - More dynamic programming problems.
Sep. 22 Th - EXAM #1 (topics: Greedy algorithms/Dynamic programming)
TOPIC: Graph algorithms
Sep. 27 Tu - Finding connected components, DFS, testing whether graph is strongly connected
Sep. 29 Th - Linearization (topological sorting). Strongly connected components.
Oct. 4 Tu - BFS, Shortest paths (Dijkstra)
Oct. 6 Th - Dealing with negative edge weights(Bellman Ford). Floyd-Warshal.
Oct. 11 Tu - Matchings.
Oct. 13 Th - Minimum spanning trees.
Oct. 18 Tu - No class (Fall break).
Oct. 20 Th - Flows I.
Oct. 25 Tu - Flows II.
Oct. 27 Th - EXAM #2 (topics: Graph algorithms)
TOPIC: Linear programming
Nov. 1 Tu - Modeling with linear programs I (classical problems).
Nov. 3 Th - Solving systems of equations (Gaussian elimination), solving systems on inequalities (Fourier-Motzkin elimination)
Nov. 8 Tu - Duality, Modeling with linear programs II (zero-sum games).
Nov. 10 Th - Linear programming for approximation (relaxation, rounding).
Nov. 15 Tu - Solving linear programs.
Nov. 17 Th - EXAM #3 (topics: Linear programming)
TOPIC: Divide and Conquer Algorithms
Problem sessions:
- Dec. 5 (Monday) 6:15pm - 7:15pm in Hylan 202
- Dec. 6 (Tuesday) 6:15pm - 7:15pm in Goergen 109
- Dec. 7 (Wednesday) 6:15pm - 7:15pm in Gavett 310
- Dec. 7 (Wednesday) 7:40pm - 8:40pm in Hutchinson 473
Nov. 22 Tu - recurrences, Karatsuba-Offman algorithm
Nov. 24 Th - No class (Thanksgiving).
Nov. 29 Tu - Fast fourier transform, convolution
Dec. 1 Th - deterministic linear-time k-select algorithm
Dec. 6 Tu - randomized linear-time k-select algorithm
TOPIC: NP
Dec. 8 Th - NP completness, reductions I.
Dec. 13 Tu - NP completness, reductions II.
Comprehensive final exam
Dec. 21 Wednesday FINAL EXAM (4:00pm-7:00pm, B&L 109)
(following university final exam schedule)
Grading
-
The grade for the course is computed from the exam grade (54%), the homework grade (10%), and
the final exam grade (36%).
Homework Rules
- Homework is collected on the due date, before class, in the classroom.
- No late homework will be accepted without instructor's
permission (a permission must be requested at least 24 hours
before the due date).
- In the final evaluation
the lowest homework score will be
dropped.
- You may work with other people on the
homework, but you must each write up your solutions separately
(without any written aid). If you work with other people, indicate
who you worked with on your solution.
Test Rules
- All tests are closed book. No text
or notes. No scratch paper allowed. No electronic devices (calculators, phones, computers, etc).
- There will be 3
full-class exams and a final exam. There will be no make-up exams.
This course follows
The University Policy on Academic Honesty .