More Graphs, Subgraphs and Trees Planarity and Coloring.

26
More Graphs, Subgraphs More Graphs, Subgraphs and Trees and Trees Planarity and Coloring

Transcript of More Graphs, Subgraphs and Trees Planarity and Coloring.

Page 1: More Graphs, Subgraphs and Trees Planarity and Coloring.

More Graphs, Subgraphs and TreesMore Graphs, Subgraphs and Trees

Planarity and Coloring

Page 2: More Graphs, Subgraphs and Trees Planarity and Coloring.

NCSCOS Goals and ObjectivesNCSCOS Goals and Objectives

• Competency Goal 1: The learner will use matrices and graphs to model relationships and solve problems. • Objective 1.02: Use graph theory to model

relationships and solve problems

Page 3: More Graphs, Subgraphs and Trees Planarity and Coloring.

Four Color TheoremFour Color Theorem

• According to the four-color theorem we learned that any map can be drawn on the surface of a sphere can be colored with four colors or fewer.

• If this is true, then why does it take more than four colors to color some graphs?

Page 4: More Graphs, Subgraphs and Trees Planarity and Coloring.

Try this!Try this!

• Try to redraw the graphs so that their edges intersect at the vertices. (Think of the edges as Rubber Bands.)

K4 graph K5 graph

A B

CD

A

B

C

DE

Page 5: More Graphs, Subgraphs and Trees Planarity and Coloring.

Planar GraphsPlanar Graphs

• It is relatively easy to redraw the K4 graph so that the edges do not cross, but no matter how hard you try, at least two edges of the K5 graph will always intersect.

• A graph that can be drawn so that no two edges intersect except at a vertex is called a planar graph.

Page 6: More Graphs, Subgraphs and Trees Planarity and Coloring.

Planar Graphs and the Four Color Planar Graphs and the Four Color TheoremTheorem

• When regions of a map are represented by vertices of a graph and edges are drawn between vertices when boundaries exist between regions, the resulting graph is planar.

• In other words, graphs that come from a map in a plane or on a sphere are always planar.

• Hence, the four color theorem can be stated:Every planar graph has a chromatic number that is less than or equal to four.

Page 7: More Graphs, Subgraphs and Trees Planarity and Coloring.

Four Colors?Four Colors?

• Why do some graphs require more than four colors?

• Planarity is the key.• If the graph is not planar, we don’t know

how many colors it will take to color it.• For example, the K5 graph and other

nonplanar graphs as the one on the next slide.

Page 8: More Graphs, Subgraphs and Trees Planarity and Coloring.

A KA K3, 33, 3 Graph Graph

A D

B E

C F

Page 9: More Graphs, Subgraphs and Trees Planarity and Coloring.

You Try!You Try!

• Try to draw the K3, 3 graph without the edges crossing.

• This graph has another interesting characteristic, other than being nonplanar.

• It is an example of a bipartite graph. • A bipartite graph is a graph whose vertices can be

divided into two distinct sets so that each edge of the graph has one vertex in each set.

Page 10: More Graphs, Subgraphs and Trees Planarity and Coloring.

Bipartite GraphsBipartite Graphs

• A bipartite graph is said to be complete if it contains all possible edges between pairs of vertices in the two distinct sets.

• Complete bipartite graphs can be denoted by KM, N, where M and N are the number of vertices in the two distinct sets.

Page 11: More Graphs, Subgraphs and Trees Planarity and Coloring.

Another Bipartite GraphAnother Bipartite Graph

• Here is another example of a complete bipartite graph.

A

B

C

X

Y

Page 12: More Graphs, Subgraphs and Trees Planarity and Coloring.

The KThe K3, 23, 2 Graph Graph

• This graph is bipartite since its vertices can be separated into two distinct sets {A, B, C} and {X, Y}.

• Every edge has one vertex in each set; and all possible edges from one set to the other are drawn.

• Determining planarity can be difficult for a large graph, and so a theorem resulted.

Page 13: More Graphs, Subgraphs and Trees Planarity and Coloring.

