CS447 Computer Algorithms (Fall 2020)

Alternate listing: MA447, CS547, EE667


Prerequisites: CS344
Instructor: Christino Tamon
Lectures: TR 08:00-09:25 (hybrid/split mode, synchronous), CB 176
Office hours: virtual or outdoors (by appointment)

Text: Jeff Erickson, "Algorithms", self-published, 1st edition, 2019. link.

Outline

This course covers algorithmic thinking relevant for solving problems efficiently. Standard techniques covered include: divide-conquer methods, recurrence analysis, dynamic programming, greedy methods, amortization, and others. This course also covers intractabilities and methods for coping with them.

Objectives and outcomes

This course is about how to design efficient algorithms for computational problems, how to analyze the correctness of these algorithms, and how to prove the running times of these algorithms.

(Course outcomes) Upon the completion of this course, students will be able to:

  1. employ design tools such as divide-conquer, dynamic programming, greedy and randomized methods for solving problems involving graphs and other combinatorial structures.
  2. use techniques such as summations, recurrences, probabilistic analysis and amortization to analyze the complexity of algorithms.
  3. recognize incorrect analyses and construct counterexamples to false claims about algorithms.
  4. explain the concept of NP-hardness to show the limits of designing efficient algorithms.

Requirements and Policies

Although attendance is not mandatory, students are responsible for all course materials covered in lectures and any quizzes given during class periods. Students that need to make up missing course work must provide the required Clarkson official exempt form. All students must submit their own work; the exchange of ideas are encouraged but ultimately the submitted work must be the student's own. Please refer to the Clarkson University Regulations for more guidelines on academic integrity and related matters.

Grading Scheme

There is no final exam in this course.

Topics (tentative)


Schedule (in progress)

Aug 18
Aug 20
MinMax searching.
The power of divide-conquer.

Reading: notes, Chapter 0-1.

Aug 25
Sorting: the good, the bad and the ugly (HW0).
Selection: median finding (Blum-Floyd-Pratt-Rivest-Tarjan).

Reading: notes, Chapter 1.

Aug 27
Recurrences; Asymptotics.
Lower bounds.

Reading: supplementary notes, Chapter 1.

Sep 1
Backtracking: subset-sum, etc.

Reading: Chapter 2 (optimal BST, LIS)

Sep 3
Constraint Satisfaction Problem (CSP):
randomized and graph-theoretic methods (HW1).

Reading: Chapter 2.

Sep 8
Dynamic programming.

Reading: Chapter 3.

Sep 10
Dynamic programming: Edit Distance.

Reading: Chapter 3.

Sep 15
Dynamic programming: Viterbi (HW2).

Reading: see class notes.

Sept 17
Hidden Markov Model: Viterbi (continued).

Reading: see class notes.

Sep 22
Greedy algorithms: activity scheduling.

Reading: Chapter 4.

Sep 24
Greedy: optimality (exchange property).

Reading: Chapter 4.

Sep 29
Huffman coding.

Reading: Chapter 4.

Oct 1
Compression: Lempel-Ziv.

Reading: see class notes; also notes (by Peter Shor).

Oct 6
Amortized analysis.
Stack and Vector examples. Potential function.

Reading: see class notes.

Oct 8
Test 1.
Oct 13
Graph theory.
Adjacency list vs matrix. Breadth vs Depth First Search.

Reading: Chapter 5,6.

Oct 15
Graph theory.
Topological sorting (DFS). Strongly connected components (DFS). Shortest Paths (Dijkstra: greedy method).

Reading: Chapter 5,6,8.

Oct 20
Maximum-Flow Minimum-Cut.
Ford-Fulkerson: st-flow, st-cut, augmenting path.

Reading: Chapter 10.

Oct 22
Maximum-Flow Minimum-Cut.
Edmonds-Karp: shortest augmenting path.
Applications: maximum bipartite-matching.

Reading: Chapter 10,11.

Oct 27
NP-Hardness.

Reading: Chapter 12.

Oct 29
NP-Hardness.

Reading: Chapter 12.

Nov 3
Test 2.

Nov 5
Other graph problems: minimum spanning trees, bipartite perfect matching (via MaxFlow), maximum matching.

Nov 10
Data structures: heap (heapsort), splay trees, disjoint union.

Nov 12


Assignments


Project

  1. Choose a project topic of interest; you may work in groups of up to three or four.
    Indicate your topic and group (by the last 3-4 weeks of the semester).

  2. Submit a final report (hardcopy, at least 10 pages) that contains at minimum the following separate sections:

  3. Prepare a 5-10 minute talk (as a live talk during the last week of class or submitted as a video link).
    Submit by email your talk slides (PDF).

  4. Submit any other items, if any, related to your project (code, etc) by email.

Project Topics (updated regularly) Groups
  1. Josh, Marzieh, Irving: compression algorithms.
  2. Esma, Tom: streaming algorithms.
  3. Jeremy, Ken, Kristen, Joshua: Huffman encryption.
  4. Mingjun, Sichao: POMDP algorithms.
  5. Peter-John, Tyler, Wayne: image processing (anti aliasing) algorithms.
  6. Ghada: all-pairs-shortest-paths.
  7. Chris: graph algorithms (pagerank).
  8. Ryan, Mike: algorithmic libraries.
  9. Daniel, Tyler: satisfiability algorithms.
  10. Anthony: A* search.
  11. Justin, Joe, Hannah: reservoir sampling.
  12. Henry, Andy: bi-directional search algorithms.
  13. Cameron: distribution sorting algorithms.
  14. Thomas, David: computational geometry algorithms.