Matchings, Ramsey Theory, And Other Graph Fun

Similar documents
Ma/CS 6b Class 10: Ramsey Theory

Ma/CS 6b Class 12: Ramsey Theory

An Introduction to Graph Theory

Zhibin Huang 07. Juni Zufällige Graphen

ECS 20 Lecture 17b = Discussion D8 Fall Nov 2013 Phil Rogaway

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

1 The Arthur-Merlin Story

MC302 GRAPH THEORY Thursday, 10/24/13

Graph Theory Part Two

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

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

Matchings and Covers in bipartite graphs

REU 2006 Discrete Math Lecture 5

5 Matchings in Bipartite Graphs and Their Applications

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

Part II. Graph Theory. Year

Order from Chaos. University of Nebraska-Lincoln Discrete Mathematics Seminar

Order from Chaos. Nebraska Wesleyan University Mathematics Circle

2010 SMT Power Round

Graph Theory: Matchings and Factors

Matching Theory. Figure 1: Is this graph bipartite?

IMO Training 2008: Graph Theory

Party hard! The maths of connections. Colva Roney-Dougal. March 23rd, University of St Andrews

Instructor: Paul Zeitz, University of San Francisco

A graph is a mathematical structure for representing relationships.

Matching and Covering

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

MATH 350 GRAPH THEORY & COMBINATORICS. Contents

Kuratowski Notes , Fall 2005, Prof. Peter Shor Revised Fall 2007

Grade 7/8 Math Circles Graph Theory - Solutions October 13/14, 2015

List of Theorems. Mat 416, Introduction to Graph Theory. Theorem 1 The numbers R(p, q) exist and for p, q 2,

On Galvin s Theorem and Stable Matchings. Adam Blumenthal

Lecture 7: Bipartite Matching

Matchings. Saad Mneimneh

Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006

How can we lay cable at minimum cost to make every telephone reachable from every other? What is the fastest route between two given cities?

Assignment 4 Solutions of graph problems

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.

1. The following graph is not Eulerian. Make it into an Eulerian graph by adding as few edges as possible.

Graph theory. Po-Shen Loh. June We begin by collecting some basic facts which can be proved via bare-hands techniques.

Grades 7 & 8, Math Circles 31 October/1/2 November, Graph Theory

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

VIZING S THEOREM AND EDGE-CHROMATIC GRAPH THEORY. Contents

11.4 Bipartite Multigraphs

The Probabilistic Method

Discrete Optimization Lecture-11

1 Matchings in Graphs

CPSC W1: Midterm #1 (Group Version) Thu

Matchings in Graphs. Definition 1 Let G = (V, E) be a graph. M E is called as a matching of G if v V we have {e M : v is incident on e E} 1.

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.

Notebook Assignments

Big numbers, graph coloring, and Herculesʼ battle with the hydra

Lecture 6: Graph Properties

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. An Introduction to Graph Theory

Graphs and Algorithms 2015

1 Counting triangles and cliques

Discrete mathematics , Fall Instructor: prof. János Pach

CPSC W1: Midterm #1

MATH 682 Notes Combinatorics and Graph Theory II

The clique number of a random graph in (,1 2) Let ( ) # -subgraphs in = 2 =: ( ) We will be interested in s.t. ( )~1. To gain some intuition note ( )

The clique number of a random graph in (,1 2) Let ( ) # -subgraphs in = 2 =: ( ) 2 ( ) ( )

Topics on Computing and Mathematical Sciences I Graph Theory (13) Summary and Review

A Theorem of Ramsey- Ramsey s Number

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

The Structure of Bull-Free Perfect Graphs

Week 10: Colouring graphs, and Euler s paths. 14 and 16 November, 2018

Notes slides from before lecture. CSE 21, Winter 2017, Section A00. Lecture 9 Notes. Class URL:

GRAPH THEORY: AN INTRODUCTION

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.

Extremal Graph Theory. Ajit A. Diwan Department of Computer Science and Engineering, I. I. T. Bombay.

HW Graph Theory SOLUTIONS (hbovik) - Q

