Assignment and Matching

Similar documents
Graph Theory: Matchings and Factors

Lecture 8: Non-bipartite Matching. Non-partite matching

Matching and Covering

Lecture 7: Bipartite Matching

Matchings and Covers in bipartite graphs

Matchings. Saad Mneimneh

Lecture 4: Primal Dual Matching Algorithm and Non-Bipartite Matching. 1 Primal/Dual Algorithm for weighted matchings in Bipartite Graphs

The vertex set is a finite nonempty set. The edge set may be empty, but otherwise its elements are two-element subsets of the vertex set.

Copyright 2007 Pearson Addison-Wesley. All rights reserved. A. Levitin Introduction to the Design & Analysis of Algorithms, 2 nd ed., Ch.

Theorem 3.1 (Berge) A matching M in G is maximum if and only if there is no M- augmenting path.

2. Lecture notes on non-bipartite matching

Sources for this lecture. 3. Matching in bipartite and general graphs. Symmetric difference

1 Matching in Non-Bipartite Graphs

Matching Algorithms. Proof. If a bipartite graph has a perfect matching, then it is easy to see that the right hand side is a necessary condition.

MC302 GRAPH THEORY Thursday, 10/24/13

Outline. 1 The matching problem. 2 The Chinese Postman Problem

Advanced Combinatorial Optimization September 15, Lecture 2

Graphs and Network Flows IE411. Lecture 21. Dr. Ted Ralphs

Mathematical and Algorithmic Foundations Linear Programming and Matchings

5 Matchings in Bipartite Graphs and Their Applications

Lecture notes on: Maximum matching in bipartite and non-bipartite graphs (Draft)

Paths, Trees, and Flowers by Jack Edmonds

MTL 776: Graph Algorithms Lecture : Matching in Graphs

1 Matchings in Graphs

LECTURES 3 and 4: Flows and Matchings

Graph Algorithms Matching

Balls Into Bins Model Occupancy Problems

Problem set 2. Problem 1. Problem 2. Problem 3. CS261, Winter Instructor: Ashish Goel.

Matching Theory. Figure 1: Is this graph bipartite?

Notes for Lecture 20

Minimum-Spanning-Tree problem. Minimum Spanning Trees (Forests) Minimum-Spanning-Tree problem

Induction Review. Graphs. EECS 310: Discrete Math Lecture 5 Graph Theory, Matching. Common Graphs. a set of edges or collection of two-elt subsets

PERFECT MATCHING THE CENTRALIZED DEPLOYMENT MOBILE SENSORS THE PROBLEM SECOND PART: WIRELESS NETWORKS 2.B. SENSOR NETWORKS OF MOBILE SENSORS

and 6.855J March 6, Maximum Flows 2

Figure 2.1: A bipartite graph.

Lecture 15: Matching Problems. (Reading: AM&O Chapter 12)

Chapter 5 Graph Algorithms Algorithm Theory WS 2012/13 Fabian Kuhn

Topics in Combinatorial Optimization February 5, Lecture 2

Implementing Algorithms

Blossom Algorithms for 1-Matching/Edge Covering Problems in Undirected Networks

MATH 363 Final Wednesday, April 28. Final exam. You may use lemmas and theorems that were proven in class and on assignments unless stated otherwise.

Network Flow. November 23, CMPE 250 Graphs- Network Flow November 23, / 31

Graph Theory II. Po-Shen Loh. June edges each. Solution: Spread the n vertices around a circle. Take parallel classes.

APPLIED MECHANISM DESIGN FOR SOCIAL GOOD

Paths, Flowers and Vertex Cover

Bipartite Matching & the Hungarian Method

Maximum Flows of Minimum Cost

Advanced Combinatorial Optimization September 17, Lecture 3. Sketch some results regarding ear-decompositions and factor-critical graphs.

1. Lecture notes on bipartite matching

6. Lecture notes on matroid intersection

5.1 Min-Max Theorem for General Matching

Network Design and Optimization course

1 The Arthur-Merlin Story

