Walks, Paths, and Circuits

Slides:



Advertisements
Similar presentations
Simple Graph Warmup. Cycles in Simple Graphs A cycle in a simple graph is a sequence of vertices v 0, …, v n for some n>0, where v 0, ….v n-1 are distinct,
Advertisements

22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
Lecture 21 Paths and Circuits CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
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.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
1 Representing Graphs. 2 Adjacency Matrix Suppose we have a graph G with n nodes. The adjacency matrix is the n x n matrix A=[a ij ] with: a ij = 1 if.
What is the first line of the proof? a). Assume G has an Eulerian circuit. b). Assume every vertex has even degree. c). Let v be any vertex in G. d). Let.
Discrete Structures Chapter 7B Graphs Nurul Amelina Nasharuddin Multimedia Department.
Representing Graphs Wade Trappe. Lecture Overview Introduction Some Terminology –Paths Adjacency Matrix.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
Chapter 4 Graphs.
Degree A F H G B E D C. Adjacent A F H G B E D C.
GRAPH Learning Outcomes Students should be able to:
Graphs CS /02/05 Graphs Slide 2 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved Definition.
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
Based on slides by Y. Peng University of Maryland
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.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Lecture 14: Graph Theory I Discrete Mathematical Structures: Theory and Applications.
Graph Theory Introducton.
Introduction to Graph Theory
1.5 Graph Theory. Graph Theory The Branch of mathematics in which graphs and networks are used to solve problems.
Discrete Mathematical Structures: Theory and Applications
Lecture 10: Graph-Path-Circuit
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
1.Quiz 5 due tomorrow afternoon in E309 from 1pm to 4pm. 2.Homework grades will be based on ten graded homework assignments (dropping the lowest one).
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Chapter 6: Graphs 6.1 Euler Circuits
 Quotient graph  Definition 13: Suppose G(V,E) is a graph and R is a equivalence relation on the set V. We construct the quotient graph G R in the follow.
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.
Review Euler Graph Theory: DEFINITION: A NETWORK IS A FIGURE MADE UP OF POINTS (VERTICES) CONNECTED BY NON-INTERSECTING CURVES (ARCS). DEFINITION: A VERTEX.
Introduction to Graph Theory
1) Find and label the degree of each vertex in the graph.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.1 Graphs, Paths, and Circuits.
Today we will… Identify the vertices and edges on a given shape.
Section 9.3. Section Summary Representing Relations using Matrices Representing Relations using Digraphs.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 10.
Special Graphs By: Sandeep Tuli Astt. Prof. CSE.
Grade 11 AP Mathematics Graph Theory
AND.
Konigsberg’s Seven Bridges
Discrete Structures – CNS2300
Matrix Representation of Graph
Introduction to Graph Theory
UNIT 1: EULER CIRCUITS GRAPH THEORY.
Can you draw this picture without lifting up your pen/pencil?
Chapter 4 Review Math Analysis
Graph Theory.
Lecture 15: Graph Theory II
G-v, or G-{v} When we remove a vertex v from a graph, we must remove all edges incident with the vertex v. When a edge is removed from a graph, without.
Connectivity Section 10.4.
Graph Theory By Amy C. and John M..
Graph Theory What is a graph?.
Representing Graphs Wade Trappe.
Graphs, Paths & Circuits
Discrete Mathematics Lecture 13_14: Graph Theory and Tree
Graphs G = (V, E) V are the vertices; E are the edges.
GRAPHS G=<V,E> Adjacent vertices Undirected graph
Section 14.1 Graphs, Paths, and Circuits
Graph Theory Relations, graphs
Graphs, Paths, and Circuits
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
Warm Up – 3/17 - Monday A) List the set of vertices.
Graphs: Definitions How would you represent the following?
Agenda Review Lecture Content: Shortest Path Algorithm
Chapter 14 Graphs © 2011 Pearson Addison-Wesley. All rights reserved.
Presentation transcript:

Walks, Paths, and Circuits Graph Theory Walks, Paths, and Circuits

Definitions Walk: sequence of vertices Path: sequence of distinct vertices Length of a path: number of edges in a path Circuit: path that starts and ends at the same vertex, also known as a cycle

Definitions, con’t Euler circuit: a circuit that contains every edge and every vertex of the graph If graph has an Euler circuit then every vertex has even degree

Adjacency Matrices for Graphs Adjacency matrix: an n x n matrix for a graph with n vertices where each entry is the number of edges from each vertex to all the others

Example 1 Suppose A, B and C are three cities. Every day there are 2 nonstop flights from A to B, 3 from B to C and 1 from A to C. There are 2 nonstop flights from B to A, 2 from C to B, and 1 from C to A. Write the adjacency matrix for this information.

Example 2 Draw a picture of a directed graph that has the following adjacency matrix:

Example 3 Find the number of walks of length 2 from v2 to v1 in this graph. Find the number of walks of length 3 from v1 to v3 in this graph.