1 / 28

Graph Theory Chapter 4 sec. 1

Graph Theory Chapter 4 sec. 1. Koenigsberg bridge problem. It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg. .

tam
Télécharger la présentation

Graph Theory Chapter 4 sec. 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Graph TheoryChapter 4 sec. 1

  2. Koenigsberg bridge problem • It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.

  3. It was a popular pastime for the citizens of Koenigsberg to start in one section of the city and take a walk visiting all sections of the city, trying to cross each bridge exactly once and to return to the original starting point.

  4. How did it start? • In 1735, a Swiss Mathematician Leonhard Euler became the first person to work in graph theory by solving the Koenigsburg bridge problem. • Discovered a simple way to determine when a graph can be traced.

  5. Definition • Trace-to begin at some vertex and draw the entire graph without lifting your pencil and without going over any edge more than once.

  6. On a piece of paper draw these 2 pictures.

  7. Exercise 1 • Place your pencil on any dot and trace the figure completely without lifting your pencil and without tracing any part of any line twice. • Which of the two can be done?

  8. Solution • Fig. A can be traced. • Fig. B cannot be traced.

  9. Definitions • Graph- consists of a finite set of points • Vertices – are points on the graph • Edges- are lines that join pairs of vertices • Connected- if it is possible to travel from any vertex to any other vertex of the graph by moving along successive edges. • Bridge- in a connected graph is an edge such that if it were removed the graph is no longer connected.

  10. Odd and Even Vertex • Odd – The graph is odd if it is an endpoint of an odd number of edges of the graph. • Even- The graph is even if it is an endpoint of an even number of edges of the graph.

  11. Determine which vertices are even and which are odd.

  12. Solution • Vertex A is odd • Vertex B is odd • Vertex C is odd • Vertex D is odd

  13. Determine which vertices are odd and even

  14. Solution • Vertex A is odd • Vertex B is odd • Vertex C is even • Vertex D is even

  15. Euler’s Theorem • A graph can be traced if it is connected and has zero or two odd vertices.

  16. Which of the graphs can be traced?

  17. Solution • Fig. 1 Cannot be traced. (all odd) • Fig. 2 Can be traced by Euler’s theorem.

  18. Note • If a graph has 2 odd vertices, the tracing must begin at one of these and end at the other. • If all vertices are even, then the graph tracing must begin and end at the same vertex. It does not matter at which vertex this occurs.

  19. Definitions • Path- in a graph is a series of consecutive edges in which no edge is repeated. • Euler path- A path containing all the edges of a graph.

  20. Euler circuit- An Euler path that begins and ends at the same vertex. • Eulerian graph-A graph with all even vertices contains an Euler circuit

  21. Find Euler’s path and Euler’s circuit for the two fig. below.

  22. Solution • Fig. 1 (star) • Euler’s path - ADBECA • Euler ‘s circuit - ADBECA • Fig. 2 • Euler’s path – CABCDEHIDFG • Euler’s circuit – There is none, because G and C are both odd vertices, we must begin at one and end at the other.

  23. What is Euler’s circuit used for? • How many of you ride the pubic transportation? • Efficient routes. • Map Coloring

  24. Eulerizing a Graph • 1. The graph must have all even vertices. • 2. If a graph has an odd vertex, then we will add some edges to make that vertex an even vertex. • 3. We want to begin and end at the same vertex. • 4. We do not want to travel on the same edge twice.

  25. Find and efficient route.

  26. Thank you

More Related