Graph Coloring.

Slides:



Advertisements
Similar presentations
Coloring Warm-Up. A graph is 2-colorable iff it has no odd length cycles 1: If G has an odd-length cycle then G is not 2- colorable Proof: Let v 0, …,
Advertisements

CompSci 102 Discrete Math for Computer Science April 19, 2012 Prof. Rodger Lecture adapted from Bruce Maggs/Lecture developed at Carnegie Mellon, primarily.
Section 1.7: Coloring Graphs
GRAPH COLORING AND ALLOTTING GATES FOR FLIGHTS PRESENTED BY AMUKTAMALYADA REDDY JAMBULA.
Applied Combinatorics, 4th Ed. Alan Tucker
Structured Graphs and Applications
Last time: terminology reminder w Simple graph Vertex = node Edge Degree Weight Neighbours Complete Dual Bipartite Planar Cycle Tree Path Circuit Components.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
NP-Complete Problems Problems in Computer Science are classified into
Section 2.3 Graph Coloring By Katie Lessard & Colleen Raimondi.
Graph Colouring Lecture 20: Nov 25.
Definition Dual Graph G* of a Plane Graph:
Counting Proper Colors Given k  N and a graph G, the value  (G;k) is the number of proper colorings f: V(G)  [k]. The set of available colors is [k]={1,…,k};
3/24/03Tucker, Section 4.31 Tucker, Applied Combinatorics, Sec. 4.3, prepared by Jo E-M Bipartite GraphMatching Some Definitions X-Matching Maximal Matching.
Exam Timetabling Problem using Graph Coloring
Curve Curve: The image of a continous map from [0,1] to R 2. Polygonal curve: A curve composed of finitely many line segments. Polygonal u,v-curve: A polygonal.
Graph Coloring.
CS 2813 Discrete Structures
Coloring 3/16/121. Flight Gates flights need gates, but times overlap. how many gates needed? 3/16/122.
9.8 Graph Coloring. Coloring Goal: Pick as few colors as possible so that two adjacent regions never have the same color. See handout.
Spring 2015 Mathematics in Management Science Conflict Scheduling Vertex Coloring Chromatic Number Conflict Resolution.
Graph Theory Chapter 6 Planar Graphs Ch. 6. Planar Graphs.
Integer programming solutions for graph problems
Planar Graphs: Euler's Formula and Coloring Graphs & Algorithms Lecture 7 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.:
7.1 Introduction to Graph Theory
Modeling Using Colorability Presented by: Kelley Louie CSC 252 Algorithms 252a-aj.
Graph Coloring Solution in a Deterministic Machine The deterministic solution to coloring problem uses these steps to assign colors to vertices: 1- Given.
Copyright © Zeph Grunschlag, More on Graphs.
CSCI 2670 Introduction to Theory of Computing November 23, 2004.
 2. Region(face) colourings  Definitions 46: A edge of the graph is called a bridge, if the edge is not in any circuit. A connected planar graph is called.
