Advanced Programming I Lecture Notes

Advanced Programming I Lecture Notes

28 March 2007 • Traveling, Flowing, and Matching


Outline

A Management Problem

Operations Research

Networks

The Flow Problem

Network Graph Model

Example Network Model

A Simple Approach

Flow Paths

Flow Path Example

Flow Path Problems

General Flow Paths

Backwards Flows

  • Backwards flows can be distributed to adjacent pipes.

    redistributing backwards flow

    Ford-Fulkerson Method

    Correctness

    Convergence

    a troublesome network

    Flow-Path Choice

    Performance

    Network-Graph Representations

    Variations

    Hospital Residencies

    Graph Matching

    Example Matchings

    Problem Structure

    Bipartite Graphs

    Bipartite Matching

    A Maximal-Flow Solution

    Example Solution

    Max-Flow Properties

    Preferences

    Stable Matchings

    A Simple Approach

    A: 7 1 2
    B: 4 2 1
    1: F A B
    2: E B A
    A: 7 1 2
    B: 4 2 1
    1: F A B
    2: E B A
    A: 7 1 2
    B: 4 2 1
    1: F A B
    2: E B A

    • Find a matching, then repeatedly remove unstable matches.

      • This approach can get stuck in an infinite loop.

    Iterative Matching

    Example Iterative Matching

    Data Structures.

    Data Structures..

    Stable Matching Algorithm

    Algorithm Properties

    Variations

    The Grand Tour

    Graph Representation

    First Cut

    Performance

    Approximate Solutions

    Points to Remember

    References


    This page last modified on 30 March 2006.

    This work is covered by a
    Creative Commons License.