vu

Notes for Vanderbilt University

View the Project on GitHub

Lecture 04-21-17

Exam Review

  1. Hamilton path -> cycle
    • In NP:
    • Easy to prove NP (just verify uses each once) - Reduction
    • G’ = G + Universal vertex
  2. P/NP/NPC concepts
  3. K + 1 bins, Edge Double Cover
    • NIFF was 4/3
    • Other part: give a proof where on a certain example it performs k optimal
  4. Floyd’s algorithm (all pairs shortest path)

Max Flow, Matching

Ford & Fulkerson’s

Ford & Fulkerson’s algorithm

G' = graph with 0 flow                  // Works with any legal starting flow
while exists path from S to T:
    cap = min(capacities of e in E)
    for edge (u, v) in p:
        if (u, v) e E:                  // Edges in the original graph
            (u, v).f += cap
        else:
            (v, u).f -= cap