Linear Programming Problem. Definition A linear programming problem is the problem of optimizing (maximizing or minimizing) a linear function (a function.
Vertex Coloring Chromatic Number Conflict Resolution
Graph Colouring L09: Oct 10. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including the famous.
Planar Graphs Graph Coloring
Chapter 10.8 Graph Coloring
Graph.
Graph Colouring Lecture 20: Nov 25. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including.
Homework - hints Problem 1. Node weights  Edge weights
Introduction to Graph Theory Lecture 13: Graph Coloring: Edge Coloring.
Introduction to Graph Theory
Division of Polynomials Homework Solutions Feb 19 th Assignment.
Prims Algorithm for finding a minimum spanning tree
Chromatic Coloring with a Maximum Color Class Bor-Liang Chen Kuo-Ching Huang Chih-Hung Yen* 30 July, 2009.
1 Distributed Vertex Coloring. 2 Vertex Coloring: each vertex is assigned a color.
COMPSCI 102 Introduction to Discrete Mathematics.
Introduction to NP Instructor: Neelima Gupta 1.
A problem with train tracks and interval graphs PRESENTED BY MANVITHA NELLORE.
Maryam Pourebadi Kent State University April 2016.
Presented By Ravindra Babu, Pentyala.  Real World Problem  What is Coloring  Planar Graphs  Vertex Coloring  Edge Coloring  NP Hard Problem  Problem.
Timetable Problem solving using Graph Coloring
18 Aug, 2009University of EdinburghIstván Juhos 1 /23 Graph Colouring through Clustering István Juhos University of Szeged Hungary.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Graph Coloring.
2.3 Graph Coloring Homework (MATH 310#3W):
5.9.2 Characterizations of Planar Graphs
Proof Techniques and Chessboard Problems
What is the next line of the proof?
Minimum Pk-total weight of simple connected graphs
Tucker, Applied Combinatorics, Sec 2.4
ICS 353: Design and Analysis of Algorithms
Graph Theory Graph Colorings.
Discrete Math II Howon Kim
Allocating time to Instructors
Applied Combinatorics, 4th ed. Alan Tucker
Graph Coloring.
Graphical Solution of Linear Programming Problems
Minimum Spanning Tree.
PLANNING LOOKING AHEAD…. Long Term Goals (Assigned to…)
Discrete Mathematics for Computer Science
Ft. Benning Office Hours
Presentation transcript:

Graph Coloring

Definitions A coloring of a graph G assigns colors to the vertices of G so that adjacent vertices are given different colors. The minimal number of colors required to color a graph is called the chromatic number and denoted .

It doesn’t work! The chromatic number of this graph is 3. X X 3 is the minimum number of colors required to color this graph To verify that the chromatic number of a graph is k, we must show that the graph cannot be (k-1) colored. Try coloring with 2 colors

Coloring a Wheel A graph of this form is called a wheel. In wheels with an even number of “spokes”, you can alternate colors on the outside, then add an additional color for the center vertex. As is seen in this wheel with 6 spokes, a wheel with an even number of spokes can be 3-colored. In wheels with an odd number of spokes, it’s not possible to alternate colors on the outside, so there must be 3 colors on the outside and then an additional color for the center vertex, thus the chromatic number is 4.

Example 1 State legislature many committees Meet one hour each week Schedule meetings that minimize number of hours Two committees cannot meet at the same time if they have overlapping membership 10 committees Vertices = Committees Edges = Overlap in membership Colors = Different meeting times

Solution to Example 1 To model this problem, we can use a vertex for each of the committees and an edge joining 2 vertices if they represent committees with overlapping membership. Then we can color the graph with each color representing a different meeting time.

The chromatic number of this graph is 4, thus 4 meeting times will suffice to schedule committee meetings without conflict. We can check this by trying to color the graph with n-1 colors, 3 colors, and it will not work.

If we consider this part of the graph as a wheel with 6 spokes, we know it must be 3-colored. Thus, these two vertices can’t be red or blue, but they also cannot be the same color as each other. The final vertex then can be red or blue.

Chromatic Polynomials The chromatic polynomial of a graph G gives a formula for the number of ways to properly color G with k colors. Example What is the chromatic polynomial of a complete graph on five vertices?

Solution In a complete graph, each vertex must be a different color. Thus since there are k possible choices for the first vertex to be colored; then that color cannot be used again, and so the second vertex has k-1 choices, and so on.

Deletion Contraction Method - = Delete an edge Combine -

Deletion Contraction Cont. Example: Use deletion contraction method to find the chromatic polynomial of the following graph.

- = - -( - ) = - -( - - )-( -( - = ))

Exercise Set up A set of solar experiments is to be made at observatories. Each experiment begins on a given day of the year and ends on a given day (each experiment is repeated for several years). An observatory can perform only one experiment at a time. The problem is, What is the minimum number of observatories required to perform a given set of experiments annually? Model this scheduling problem as a graph-coloring problem

Problem Vertices = Experiment Edges = Overlapping time interval Colors = Observatories needed Experiment A Sept. 2 to Feb. 3 Experiment B Oct. 15 to April 10 Experiment C Nov 20 to Feb 17 Experiment D Jan. 23 to May 30 Experiment E April 4 to July 28 Experiment F April 30 to July 28 Experiment G June 24 to Sept. 30

The chromatic number is 4, so there are 4 observatories needed. Solution A B C D E F G The chromatic number is 4, so there are 4 observatories needed.