Discrete Mathematics and Probability Theory Summer 2016 Dinh, Psomas, and Ye HW 2

1 Bipartite maximum matching

4.1 Interval Scheduling

Fast and Simple Algorithms for Weighted Perfect Matching

Advanced Algorithms Class Notes for Monday, October 23, 2012 Min Ye, Mingfu Shao, and Bernard Moret

On Galvin s Theorem and Stable Matchings. Adam Blumenthal

2. Matching. Maximum bipartite matchings. Stable marriage problem. Matching 2-1

Constraint Programming. Global Constraints. Amira Zaki Prof. Dr. Thom Frühwirth. University of Ulm WS 2012/2013

Math and Marriage - Don t Call a Lawyer Yet!

CS483 Analysis of Algorithms Lecture 09 Linear Programming 01

AMS /672: Graph Theory Homework Problems - Week V. Problems to be handed in on Wednesday, March 2: 6, 8, 9, 11, 12.

PERFECT MATCHING THE CENTRALIZED DEPLOYMENT MOBILE SENSORS THE PROBLEM SECOND PART: WIRELESS NETWORKS 2.B. SENSOR NETWORKS OF MOBILE SENSORS

1. (15 points) Solve the decanting problem for containers of sizes 199 and 179; that is find integers x and y satisfying.

Matching. Algorithms and Networks

Algorithms: Graphs. Amotz Bar-Noy. Spring 2012 CUNY. Amotz Bar-Noy (CUNY) Graphs Spring / 95

Incremental Assignment Problem

Assignment 4 Solutions of graph problems

Introduction to Graph Theory

GRAPH THEORY and APPLICATIONS. Matchings

The Dynamic Hungarian Algorithm for the Assignment Problem with Changing Costs

Design And Analysis of Algorithms Lecture 6: Combinatorial Matching Algorithms.

Section 8.2 Graph Terminology. Undirected Graphs. Definition: Two vertices u, v in V are adjacent or neighbors if there is an edge e between u and v.

Matching Theory. Amitava Bhattacharya

Algorithms. Graphs. Algorithms

An Introduction to Graph Theory

1 Linear programming relaxation

Matchings, Ramsey Theory, And Other Graph Fun

MATH 682 Notes Combinatorics and Graph Theory II

Matchings. Examples. K n,m, K n, Petersen graph, Q k ; graphs without perfect matching. A maximal matching cannot be enlarged by adding another edge.

A matching of maximum cardinality is called a maximum matching. ANn s/2

DEFINITION OF GRAPH GRAPH THEORY GRAPHS ACCORDING TO THEIR VERTICES AND EDGES EXAMPLE GRAPHS ACCORDING TO THEIR VERTICES AND EDGES

A List Heuristic for Vertex Cover

Polynomial time approximation algorithms

Maximum Matching Algorithm

1. Lecture notes on bipartite matching February 4th,

5. Lecture notes on matroid intersection

Theorem 2.9: nearest addition algorithm

Lecture 6: Graph Properties

ACO Comprehensive Exam October 12 and 13, Computability, Complexity and Algorithms

CPSC W1: Midterm #1

CSE 417: Algorithms and Computational Complexity. 3.1 Basic Definitions and Applications. Goals. Chapter 3. Winter 2012 Graphs and Graph Algorithms

4. (a) Draw the Petersen graph. (b) Use Kuratowski s teorem to prove that the Petersen graph is non-planar.

Graphs and Network Flows IE411. Lecture 13. Dr. Ted Ralphs

Jessica Su (some parts copied from CLRS / last quarter s notes)

Chapter 3. Graphs CLRS Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

3.1 Basic Definitions and Applications

Algorithm and Complexity of Disjointed Connected Dominating Set Problem on Trees

Transcription:

Assignment and Matching By Geetika Rana IE 680 Dept of Industrial Engineering 1

Contents Introduction Bipartite Cardinality Matching Problem Bipartite Weighted Matching Problem Stable Marriage Problem Non-Bipartite Matching Problem Bipartite & Non-Bipartite Matching Algorithms Matchings and Paths Summary 2

