Scheduling, Map Coloring, and Graph Coloring

Similar documents
Elements of Graph Theory

HW Graph Theory SOLUTIONS (hbovik) - Q

5 Graphs

Math 443/543 Graph Theory Notes 5: Planar graphs and coloring

INTRODUCTION TO THE HOMOLOGY GROUPS OF COMPLEXES

Using Euler s Theorem

8 Colouring Planar Graphs

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

MAS341 Graph Theory 2015 exam solutions

Assignment 4 Solutions of graph problems

Chapter 12 and 11.1 Planar graphs, regular polyhedra, and graph colorings

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

Ma/CS 6b Class 26: Art Galleries and Politicians

Ma/CS 6b Class 10: Ramsey Theory

Final Exam Math 38 Graph Theory Spring 2017 Due on Friday, June 2, at 12:50 pm. Good Luck!!

Answers to specimen paper questions. Most of the answers below go into rather more detail than is really needed. Please let me know of any mistakes.

Ma/CS 6b Class 12: Ramsey Theory

Graph Theory Questions from Past Papers

GRAPH THEORY: AN INTRODUCTION

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60

Tangencies between disjoint regions in the plane

Planar graphs. Chapter 8

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4)

Lecture 5: Graphs. Graphs! Euler Definitions: model. Fact! Euler Again!! Planar graphs. Euler Again!!!!

2010 SMT Power Round

Math 575 Exam 3. (t). What is the chromatic number of G?

HW Graph Theory Name (andrewid) - X. 1: Draw K 7 on a torus with no edge crossings.

Ma/CS 6b Class 11: Kuratowski and Coloring

8.2 Paths and Cycles

Discrete mathematics

Discharging and reducible configurations

CS 2336 Discrete Mathematics

CONNECTIVITY AND NETWORKS

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

K 4 C 5. Figure 4.5: Some well known family of graphs

Lattice Polygon s and Pick s Theorem From Dana Paquin and Tom Davis 1 Warm-Up to Ponder

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

The Six Color Theorem

Lecture 20 : Trees DRAFT

Discrete Wiskunde II. Lecture 6: Planar Graphs

Discrete Mathematics I So Practice Sheet Solutions 1

MAS 341: GRAPH THEORY 2016 EXAM SOLUTIONS

Lecture 6: Graph Properties

MAT 145: PROBLEM SET 6

Degree of nonsimple graphs. Chemistry questions. Degree Sequences. Pigeon party.

Varying Applications (examples)

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

Part II. Graph Theory. Year

Line Arrangements. Applications

Lecture 8: The Traveling Salesman Problem

11.2 Eulerian Trails

Assignment 1 Introduction to Graph Theory CO342

MAS 341: GRAPH THEORY 2016 EXAM SOLUTIONS

HW Graph Theory SOLUTIONS (hbovik)

Definition 1.1. A matching M in a graph G is called maximal if there is no matching M in G so that M M.

CLASSIFICATION OF SURFACES

Graph Theory. 1 Introduction to Graphs. Martin Stynes Department of Mathematics, UCC January 26, 2011

HOMEWORK #4 SOLUTIONS - MATH (1) (a) Prove that the chromatic polynomial of any tree with s vertices is. k(k 1) s 1

Planar graphs. Math Prof. Kindred - Lecture 16 Page 1

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

CS70 - Lecture 6. Graphs: Coloring; Special Graphs. 1. Review of L5 2. Planar Five Color Theorem 3. Special Graphs:

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points

MA 323 Geometric Modelling Course Notes: Day 36 Subdivision Surfaces

Solutions to Quiz 1. (a) (3 points) Vertices x and y are in the same connected component. Solution. P (x, y)

Euler and Hamilton paths. Jorge A. Cobb The University of Texas at Dallas

Introduction to Graph Theory

Math 776 Graph Theory Lecture Note 1 Basic concepts

CPSC 536N: Randomized Algorithms Term 2. Lecture 10

Math 777 Graph Theory, Spring, 2006 Lecture Note 1 Planar graphs Week 1 Weak 2

Pebble Sets in Convex Polygons

Midterm 2 Solutions. CS70 Discrete Mathematics and Probability Theory, Spring 2009

Which n-venn diagrams can be drawn with convex k-gons?

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

γ(ɛ) (a, b) (a, d) (d, a) (a, b) (c, d) (d, d) (e, e) (e, a) (e, e) (a) Draw a picture of G.

Graph Theory Part Two

Planarity: dual graphs

Chapter 4. Relations & Graphs. 4.1 Relations. Exercises For each of the relations specified below:

TWO CONTRIBUTIONS OF EULER

Simple Graph. General Graph

Discrete Mathematics for CS Spring 2008 David Wagner Note 13. An Introduction to Graphs

1 Matchings in Graphs

Fundamental Properties of Graphs

1 Variations of the Traveling Salesman Problem

Chapter 11: Graphs and Trees. March 23, 2008

Class Six: Coloring Planar Graphs

Majority and Friendship Paradoxes

Figure 4.1: The evolution of a rooted tree.

Description of grading scheme and advice for final exam (and HW, quizzes, etc).

Definition: A graph G = (V, E) is called a tree if G is connected and acyclic. The following theorem captures many important facts about trees.

Matching and Planarity

AN ALGORITHM WHICH GENERATES THE HAMILTONIAN CIRCUITS OF A CUBIC PLANAR MAP

Graphs and trees come up everywhere. We can view the internet as a graph (in many ways) Web search views web pages as a graph

Three applications of Euler s formula. Chapter 10

Basics of Graph Theory

Graph Theory CS/Math231 Discrete Mathematics Spring2015

Combinatorics Summary Sheet for Exam 1 Material 2019