Abstract. A graph G is perfect if for every induced subgraph H of G, the chromatic number of H is equal to the size of the largest clique of H.

Circuits and Paths. April 13, 2014

Ma/CS 6b Class 2: Matchings

Graph Theory Part A. Peter Keevash

Lecture 20 : Trees DRAFT

Section 3.4 Basic Results of Graph Theory

MAS 341: GRAPH THEORY 2016 EXAM SOLUTIONS

Elements of Graph Theory

Small Survey on Perfect Graphs

Week 10: Colouring graphs, and Euler s paths. 14 and 16 November, 2018

CS483 Analysis of Algorithms Lecture 09 Linear Programming 01

15-451/651: Design & Analysis of Algorithms November 4, 2015 Lecture #18 last changed: November 22, 2015

Introduction to Graph Theory

Fundamental Properties of Graphs

Module 7. Independent sets, coverings. and matchings. Contents

Chapter 6 GRAPH COLORING

The University of Sydney MATH2969/2069. Graph Theory Tutorial 2 (Week 9) 2008

Problem Set 2 Solutions

Lecture Notes on Graph Theory

Graphs and Algorithms 2016

MC302 GRAPH THEORY SOLUTIONS TO HOMEWORK #1 9/19/13 68 points + 6 extra credit points

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

Mock Exam. Juanjo Rué Discrete Mathematics II, Winter Deadline: 14th January 2014 (Tuesday) by 10:00, at the end of the lecture.

Treewidth and graph minors

Assignments are handed in on Tuesdays in even weeks. Deadlines are:

Maximal Monochromatic Geodesics in an Antipodal Coloring of Hypercube

Week 8: The fundamentals of graph theory; Planar Graphs 25 and 27 October, 2017

V1.0: Seth Gilbert, V1.1: Steven Halim August 30, Abstract. d(e), and we assume that the distance function is non-negative (i.e., d(x, y) 0).

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

Transcription:

Matchings, Ramsey Theory, And Other Graph Fun Evelyne Smith-Roberge University of Waterloo April 5th, 2017

Recap... In the last two weeks, we ve covered: What is a graph? Eulerian circuits Hamiltonian Cycles Planarity The Handshaking Lemma The Faceshaking Lemma Colouring Maps The Four Colour Theorem Vertex-Colouring Brook s Theorem Edge-Colouring Vizing s Theorem

Today, we ll get into... Matchings Covers Maximum and Stable Matchings Pigeonhole Principle Revisited Ramsey Theory (The Six Person Party Problem)