Introduction Assignment Problems: Deals with Optimal Pairing or Matching of objects in two distinct sets. Bipartite Matching Problems: Two versions are as follows - Cardinality Problem - Find a matching containing the max. no. of arcs Weighted Problem - Find a matching with the largest overall weight 3

Bipartite Cardinality Matching Identify a matching of Maximum Cardinality in a bipartite undirected network. Transform into Maximum Flow Problem (have an equivalence relationship) Worst case bound for solving is O( nm ) 4

Bipartite Weighted Matching Also known as the Assignment Problem Find a perfect matching of min. weight; adapt algorithms for minimum cost flow Successive Shortest Path Algorithm - Hungarian Algorithm (primal-dual) - Relaxation Algorithm - Cost Scaling Algorithm 5

Stable Marriage Problem Consider n men and n women. Consists of two n X n matrices; one gives each man s ranking of women; second gives each woman s ranking of men. Man-Woman pair is unstable if - Not married to each other but prefer each other to their current spouses 6

Stable Marriage Problem(Contd.) Each person have ranks from 1 to n; form a priority list. 2 Total time is O( n ) - Bucket sort algorithm LIST: Set of unassigned men Current-woman: index of each man 7

Stable Marriage Problem(Contd.) Algorithm: Initialize- LIST = N 1, set of all men current-woman = first woman Select any man (Bill) from LIST, propose to his current-woman (Helen); engaged or go to next current-woman ; Repeat till LIST = φ 8

Few Definitions Non-Bipartite Matching Problem Matched Arcs and Nodes: A matching M of a graph G is a subset of arcs with the property that no two arcs are incident to the same node. Such arcs are called Matched Arcs and such nodes are called Matched Nodes Alternating Paths: A path P = i1 i2... i k, is an alternating path wrt a matching M if every consecutive pair of arcs contains one matched and one unmatched arc. Two types: Odd and Even 9

Non-Bipartite Matching Problem Augmenting Paths: Odd alternating path P w.r.t. a matching M if the first and the last nodes are unmatched. Symmetric Difference: Let S1and S 2 be two sets; the symmetric difference of these sets, denoted by S 1 S 2 = S ( S1 U S 2 ) ( S1 I 2 ) 10

Non-Bipartite Matching Problem 2 4 1 6 3 5 An Example 11

Bipartite Matching Algorithm Augmented Path Theorem: If a node p is unmatched in a matching M, and this matching contains no augmenting path that starts at node p, then node p is unmatched in some maximum matching. Bipartite Matching Algorithm Start with a feasible matching M( which might be null); identify an augmenting path starting at any unmatched node p. If such path exists, replace M with M P ; else delete node p and all the arcs incident to it. Repeat for every such unmatched node p. 12

Flower and Blossoms A flower, defined wrt a matching M and a root node p, is a subgraph with two components: Stem: Even Alternating Path with starting node as p and terminating at some w. If p = w; stem is empty. Blossom: Odd Alternating cycle with starting and terminating at node w, which is the terminal of a stem. 13

Non-Bipartite Algorithm Similar to Bipartite Matching Algorithm; different in its search procedure Search procedure assigns an even or odd label to the nodes Never relabels the nodes; if yes, then suspend the procedure. 3 Runs for O( n ) time 14

Nonbipartite Matching Algorithm Root 1 3 5 7 Root 1 E O E O 3 5 7 2 4 6 8 O 4 6 E 8 Blossom Fig. A Fig. B An Example 15

Nonbipartite Matching Algorithm Root 2 1 3 9 4 6 Fig. C E 10 2 O Fig. E Root 1 O E O 3 4 Fig. D E 9 6 E Blossom 16

Matchings and Paths Shortest Paths in Directed Networks - Transform the problem into an assignment problem Shortest Paths in Undirected Networks - Solving a non-bipartite weighted matching problem 17

Summary Matching are important class of Optimization models Lie between Network Flows and Combinatorial Optimization Matching Problems related to Shortest Path problems 18