CS 177 Homework 1. Julian Panetta. October 22, We want to show for any polygonal disk consisting of vertex set V, edge set E, and face set F:

NP Completeness. Andreas Klappenecker [partially based on slides by Jennifer Welch]

A THREE AND FIVE COLOR THEOREM

Chapter 6 GRAPH COLORING

Transcription:

Scheduling, Map Coloring, and Graph Coloring

Scheduling via Graph Coloring: Final Exam Example Suppose want to schedule some ;inal exams for CS courses with following course numbers: 1007, 3137, 3157, 3203, 3261, 4115, 4118, 4156 Suppose also that there are no students in common taking the following pairs of courses: 1007 3137 1007 3157, 3137 3157 1007 3203 1007 3261, 3137 3261, 3203 3261 1007 4115, 3137 4115, 3203 4115, 3261 4115 1007 4118, 3137 4118 1007 4156, 3137 4156, 3157 4156 How many exam slots are necessary to schedule exams? L25 2

Graph Coloring and Scheduling Convert problem into a graph coloring problem. Courses are represented by vertices. Two vertices are connected with an edge if the corresponding courses have a student in common. 3203 3261 3137 4115 1007 4118 3157 4156 L25 3

Graph Coloring and Scheduling One way to do this is to put edges down where students mutually excluded 3203 3261 3137 4115 1007 4118 3157 4156 L25 4

Graph Coloring and Scheduling and then compute the complementary graph: 3203 3261 3137 4115 1007 4118 3157 4156 L25 5

Graph Coloring and Scheduling and then compute the complementary graph: 3203 3261 3137 4115 1007 4118 3157 4156 L25 6

Graph Coloring and Scheduling Redraw the graph for convenience: 3137 3203 3261 1007 3157 4115 4156 4118 L25 7

Graph Coloring and Scheduling The graph is obviously not 1 colorable because there exist edges. 3137 3203 3261 1007 3157 4115 4156 4118 L25 8

Graph Coloring and Scheduling The graph is not 2 colorable because there exist triangles. 3137 3203 3261 1007 3157 4115 4156 4118 L25 9

Graph Coloring and Scheduling Is it 3 colorable? Try to color by Red, Green, Blue. 3137 3203 3261 1007 3157 4115 4156 4118 L25 10

Graph Coloring and Scheduling Pick a triangle and color the vertices 3203 Red, 3157 Blue and 4118 Green. 3137 3203 3261 1007 3157 4115 4156 4118 L25 11

Graph Coloring and Scheduling So 4156 must be Blue: 3137 3203 3261 1007 3157 4115 4156 4118 L25 12

Graph Coloring and Scheduling So 3261 and 4115 must be Red. 3137 3203 3261 1007 3157 4115 4156 4118 L25 13

Graph Coloring and Scheduling 3137 and 1007 easy to color pick Blue. 3137 3203 3261 1007 3157 4115 4156 4118 L25 14

Graph Coloring and Scheduling Therefore we need 3 exam slots: 3137 3203 3261 Slot 2 1007 Slot 1 3157 4115 4156 4118 Slot 3 L25 15

Map Coloring: 5 Coloring the Continental US

5 Color Vertex Coloring of the Continental US

4 Coloring of the Continental US: 4 Colors Suf;ice for Continuous Planar Maps

Four Colors Suf;ice

An arbitrary number of colors may be needed if regions are not contiguous. This example needs 5:

Six colors may be needed if continuous regions lie on a Möbius strip.

Seven colors may be needed if continuous regions lie on a Torus.

Basic Theorems Handshaking Lemma: In any graph, the sum of the degrees of the vertices is equal to twice the number of edges.

Planar Handshaking Theorem In any planar graph, the sum of the degrees of the faces is equal to twice the number of edges.

Euler s Formula In any connected planar graph with V vertices, E edges, and F faces, V E + F = 2.

Two Theorems Two theorems are important in our approach to the 4 color problem. The ;irst puts and upper bound to the number of edges a simple planar graph with V vertices can have. The second puts an upper bound on the degree of the vertex of smallest degree.

Vertices of degree 5

The 6 Color Theorem: Every simple connected planar graph is 6 colorable.

Consider a graph with (k+1) vertices. Find V* with degree 5 or less

Remove V* and all incident edges. The resulting subgraph has k vertices. Therefore it can be 5 colored.

Replace V* and incident edges. Since we have 6 colors available and at most 5 adjacent vertices, use the remaining color for V*.

The 5 Color Theorem: All connected simple planar graphs are 5 colorable. Proof by induction on the number of vertices. Base Case: Any connected simple planar graph with 5 or fewer vertices is 5 colorable. Induction Hypothesis: Assume every connected simple planar graphs with k vertices is 5 colorable. Prove for a graph with k+1 vertices.

Let G be an SCP graph with (k+1) vertices. It contains at least one vertex, V*, with degree 5 or less.

Remove this vertex and all edges incident to it. By the induction hypothesis the remaining graph with k vertices is 5 colorable.

Color this graph with 5 colors.

Replace V* and the incident edges. We can color V* only if its adjacent vertices do not use all 5 colors. Therefore assume all 5 colors are already used.

Consider all G M paths leading out of V* (paths that alternate Green Magenta Green Magenta )

If there is no connected path leading back to V* then switch M and G, and color V* Green.

If there exists a connected path, then switching does not help.

Is there a Red Blue connecting path?

If not, switch the Red and Blue colored vertices and color V* Red.

Therefore assume that there exists a Red Blue connecting path.

If there is a Red Blue Chain, there cannot be a Black Green Chain, since it is blocked by the Red Blue Chain.

Then switch the colors of the Black Green chain and color V* Black