What is a matching? Definition A matching M in a graph G is a set of edges such that no two edges share an endpoint. (So a matching matches certain pairs of adjacent vertices hence the name.) We say a vertex v is saturated by M if v is incident with an edge in M. (Otherwise, we say v is unsaturated. Every graph has a matching; the empty set of edges E(G) is always a matching (albeit not a very interesting one).

Maximum Matching The question we ll be most interested in answering is: given a graph G, what is the maximum possible sized matching we can construct?

How can we tell if a matching is maximal? Definition An alternating path is a path with edges that alternate between being inside the matching and outside the matching. In the following two graphs, the purple edges belong to matchings. In the left graph, the path d, a, e, c is an alternating path. In the right graph, the path F, B, C, A, D is an alternating path.

How can we tell if a matching is maximal? Definition An augmenting path is an alternating path that starts and ends at an unsaturated vertex. 1 In this graph, the path b, a, e, d is an augmenting path. 1 Recall, an unsaturated vertex is a vertex that isn t incident with an edge in a matching.

Why is it called an augmenting path? We can use augmenting paths to augment the size of our matching. We do this by switching the matching and non-matching edges.

Why is it called an augmenting path? If there are no augmenting paths in our graph, we can conclude the matching is of maximum possible size. (Berge, 1957)

Bipartite Graphs We will mostly be interested in matchings in bipartite graphs. Definition A bipartite graph is a graph whose vertices can be decomposed into two disjoint sets such that no two vertices within the same set are adjacent.

Matching Applications The Job Assignment Problem Say we have a set A of workers and a set B of jobs, and for each job, a list of workers capable of doing the job. We want to assign as many jobs to workers as possible, but each job can only be assigned to one worker, and each worker can only be assigned to one job. We can model this problem as finding a maximum matching in a bipartite graph.

How else can we tell if our matching is maximal? We call a set C V (G) a cover of G if every edge has at least one endpoint in C. It s always easy to find large covers, just as it is always easy to find small matchings. Theorem If M is a matching of G and C is a cover of G, then M C. Proof. For each edge {u, v} in M, either u or v is in C. Moreover, for any two edges of M, the vertices of C they saturate must be different, since M is a matching. Therefore for each edge in M there is at least one vertex in C.

How else can we tell if our matching is maximal? We can sometimes use covers to tell whether a matching is of maximal size. Lemma If M is a matching, C is a cover and M = C, then M is a maximum matching and C is a minimum cover. Proof. Let M be any matching. Then from our theorem earlier, M C = M. It follows then that M is a maximum matching. Now let C be any cover. Again, from the earlier theorem, we have C M = C. It follows that C is a minimum cover.

Exercise. We call a matching perfect if all of the vertices are saturated by the matching. K 4 is the complete graph on four vertices. How many different perfect matchings are there in K 4?

Exercise. How many perfect matchings are there in K 6?

Exercise. How many perfect matchings are there in K 19?

Stable matchings The stable matching problem is the problem of finding a stable matching between two equally sized sets of elements given an ordering of preferences for each element. A matching is stable if there are no two vertices that would rather be matched to each other than their current partners. The stable matching problem has been stated as follows: Given n men and n women, where each person has ranked all members of the opposite sex in order of preference, find a way to marry the men and women together such that there are no two people of opposite sex who would both rather have each other than their current partners.

Stable matchings We can model this as finding a stable matching in a complete bipartite graph. One side of the bipartition represents the men, and the other side, the women; when two people become engaged, we add the edge between them to the matching.

Stable matchings The Gale-Shapley algorithm for stable matchings gives us a way to find a stable matching in a complete bipartite graph. The algorithm goes as follows. In the first round: Each unengaged man proposes to the woman he prefers most Each woman answers maybe to her suitor she most prefers and no to all other suitors. She is then engaged to the suitor, and that suitor is likewise engaged to her. In each subsequent round... Each unengaged man proposes to the most-preferred woman to whom he has not yet proposed (regardless of whether the woman is already engaged) Each woman replies maybe if she is currently not engaged or if she prefers this guy over her current provisional partner (in this case, she rejects her current fiancé who then becomes single). This process is repeated until everyone is engaged.

Exercise. Run the Gale-Shapley algorithm to find a stable matching in the following graph (preference lists are next to the vertices).

The Pigeonhole Principle If n + 1 pigeons roost in n pigeonholes, then at least one pigeonhole will have more than one pigeon in it. More generally: say you have m objects that you need to sort into n categories. At least one category will have at least m n objects in it. (In other words: not every category can have fewer than the average number of objects in it.)

Ramsey Theory Ramsey theory is a subfield of mathematics named after the British mathematician Frank P. Ramsey. It studies the conditions under which some sort of order necessarily appears. Questions in Ramsey theory are typically of the form how big must some structure be to guarantee that a particular property will hold? We can rephrase the pigeonhole problem this way: if we have n pigeonholes, how many pigeons must come to roost to guarantee at least one pigeonhole has more than one pigeon in it?

The Six-Person Party Problem For the following few slides, we ll be working in a highly idealized world where everyone is either friends or strangers. Claim: in a group of six people, there must be at least three mutual friends or three mutual strangers. Of course, we can model this problem with a graph: draw a vertex for each person; draw a green edge between people if they are friends, and a blue edge between people if they are strangers. Three mutual friends are then a green triangle; three mutual strangers, a blue triangle.

The Six-Person Party Problem In a group of six people, there must be at least three mutual friends or three mutual strangers. No matter how you colour the edges of K 6 using only two colours, you are guaranteed to have a monochromatic triangle.

The Six-Person Party Problem We begin with a graph on six vertices; none of the edges have yet been coloured. Consider now a single vertex v in the graph. This vertex is adjacent to five others; each of these five other vertices fit into one of two categories: friends of v, or strangers to v.

The Six-Person Party Problem We have five objects (the vertices adjacent to v) and two categories (friends of v or strangers to v). One of the categories must have 3 objects in it i.e. v has either 3 friends or 3 strangers amongst its neighbours.

The Six-Person Party Problem Let s restrict our analysis to only v and these three neighbours. If the three neighbours are strangers, we ve found a monochromatic blue triangle, and so we are done.

The Six-Person Party Problem If even one of the three neighbours is friends with v, we have a monochromatic green triangle.

The Six-Person Party Problem Would this be true with fewer people? In a group of five people, for instance, are you always guaranteed three mutual friends or strangers?

The Six-Person Party Problem Would this be true with fewer people? In a group of five people, for instance, are you always guaranteed three mutual friends or strangers? As it turns out: nope! Six is the minimum number of people to guarantee that this will always happen. Definition We call a clique in a graph a subset of the vertices that form a complete graph. Definition We call an independent set in a graph a subset of the vertices that do not have any edges between them.

Ramsey Numbers Ramsey Numbers The Ramsey number R(r, s) is the minimum number of vertices you need in a graph in order to ensure you will have either a clique of size r, or an independent set of size s. This is equivalent to our notion earlier of using two colours to colour the edges: think of cliques as sets of vertices all joined up by say, green edges; think of independent sets as vertices all joined up by blue edges.

Ramsey Numbers Despite being first thought of nearly a century ago, not many Ramsey numbers are known. Lower bounds for R(6, 6) and R(8, 8) have not been improved since 1965 and 1972, respectively. The upper bound for R(5, 5) was very recently (March 26th) brought down from 49 to 48.

Ramsey Numbers Erdős asks us to imagine an alien force, vastly more powerful than us, landing on Earth and demanding the value of R(5, 5) or they will destroy our planet. In that case, he claims, we should marshal all our computers and all our mathematicians and attempt to find the value. But suppose, instead, that they ask for R(6, 6). In that case, he believes, we should attempt to destroy the aliens. Joel Spencer (American Mathematician)

Ramsey Numbers Some results are fairly easy to prove, however: R(1, k) = R(k, 1) = 1 R(2, k) = R(k, 2) = k We could also show, not too painfully, that: R(k, t) R(k, t 1) + R(k 1, t) Lower bounds are generally found by suitable graph constructions.

Back to colouring! Recall last week we said every even cycle can be 2-coloured; i.e. we can properly 2 colour the vertices of every even cycle using only two colours. Last week, we briefly spoke about list-colouring, which was just like normal colouring except we could restrict the colours available to each vertex using a list. For a graph G, the list-chromatic number, χ l (G), is the minimum list-size needed to ensure G has a proper list-colouring, no matter what the lists look like. Today, we will show every even cycle can be 2-list coloured. This means both the chromatic number and the list-chromatic number of even cycles are 2. 2 Recall we call a vertex-colouring proper if no two adjacent vertices are the same colour.

Back to colouring! Last week, we briefly spoke about correspondence colouring. We can think of correspondence colouring as list-colouring, except with more complicated rules. In list-colouring, like in traditional colouring, if a vertex was coloured red, none of its neighbours could be red (the rule was always: if vertex v is colour c, none of v s neighbours can be c.) Correspondence colouring is a bit different. For instance, we could say that for a vertex v with neighbour u, if v is coloured red, then that means u can t be coloured blue. The correspondence chromatic number of a graph G is the minimum number of colours in each of the vertices lists to ensure that the graph can be coloured, no matter what colouring rules look like. Today, we will show the correspondence chromatic number of even graphs unlike the normal chromatic number and the list-chromatic number is not 2.

Problem Set Time! Questions?