1 / 20

Introduction to Vertex-Edge graphs (2 days)

Introduction to Vertex-Edge graphs (2 days). I can use basic vocabulary for graphs. A graph is a finite set of dots and connecting links. When edges of a graph indicate a direction that must be traveled, we have a directed graph or digraph.

dennisj
Télécharger la présentation

Introduction to Vertex-Edge graphs (2 days)

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. Introduction to Vertex-Edge graphs (2 days) • I can use basic vocabulary for graphs. • A graph is a finite set of dots and connecting links. When edges of a graph indicate a direction that must be traveled, we have a directed graph or digraph.

  2. Unit 8: Introduction to vertex edge graphsManagement Science • Management Science • Uses mathematical methods to help find optimal solutions to management problems. Often called Operations Research. • Optimal Solutions- The best (most favorable) solution • Government, business, and individuals all seek optimal results. • Optimization problems: • Finish a job quickly • Maximize profits • Minimize costs • Urban Services to optimize: • Checking parking meters • Delivering mail • Removing snow

  3. Unit 8: Introduction to vertex edge graphs Street map for part of a town. • Parking-Control Officer Problem Checking parking meters • Our job is to find the most efficient route for the parking-control officer to walk as he checks the parking meters. • Problem: Check the meters on the top two blocks. • Goals for Parking-Control Officer • Must cover all the sidewalks without retracing any more steps than necessary. • Should end at the same point at which he began. • Problem: Start and end at the top left-hand corner of the left-hand block. Euler circuit– A circuit that traverses each edge of a graph exactly once and starts and stops at the same point.

  4. Unit 8: Introduction to vertex edge graphs Euler Circuits Simplified graph (b) is enlarged to show the points (vertices) labeled with letters A – F which are linked by edges. Simplified graph (a) is superimposed on the streets with parking meters. • Graph – A finite set of dots (vertices) and connecting links (edges). Graphs can represent our city map, air routes, etc. • Vertex (pl. vertices) – A point (dot) in a graph where the edges meet. • Edge – A link that joins two vertices in a graph (traverse edges). • Path – A connected sequence of edges showing a route, described by naming the vertices traveled. • Circuit – A path that starts and ends at the same vertex.

  5. Graph terminology

  6. Day 1 • I can find Euler paths and circuits. • If the graph is connected and has all even valences, then the graph has an Euler circuit.

  7. Unit 8: Introduction to vertex edge graphs 8.03 Euler Circuits • Path vs. Circuit • Paths – Paths can start and end at any vertex using the edges given. examples: NLB, NMRB, etc. • Circuits – Paths that starts and ends at the same vertex. Examples: MRLM, LRBL, etc. • Circuit vs. Euler Circuit(Both start and end at same vertex.) Nonstop air routes Circuits may retrace edges or not use all the edges. Euler circuits travel each edge once and cover all edges.

  8. Unit 8: Introduction to vertex edge graphs 8.3 Finding Euler Circuits (oy’ ler) • Two Ways to Find an Euler Circuit • Trial and error Keep trying to create different paths to find one that starts and ends at the same point and does not retrace steps. • Mathematical approach (better method) An Euler circuit exists if the following statements are true: • All points (vertices) have even valence. • The graph is connected. Leonhard Euler(1707–1783) Among other discoveries, he was credited with inventing the idea of a graph as well as the concepts of valence and connectedness.

  9. Unit 8: Introduction to vertex edge graphs 8.3 Finding Euler Circuits • Valence – The number of edges touching that vertex (counting spokes on the hub of a wheel). • Connectedness – You can reach any vertex by traversing the edges given in the graph. Euler circuit – Has even-valent vertices and is connected. Proving Euler’s Theorem If a graph has an Euler circuit, it must have only even-valent vertices and it must be connected. This can be proved by pairing up edges at each vertex, thus proving all vertices have paired edges and further proving there is an even number of edges at each vertex, X. Thus, every edge at X has an incoming edge (arriving at vertex X) and an outgoing edge (leaving from vertex X). Example: At vertex B, you can pair up edges 2 and 3 and edges 9 and 10. If vertices have odd valence, it is not an Euler circuit. An Euler circuit starting and ending at A

  10. Unit 8: Introduction to vertex edge graphs 8.3 Finding Euler Circuits • Create (Find) an Euler Circuit • Pick a point to start (if none has been given to you). • Number the edges in order of travel, showing the direction with arrows. • Cover every edge only once, and end at the same vertex where you started. • Is there an Euler Circuit? • Does it have even valence? (Yes) • Is the graph connected? (Yes) Euler circuit exists if both “yes.”

  11. Day 2 • If no Euler circuit exists, then it is necessary to eulerize a graph by adding edges.

  12. Unit 8: Introduction to vertex edge graphs 8.3 Beyond Euler Circuits • Eulerizing a Graph • On the graph, add edges by duplicating existing ones, until you arrive at a graph that is connected and even-valent. The graph below is an efficient eulerization because the fewest number of edges were added. • Find an Euler circuit on the eulerized graph. Traverse every original and “added” edge once, as you find a circuit that starts and ends at the same vertex. • “Squeeze” this Euler circuit from the eulerized graph onto the original graph by replacing the “added” edge with an arrow showing it was retraced. Only reuse (add) edge BC. Squeeze the eulerized circuit onto the graph.

  13. Unit 8: Introduction to vertex edge graphs8.3 Beyond Euler Circuits • Hints for Eulerizing a Graph • For the most efficient eulerization, look for the fewest edges to add to make all vertices even. • Typically, locate odd valence vertices and try to reuse (add) the connecting edge between the vertices. • Sometimes vertices are more than one edge apart; in this case, reuse edges between vertices (see graph below). Remember: Only duplicate (add to) the existing edges. Odd vertices, X and Y, are more than one edge apart. This is not allowed — must only reuse existing edges. Reuse existing edges between the odd vertices.

  14. Unit 8: Introduction to vertex edge graphs8.3 Beyond Euler Circuits • Rectangular Networks – This is the name given to a street network composed of a series of rectangular blocks that form a large rectangle made up of so many blocks high by so many blocks wide. Eulerizing rectangular networks: “Edge Walker” • Start in upper left corner (at A). • Travel (clockwise) around the outer boundary. • As you travel, add an edge by the following rules: • If the vertex is odd, add an edge by linking it to the next vertex. • If this next vertex becomes even, skip it (just keep “walking”). • If this next vertex becomes odd, (on a corner) link it to the next vertex. • Repeat this rule until you reach the upper left corner again.

  15. Bellwork-Find whether the following is an Euler’s path, circuit, or neither.

  16. Solution - Starting at C

  17. Application of Graph terminology

  18. Solution

  19. Unit 8: Introduction to vertex edge graphs8.3 Urban Graph Traversal Problem • Euler Circuits and Eulerizing Graphs: Practical Applications • Checking parking meters (discussed) • Collecting garbage • Salting icy roads • Inspecting railroad tracks • Special Requirements May Need to Be Addressed • Traffic directions • Number of streets/lanes (divided routes) • Parking time restriction

  20. Vocabulary Review • What does the shipping term deadheaded mean? • How do we determine the valence of a graph? • How do we determine if a graph is connected? • What is the difference between a path, circuit and a walk?

More Related