Kazimierz KuratowskiKazimierz Kuratowski

• In 1930 Kazimierz Kuratowski, a Polish mathematician proved a theorem that determines the planarity of graphs.

• He identified two important

graphs, K5 and K3, 3 and noted that any graph that

has a K5 or K3,3 subgraph is

not planar.

Page 14: More Graphs, Subgraphs and Trees Planarity and Coloring.

SubgraphsSubgraphs

• A graph G’ is said to be a subgraph of graph G is all of the vertices and edges of G’ are contained in G.

• Kuratowski also noted that the lack of a K5 or K3,3 does not guarantee planarity.

• Actually, 99% of nonplanar graphs of modest size are nonplanar because of a K3, 3 subgraph rather than a K5 subgraph.

Page 15: More Graphs, Subgraphs and Trees Planarity and Coloring.

ExampleExample

• Is the graph below planar?

A

B

C

D

EF

G

Page 16: More Graphs, Subgraphs and Trees Planarity and Coloring.

Example ExplainedExample Explained

• Upon close observation of vertices A, B, C, D, E, and F a K3,3 subgraph can be found.

• Therefore, the graph is nonplanar.

Page 17: More Graphs, Subgraphs and Trees Planarity and Coloring.

Practice ProblemsPractice Problems

In Exercises 1 through 3 decide whether the graph is planar or nonplanar. If the graph is planar, redraw it without edge crossings.

1. 2.A B

C

D E

F

A B

C

DE

F

Page 18: More Graphs, Subgraphs and Trees Planarity and Coloring.

Practice Problems (cont’d)Practice Problems (cont’d)

3. A

B

C

D

E

F

Page 19: More Graphs, Subgraphs and Trees Planarity and Coloring.

Practice Problems (cont’d)Practice Problems (cont’d)

4. The graph below is planar. Draw it without edge crossings.

A

BC D

E

FGH

I

Page 20: More Graphs, Subgraphs and Trees Planarity and Coloring.

Practice Problems (cont’d)Practice Problems (cont’d)

5. How do you know that it is not necessary to check the graph in Problem 4 for a K5 subgraph?

6. The complement of a graph G is customarily denoted by G. G has the same vertices as G but its edges are those not in G. The edges of G and G along with vertices from either set would make a complete graph. Draw the complement of the following graph.

Page 21: More Graphs, Subgraphs and Trees Planarity and Coloring.

Practice Problems (cont’d)Practice Problems (cont’d)

A B

C D

E

Page 22: More Graphs, Subgraphs and Trees Planarity and Coloring.

Practice ProblemsPractice Problems

7. The concept of planarity is extremely important to printing circuit boards for the electronics industry. Why?

8. Construct the following bipartite graphs:a. K2,3 b. K2,4

9. For each of the following bipartite graphs, list the two distinct sets into which the vertices can be divided:

Page 23: More Graphs, Subgraphs and Trees Planarity and Coloring.

Practice Problems (cont’d)Practice Problems (cont’d)

A

B

C

D

E

F

G

P

QN

M

R

S

T

V

X

Y

W

U

Z

Page 24: More Graphs, Subgraphs and Trees Planarity and Coloring.

Practice Problems (cont’d)Practice Problems (cont’d)

10. How many edges are in a K2,3 graph? A K4, 3? A KM,N?

11. When does a bipartite graph, K M,N have an Euler circuit?

12. Is the graph on the next slide planar? Does it contain K5 or K3,3 as a subgraph?

Page 25: More Graphs, Subgraphs and Trees Planarity and Coloring.

Practice Problems (cont’d)Practice Problems (cont’d)A

BC

D

E

F

G

H

I

J

Page 26: More Graphs, Subgraphs and Trees Planarity and Coloring.

ExtensionsExtensions

• For many years, mathematicians thought that all nonpolar graphs had K5 or K3,3 as subgraphs.

• Graphs such as the one in Exercise 12 are said to be an extention of a K5 because it was formed by adding a vertex or vertices to the edges of the K5 graph.

• Extensions of K5 and K3,3 are nonpolar.