Graph Theory - Day 4: Colorability

Graph Theory - Day 4: Colorability MA 111: Intro to Contemporary Math December 2, 2013 Counting Faces and Degrees - Review C A B E F D I How ...
Author: Silvia Lawrence
8 downloads 0 Views 201KB Size
Graph Theory - Day 4: Colorability MA 111: Intro to Contemporary Math

December 2, 2013

Counting Faces and Degrees - Review C A

B

E

F

D

I

How many faces does this graph have?

I

What is the degree of each face?

I

List v , e, and f for this graph.

Euler’s Formula

Theorem (Euler’s Formula) Take any connected planar graph drawn with no intersecting edges. Let v be the number of vertices in the graph. Let e be the number of edges in the graph. Let f be the number of faces in the graph.

Then v − e + f = 2.

Using Euler’s Formula 1 B

C

A

E D

F

I

What is v ? What is e?

I

Though it doesn’t look it, this is graph is planar. What is f ?

Using Euler’s Formula 2 I

A planar graph has 8 vertices and 12 edges. How many faces are there?

I

A planar graph has 6 vertices and 4 faces. How many edges are there?

I

A planar graph has 8 vertices with degrees: 1, 1, 2, 2, 3, 3, 4, 4. How many edges are there? How many faces are there?

I

A planar graph has 4 faces with degrees: 3, 3, 4, 4. How many edges are there? How many vertices are there?

Useful Facts for Planar Graphs We can combine the following theorems to answer questions about planar graphs.

Theorem (Sum of the Degrees For Vertices) In any graph, the sum of the degrees of all vertices is equal to twice the number of edges.

Theorem (Sum of the Degrees For Faces) In any planar graph, the sum of the degrees of all faces is equal to twice the number of edges.

Theorem (Euler’s Formula) For a connected planar graph with vertices v , edges e, and faces f , the following must hold: v − e + f = 2.

A Chance to Discover Euler’s General Formula Note that Euler’s Formula only applies to connected graphs, i.e., graphs that have one component where we write c = 1. See if you can extend Euler’s Formula for c = 2 in the graph below!

Theorem (Euler’s General Formula) For any planar graph with vertices v , edges e, faces f and components c, the following must hold: v − e + f − c = 1.

Another Euler’s Formula - Practice I

A connected planar graph has vertices whose degrees are 3, 3, 4, 4, 5, 6, 7. How many vertices are there?

I

A connected planar graph has vertices whose degrees are 3, 3, 4, 4, 5, 6, 7. How many edges are there?

I

A connected planar graph has vertices whose degrees are 3, 3, 4, 4, 5, 6, 7. How many faces are there?

I

A disconnected planar graph with c = 2 has vertices whose degrees are 3, 3, 4, 4, 5, 6, 7. How many faces are there?

I

A disconnected planar graph with c = 4 has vertices whose degrees are 3, 4, 5, 6, 7, 8, 9. How many faces are there?

Coloring the Vertices of a Graph We can easily convert maps into graphs. If we transfer the colors of a map over to the graph, then we have the following rules: I

Every vertex must be colored.

I

Any two vertices that are connected by an edge must have a different color.

Definition (n-Colorable and Chromatic Number) A graph is n-colorable if it can be colored with n colors so that adjacent vertices (those sharing an edge) do not have the same color. The smallest possible number of colors needed to color the vertices is called the Chromatic Number of the graph.

Vertex Coloring 1 Consider the graph below. A

B

G C F E

D

I

Is this graph planar?

I

Can you color the vertices of the graph using 4 colors?

I

Can you color the vertices of the graph using 3 colors?

I

What is the Chromatic Number of the graph?

Vertex Coloring 2 Consider the graph below.

I

Find the Chromatic Number.

Vertex Coloring 3 Consider the graph below.

I

Find the Chromatic Number.

Vertex Coloring 4

Consider the graph below.

I

Find the Chromatic Number.

Chromatic Number 1 Theorem There’s something REALLY obvious about coloring vertices of a graph, but let’s talk about it anyway. Any time there is an edge between two vertices

we will need at least TWO colors for the vertices.

The following is not a mind-blowing result, but it’s a start!

Theorem A graph has Chromatic Number 1 exactly when there are NO EDGES. In other words, the graph must be entirely vertices.

Cycles Note that in our examples so far: I

Some of the graphs are similar, but they have different chromatic numbers.

I

There is a connection between certain chromatic numbers and the way in which you can make a “round trip” in a graph.

Definition (Cycle) A cycle of a graph is a route through distinct adjacent vertices that begins and ends at the same vertex. Cycles need not “use” the whole graph.

Chromatic Number 2 Theorem Theorem (Chromatic Number 2 Theorem) A graph has Chromatic Number 2 exactly when there are NO cycles with an odd number of vertices. The two graphs below have Chromatic Number 2 because of the Theorem above.

The cycle for the graph on the left has 4 vertices. Cycles for the graph on the right have 4 vertices.

Using the Chromatic Number 2 Theorem Notice that the Chromatic Number 2 Theorem tells us when a graph is NOT 2-colorable as well.

Example (Graphs that are not 2-colorable) The two graphs below have do not Chromatic Number 2:

In these graphs, we can easily find cycles with 3 or 5 vertices. So, the Chromatic Number 2 Theorem says that these graphs DO NOT have chromatic number 2.

Vertex Coloring 5 Consider the graph below.

I

How do you know this graph is not 1-colorable?

I

How do you know this graph is not 2-colorable?

I

Find the Chromatic Number.

Vertex Coloring 6 Consider the graph below. B

C

A

E D

F

I

How do you know this graph is not 2-colorable?

I

Is the graph 3-colorable?

I

Find the Chromatic Number.

Vertex Coloring 7

Consider the graph below.

I

Find the Chromatic Number.

Vertex Coloring 8

Consider the graph below.

I

Find the Chromatic Number.

A Deep Result about Planar Graphs There is a reason we care about planar graphs. I

Recall that every map can be converted into a planar graph.

I

We used graph coloring for some applications, but these colorings originally came from coloring our maps.

I

There is something amazing about planar graphs that was first conjectured in the 19th century and took over 100 years to prove (finally in 1976 by Haken & Appel):

Theorem (The Four-Color Theorem) Every planar graph is 4-colorable. In other words, if a graph is planar then it has Chromatic Number 1, 2, 3, or 4. In particular, you can color ANY map with 4 or fewer colors.

Vertex Coloring 9 Consider the graph below.

I

Before trying to color vertices, what is the highest value that the Chromatic Number could be?

I

Find the Chromatic Number.

Vertex Coloring 10 Consider the graph below. A G M S

B H

C

D

E

F

I

J

K

L

P

Q

R

O

N T

U

V

I

Before trying to color vertices, what is the highest value that the Chromatic Number could be?

I

Is the graph 2-colorable?

I

Find the Chromatic Number.

Homework Assignments

1. Colorability Homework (posted to course website: http://www.ms.uky.edu/ houghw/MA111) - due Wed 12/4 2. Begin studying for Quiz 4 - Fri 12/6