COP 3503H CS II Honors

Fall 2020

Prof. Joseph J. LaViola Jr.

CB1 120 MW 10:30am - 11:45am


Welcome to COP 3503H! -- Homework 8 is posted!


Course Syllabus and Info

Some Lecture Notes courtesy of Arup Guha


Date Lecture Description Readings Assignments Resources
8/24/20

Introduction
   -course mechanics
   -role of algorithms
   -role of analysis

Getting Started
   - Insertion Sort

Cormen et al., Chapter 1
Cormen et al., Chapter 2, pgs. 16-29

Insertion Sort Applet
8/26/20

Getting Started
   - Merge Sort

Cormen et al., Chapter 2, pgs. 29-39
Merge Sort Animation 1
Merge Sort Animation 2
8/31/20

Mathematical Preliminaries
   -summations
   -logarithms and exponents

Growth of Functions
   -theta notation
   -big and little o notation
   -big and little omega notation

Cormen et al., Appendix A,C
Cormen et al., Chapter 3


9/2/20

Solving Recurrences
   -iteration method
   -substitution method
   -master method

Cormen et al., Chapter 4, pgs. 83-97
Homework 1

9/7/20 Holiday -- No class



9/9/20

Divide and Conquer
   -maximum-subarray
   -Strassen's algorithm

Cormen et al., Chapter 4, pgs. 68-82

9/14/20

Divide and Conquer
   -Strassen's algorithm

Heap Sort
   -Heap property
   -Building a heap
   -Priority Queues

Cormen et al., Chapter 6
HeapSort Applet 1
9/16/20

QuickSort
   - randomized partitioning
   - average case analysis

Cormen et al., Chapter 7 Homework 2
QuickSort Applet 1
QuickSort Applet 2
9/21/20

Linear time sorting
   - counting sort
   - radix sort
   - bucket sort

Cormen et al., Chapter 8
Counting Sort Applet
Bucket Sort Applet
Radix Sort Applet
9/23/20

Order statistics
   - minimum/maximum
   - selection

Cormen et al., Chapter 9 Homework 3

9/28/20

Dynamic Programming
   - rod cutting
   - matrix chain mutliplication

Cormen et al., Chapter 15, pgs. 359-377
Matrix Chain Animation
9/30/20

Dynamic Programming
   - longest common subsequence

Cormen et al., Chapter 15, pgs. 390-397
LCS applet
10/5/20

Dynamic Programming
   - optimal binary search tree

Cormen et al., Chapter 15, pgs. 397-404 Homework 4

10/7/20

Dynamic Programming
   - optimal BST cont'd
   - finishing up

Cormen et al., Chapter 15, pgs. 378-389

10/12/20

Greedy Algorithms
   - Activity Selection

Cormen et al., Chapter 16, pgs. 414-421

10/14/20

Greedy Algorithms
   - elements of greedy strategy
   - Huffman codes

Cormen et al., Chapter 16, pgs. 423-437 Midterm exam
Huffman Code Applet
10/19/20

Elementary Graph Algorithms
   - breadth first search
   - depth first search

Cormen et al., Chapter 22, pgs. 583-602
BFS Applet
DFS Applet
10/21/20

Elementary Graph Algorithms
   - strongly connected components

Minimum Spanning Trees
   - constucting a MST

Cormen et al., Chapter 22,23 pgs. 615-629
Connected Component Applet
10/26/20

Minimum Spanning Trees
   - Kruskal's algorithm
   - Prim's algorithm

Cormen et al., Chapter 23, pgs. 631-636 Homework 5
Kruskal Applet
Prim Applet
10/28/20

Single Source Shortest Paths
   - Shortest Path properties
   - Bellman-Ford

Cormen et al., Chapter 24, pgs. 643-657

Bellman-Ford
11/2/20

Single Source Shortest Paths
   - Dijkstra
   - Difference constraints

Cormen et al., Chapter 24, pgs. 658-668 Homework 6
Dijkstra Applet
11/4/20

All-Pairs Shortest Paths
   - shortest path and matrix multiplication
   - Floyd-Warshall

Cormen et al., Chapter 25, pgs. 684-699
Floyd-Warshall Applet
11/9/20

All-Pairs Shortest Paths
   - Transitive Closure and Johnson

Cormen et al., Chapter 25, pgs. 699-705 Homework 7

11/11/20 Veteran's Day -- No class



11/16/20

Maximum Flow
   - preliminaries
   - Ford-Fulkerson

Cormen et al., Chapter 26, pgs. 708-731 Homework 8
Ford-Fulkerson Applet
11/18/20

Maximum Flow
   - Maximum Bipartite matching

Cormen et al., Chapter 26, pgs. 732-735

11/23/20

Parallel Algorithms

Cormen et al., Chapter 27, pgs. 772-792

11/25/20

Holiday -- No Class




11/30/20

Parallel Algorithms

Cormen et al., Chapter 27, pgs. 792-805