CS5800 Algorithms Section 4, FALL 2024

about CS5800      home      schedule    gradescope     piazza    

* Schedule and materials subject to change
s
Week / Module Topic / Lecture Other Reading Assignment
  • 9/3 - 9/10


  • Administrative, Intro (CLRS ch1, ch2)
  • Introduction, Example Problems
  • Fibonacci numbers
  • Orders of Growth (CLRS ch3)

Slides: Fibonacci, Strassen, 2 Lists

Recap. These math topics are prerequisites:
Discrete Math (Undergrad Honors)


  • Background/prerequisites:
  • * math
  • * datastructures : arrays, trees, lists
  • * pseudocode/ imperative programming
  • * sorting : mergesort, insertionsort

Order of growth table

Podcast : Strassen Matrix Multiplication (adobe pdf)
Podcast: Fibonacci Matrix Exponentiation(adobe pdf)

 EC: math problems

  • 9/10 - 9/17


  (CLRS ch 4)
  Notes: Recurrences
 Example: Iteration Method
 Notes: Master Theorem
Examples: Master Theorem

 Slides : Recurrences

Wikipedia: Divide and Conquer

Extended Master Theorem

slides: Linear Recurrences


  • 9/17 - 9/24



  • InsertionSort
  • MergeSort
  • HeapSort (CLRS ch6)
  • QuickSort (CLRS ch7)

Slides: Sorting part A

Sorting Animation

QuickSort Analysis Avg Case

podcast: QuickSort

Algorithms Thinking Session Notes (optional)

  • 9/24 - 10/1



  • QuickSort, Partition (CLRS ch7)

  • Counting Sort, Radix Sort (CLRS ch8)
  • Sorting bounds

  • Median, order statistics (CLRS ch9)

Slides: Sorting part B



  • 10/1 - 10/8

Greedy Algorithms (ch 16)
Sub-problem Structure for Greedy

Lecture Notes: Greedy
Notes: Greedy Techniques
Wikipedia: Greedy
Slides : Greedy

podcast: Subproblem Optimal Structure

podcast: Fractional Knapsack

podcast: Activity Selection Problem
  • 10/8 - 10/15


Greedy VS Dynamic Programming (ch 15)
Sub-problem Structure for DynProg

Notes: Coin change
Notes: CheckBoard
Notes: Discrete Knapsack

Slides : DP1
podcast: discrete knapsack
podcast: coin change
podcast: check board

  • 10/15 - 10/22

Dynamic Programming (ch 15)

Notes: LCS
Notes: Matrix Chain Multiplication

Slides: DP2
SlidesDP2 + Optimal BST

  • 10/22 - 10/29
  • Week 8 / Dynamic Programming
  • Lecture 8 Notes

    SAT 10/26 MIDTERM 10AM-6PM
    - room Shillman (SH) 105
    - open notes/book/HWs first 90 minutes
    - cheatsheet 4 pages (2 sheets) allowed whole exam

Dynamic Programming (ch 15)
DP problems as DAG Shortest Paths (Notes)



  • 10/29 - 11/5
Week 9/ Recap Simple DataStructures

  • Simple DataStructures Review (CLRS ch10, 12)
  •  
    • 11 / 5 - 11/12
    Week 10/ DataStructures
    Trees and Hashes
    Skiplists
    Lecture 9 notes



    • Hash Tables (ch 11)
    • RB trees (ch13)

     Hash, RB Tree Slides
    Skiplists   Note ;   Slides ;   Visualizer

     podcast: hash tables
     
    • 11 /12 - 11/19



    • 11/19 - 11/26
    •  
    • Week 12 / Graphs I
    • Graps Intro, BFS, DFS
    • DAGs
    • Strongly Connected Components

    • Lecture 11 notes



    • Graphs Intro (ch 22)
    • Minimum Spanning Trees (ch 23)

     Slides

    Podcast: DFS
    Podcast: SCC
    Podcast: MST
    • 11/26 - 12/3



    • SSSP:  Bellman Ford
    • SSSP:  Dijkstra

     ASSP: DP by edges
     ASSP: DP by vertices (Floyd Warshall)

    Slides


    • 12 / 3- 12/10

    • Week 14 / Graphs III,
    • Network Flows


    Lecture 13 notes

    • SP
    • Network Flow
    • MaxFlow-MinCut Theorem
    • Ford-Fulkerson

    Notes

    max Flow Slides

    Push-relabel slides
    Push Relabel text : Use CLRS 3rd edition

     Podcast: MaxFlow


    • FINAL EXAM
      Sat 12/7
      10AM-4PM
      SH room 335

    open notes/book/HWs first 90 minutes

    cheatsheet 4 pages allowed whole exam

    • Optional / Linear Programming


  • NetFlow: Push-Relabel
  • RSA Math Notes: Number Theory
    Slides: RSA




    • Optional / Advanced Topics (optional)
    • NP-complete Problems, Approx Algorithms, RSA