CS5800 Algorithms Section 1, FALL 2023

about CS5800      home      schedule    gradescope     piazza    

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


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

Slides: Fibonacci, Strassen, 2 Lists

Recap. These 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/13 - 9/20


  (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 Reccurences


  • 9/20 - 9/27



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

Slides: Sorting part A

Sorting Animation

QuickSort Analysis Avg Case

podcast: QuickSort

Algorithms Thinking Seesion Notes (optional)

  • 9/27 - 10/4



  • QuickSort, Partition (CLRS ch7)

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

  • Median, order statistics (CLRS ch9)

Slides: Sorting part B



  • 10/4 - 10/11

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/11 - 10/18


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/18 - 10/25

Dynamic Programming (ch 15)

Notes: LCS
Notes: Matrix Chain Multiplication

Slides: DP2
SlidesDP2 + Oprimal BST

  • 10/25 - 11/1
  • Week 8 / Dynamic Programming
  • Lecture 8 Notes

    SAT 10/28 MIDTERM 10AM-6PM
    - Shillman(SH) room 335
    - 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/30 - 11/6
Week 9/ Recap Simple DataStructures

No class Thu 11/2
  • Simple DataStructures Review (CLRS ch10, 12)
  • BREAK : Wed 11/1 - Sun 11/5
    No Class, OH, HW

     
    • 11 /6 - 11/13
    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/13 - 11/20



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

    • Lecture 11 notes

      ThanksGiving : No class Thu 11/23




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

     Slides

    Podcast: DFS
    Podcast: SCC
    Podcast: MST
    • 11/27 - 12/4



    • SSSP:  Bellman Ford
    • SSSP:  Dijkstra

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

    Slides


    • 12/4 - 12/11

    • 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 DEC 9, 12PM-6PM
      SH 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