Presentation on theme: "Discrete math Objectives: To learn vocabulary, vertex/edge patterns in discrete math. Vertex Edge Graph - A collection of points some of which are joined."— Presentation transcript:
Discrete math Objectives: To learn vocabulary, vertex/edge patterns in discrete math. Vertex Edge Graph - A collection of points some of which are joined by line segments or curves. This graph has 6 vertices and 7 edges Each point is a vertex and each line is an edge
Degrees of a vertex The degree of a vertex in a graph is the number of edges that touch it Each vertex is labeled with its degree A graph is regular if every vertex has the same degree
An Eulerian path in a graph is a path that travels along every edge of the graph exactly once. An Eulerian path might pass through individual vertices of the graph more than once. Euler Graph (pronounced oilier) Start and finish Euler circuits is a path that ends at the same vertex it started A Euler path is a snowplow problem where a snow plow needs to plow every street once.
Draw the Vertex/edge graph and answer the following questions. 1) How many vertices are there? 2) How many edges are there? 3)How many vertices have a degree of 2? 4) How many vertices have a degree of 4? Draw a Euler circuit starting at the vertex with a white dot. Remember: A circuit travels along every path exactly once and may pass through vertices multiple times before ending at the starting vertex
# of ODD VerticesImplication (for a connected graph) 0 There is at least one Euler Circuit. 1THIS IS IMPOSSIBLE! Cant be drawn 2 There is no Euler Circuit but at least 1 Euler Path. more than 2 There are no Euler Circuits or Euler Paths. Use this chart to see if a Euler path or circuit may be drawn
Vocabulary: Hamiltonian Circuit/Paths: A Hamiltonian path in a graph is a path that passes through every vertex in the graph exactly once. A Hamiltonian path does not necessarily pass through all the edges of the graph, however. A Hamiltonian path which ends in the same place in which it began is called a Hamiltonian circuit.
Trace a Hamiltonian path Only a path, not a circuit. The path did not end at the same vertex it started. The path does not need to go over every edge but it can only go over an edge once and must pass through every vertex exactly once. Hamiltonian Circuits are often called the mail man circuit because the mailman goes to every mailbox but does not need to go over every street.
A weighted edge has a value assigned to the edge (i.e.- miles, time, gallons of gas, any unit of measure) N Bank Pharmacy Post Office Dry Cleaners Grocery Store Home Sweet Home Video Store Find the quickest route from home to the pharmacy
Review: Euler GraphsPasses over edge exactly once. May pass through a vertex more than once. Hamiltonian Graphs Passes through every vertex exactly once but not necessarily over every edge. Circuits The path ends at the same vertex it started.