MTH118 Sanchita Mal-Sarkar. Routing Problems The fundamental questions: Is there any proper route for the particular problem? If there are many possible.

Slides:



Advertisements
Similar presentations
Chapter 8 Topics in Graph Theory
Advertisements

Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
Section 14.1 Intro to Graph Theory. Beginnings of Graph Theory Euler’s Konigsberg Bridge Problem (18 th c.)  Can one walk through town and cross all.
Euler Circuits and Paths
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Section 2.1 Euler Cycles Vocabulary CYCLE – a sequence of consecutively linked edges (x 1,x2),(x2,x3),…,(x n-1,x n ) whose starting vertex is the ending.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
Homework collection Thursday 3/29 Read Pages 160 – 174 Page 185: 1, 3, 6, 7, 8, 9, 12 a-f, 15 – 20.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.
GRAPH Learning Outcomes Students should be able to:
Graphs Chapter 10.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
Spring 2015 Mathematics in Management Science Euler’s Theorems Euler Circuits & Paths ECT & EPT Burning Bridges Fleury’s Algorithm.
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
(CSC 102) Lecture 29 Discrete Structures. Graphs.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
Graphs.  Definition A simple graph G= (V, E) consists of vertices, V, a nonempty set of vertices, and E, a set of unordered pairs of distinct elements.
5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Examples Euler Circuit Problems Unicursal Drawings Graph Theory
Introduction to Graph Theory
Aim: What is an Euler Path and Circuit?
1.5 Graph Theory. Graph Theory The Branch of mathematics in which graphs and networks are used to solve problems.
Graph Theory. A branch of math in which graphs are used to solve a problem. It is unlike a Cartesian graph that we used throughout our younger years of.
Lecture 10: Graph-Path-Circuit
Graphs 9.1 Graphs and Graph Models أ. زينب آل كاظم 1.
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
Vertex-Edge Graphs Euler Paths Euler Circuits. The Seven Bridges of Konigsberg.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
SECTION 5.1: Euler Circuit Problems
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Chapter 6: Graphs 6.1 Euler Circuits
Aim: Graph Theory – Paths & Circuits Course: Math Literacy Do Now: Aim: What are Circuits and Paths? Can you draw this figure without retracing any of.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Basic properties Continuation
Walks, Paths and Circuits. A graph is a connected graph if it is possible to travel from one vertex to any other vertex by moving along successive edges.
Chapter 11 - Graph CSNB 143 Discrete Mathematical Structures.
1) Find and label the degree of each vertex in the graph.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.1 Graphs, Paths, and Circuits.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
CSNB 143 Discrete Mathematical Structures
AND.
Konigsberg’s Seven Bridges
Discrete Structures – CNS2300
Discrete Math: Hamilton Circuits
Can you draw this picture without lifting up your pen/pencil?
Euler Paths and Circuits
Excursions in Modern Mathematics Sixth Edition
Konigsberg- in days past.
Graph Theory What is a graph?.
5 The Mathematics of Getting Around
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Euler circuit Theorem 1 If a graph G has an Eulerian path, then it must have exactly two odd vertices. Theorem 2 If a graph G has an Eulerian circuit,
Section 14.1 Graphs, Paths, and Circuits
Applied Combinatorics, 4th Ed. Alan Tucker
Graphs, Paths, and Circuits
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Warm Up – 3/14 - Friday 100 seats are to be apportioned.
5 The Mathematics of Getting Around
Presentation transcript:

MTH118 Sanchita Mal-Sarkar

Routing Problems The fundamental questions: Is there any proper route for the particular problem? If there are many possible routes, which one is the best (cost, distance, or time)?

Routing Problems Examples: Mail delivery Garbage collection Newspaper delivery Internet access

Graphs Graph is a picture consisting of –Dots (called vertices) –Lines (called edges) Edges do not have to be straight lines Edges have to connect two vertices When an edge connects a vertex back with itself, then it is called a loop.

Examples of graphs A B CD A B C D Graph 1 Graph 2

Graph represents a relationship Ron John Bob Ruben Edge represents “brother of ”

Adjacent vertices/edges Two vertices are adjacent if there is an edge joining them. Two edges are adjacent if they share a common vertex. Vertices A and C are adjacent vertices AD and AC are adjacent edges

Degree of a vertex deg(A) = 2, deg(B) = 1, deg(C) = 5, deg(D) = 5, deg(E) = 3

Paths Vertex can appear on the path more than one. Edge cannot appear on the path more than once A sequence of vertices so that each vertex in the sequence is adjacent to the next one E, D, C, A. => A path from vertex E to vertex A E, D, C, D, A => Not a path because the edge DC appears twice

Circuits A path that starts and ends at the same vertex. A, C, D, A => A circuit of length 3

Connected graph A graph is connected if it is possible to travel from any vertex to any other vertex along consecutive edges of the graph Disconnected => If it is not connected Graph1, Graph4 => Connected Graph 2, Graph 3 => Disconnected

Bridge Absence of the bridge (edge) will disconnect the graph BD is a bridge

Euler Paths A path that travels through every edge of a graph. Edges can be traveled once since it is a path Travel every edge 1) without lifting your pencil 2) without retracing any edge R A L D No Euler paths R A L D Several Euler paths L,A, R, D, A, R, D, L, A

Euler circuits A circuit that travels through every edge of a graph Same requirement as for an Euler path, as well as Additional requirement: starting and ending vertex be the same. A B C D E F Graph has Euler circuit

Euler Theorem 1 If a graph has many odd vertices, then it cannot have an Euler circuit If a graph is connected and every vertex is an even vertex, then it has at least one Euler circuit (and usually more A B CD E Graph has no Euler circuit

Euler’s Theorem 2 If a graph has more than two odd vertices, then it cannot have an Euler path. If a graph is connected and has exactly two odd vertices, then it has at least one Euler path (and usually more). Any such path must start at one of the odd vertices and end at the other one.

Euler Theorem 2 No Euler circuit But, Euler path No Euler circuit No Euler path Euler circuit Euler path

Euler’s Theorem 2 Euler circuit Euler path No Euler circuit No Euler path No Euler circuit No Euler path No Euler circuit But, Euler path

Euler’s Theorem 3 The sum of the degrees of all the vertices of a graph equals twice the number of edges A graph always has an even number of odd vertices A graph has seven vertices–two vertices of degree 6, four vertices of degree 5, and one vertex of degree 2. The number of edges in the graph is 17. 2n = sum of the degree of all the vertices of a graph, n = no. of edges in the graph