Presentation is loading. Please wait.

Presentation is loading. Please wait.

© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.

Similar presentations


Presentation on theme: "© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory."— Presentation transcript:

1 © 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory

2 © 2010 Pearson Prentice Hall. All rights reserved. 2 §15.1, Graphs, Paths, and Circuits

3 © 2010 Pearson Prentice Hall. All rights reserved. 3 Learning Targets I will understand relationships in a graph. I will model relationships using graphs. I will understand and use the vocabulary of graph theory.

4 © 2010 Pearson Prentice Hall. All rights reserved. 4 Graphs A graph consists of a finite set of points, called vertices, (singular is vertex), and line segments or curves, called edges, that start and end at vertices. An edge that starts and ends at the same vertex is called a loop.

5 © 2010 Pearson Prentice Hall. All rights reserved. 5 Example 1: Understanding Relationships in Graphs Explain why the figures below show equivalent graphs. Solution: In both figures, the vertices are A, B, C, and D. Both graphs have an edge that connects vertex A to vertex B, an edge that connects vertex B to vertex C, and an edge that connects vertex C to vertex D. Because the two graphs have the same number of vertices connected to each other in the same way, they are equivalent.

6 © 2010 Pearson Prentice Hall. All rights reserved. 6 Example 2: Modeling Königsberg with a Graph We can represent, or model, different situations using graphs. Example: In the early 1700’s, the city of Königsberg, Germany, was located on both banks and two islands of the Pregel River. The figure below shows that the town’s sections were connected by seven bridges. Draw a graph that models the layout of Königsberg. Use vertices to represent the land masses and edges to represent the bridges.

7 © 2010 Pearson Prentice Hall. All rights reserved. 7 Solution: The only thing that matters is the relationship between land masses and bridges. We label each of the four land masses with an uppercase letter. We use points to represent the land masses. This figure shows vertices A, B, L, and R. We draw two edges connecting vertex A to right bank R, one edge from A to B, and two edges from A to left bank L. Example 1: Modeling Konigsberg with a Graph

8 © 2010 Pearson Prentice Hall. All rights reserved. 8 Example 3: Modeling Bordering Relationships for the New England States The map of New England states are given below. Draw a graph that models which New England states share a common border. Use vertices to represent the states and edges to represent common borders.

9 © 2010 Pearson Prentice Hall. All rights reserved. 9 Solution: a)Notice the states are labeled with their abbreviations. b)We use the abbreviations to label each vertex and use points to represent these vertices. c)Whenever two states share a common border, we connect the respective vertices with an edge. Example 3: Modeling Bordering Relationships for the New England States

10 © 2010 Pearson Prentice Hall. All rights reserved. 10 Circuits & Paths Vocabulary of Graph Theory The degree of a vertex is the number of edges at that vertex. A vertex with an even number of edges attached to it is an even vertex. A vertex with an odd number of edges attached to it is an odd vertex. Two vertices in a graph are said to be adjacent vertices if there is at least one edge connecting them.

11 © 2010 Pearson Prentice Hall. All rights reserved. 11 List the pairs of adjacent vertices for the given graph. Solution: A systematic way to approach this problem is to first list all the pairs of adjacent vertices involving vertex A, then all those involving vertex B but not A, and so on. The adjacent vertices are A and B, A and C, A and D, A and E, B and C, and E and E because there is at least one edge connecting them. Example 6: Identifying Adjacent Vertices

12 © 2010 Pearson Prentice Hall. All rights reserved. 12 A path in a graph is a sequence of adjacent vertices and the edges connecting them. Circuits & Paths Vocabulary of Graph Theory Notice the path along this graph is represented by sequential arrows.

13 © 2010 Pearson Prentice Hall. All rights reserved. 13 A circuit is a path that begins and ends at the same vertex. Circuits & Paths Vocabulary of Graph Theory

14 © 2010 Pearson Prentice Hall. All rights reserved. 14 A graph is connected if for any two of its vertices there is at least one path connecting them. A graph that is not connected is called disconnected. A disconnected graph is made of pieces that are connected by themselves called components of the graph. Circuits & Paths Vocabulary of Graph Theory

15 © 2010 Pearson Prentice Hall. All rights reserved. Homework Pg 827 – 828, #2 – 52 (e)


Download ppt "© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory."

Similar presentations


Ads by Google