Chap 7 Graph Def 1: Simple graph G=(V,E) V : nonempty set of vertices E : set of unordered pairs of distinct elements of V called edges Def 2: Multigraph.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Chapter 9 Graphs.
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Graph-02.
 期中测验时间:本周五上午 9 : 40  教师 TA 答疑时间 : 周三晚上 6 : 00—8 : 30  地点:软件楼 315 房间,  教师 TA :李弋老师  开卷考试.
1 Slides based on those of Kenneth H. Rosen Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus Graphs.
Discrete Mathematics and Its Applications
1 Section 8.2 Graph Terminology. 2 Terms related to undirected graphs Adjacent: 2 vertices u & v in an undirected graph G are adjacent (neighbors) in.
SE561 Math Foundations Week 11 Graphs I
Graph Theory in CS Route Search in Online Map Services
Discrete Structures Chapter 7A Graphs Nurul Amelina Nasharuddin Multimedia Department.
1 Section 8.4 Connectivity. 2 Paths In an undirected graph, a path of length n from u to v, where n is a positive integer, is a sequence of edges e 1,
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
Selected Topics in Data Networking Graph Representation.
Applied Discrete Mathematics Week 12: Trees
Chapter 4 Graphs.
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Let us switch to a new topic:
9.2 Graph Terminology and Special Types Graphs
GRAPH Learning Outcomes Students should be able to:
Graphs Chapter 10.
Graph Theoretic Concepts. What is a graph? A set of vertices (or nodes) linked by edges Mathematically, we often write G = (V,E)  V: set of vertices,
1 Graphs Chapters 9.1 and 9.2 University of Maryland Chapters 9.1 and 9.2 Based on slides by Y. Peng University of Maryland.
16.1 CompSci 102© Michael Frank Today’s topics GraphsGraphs –Basics & types –Properties –Connectivity –Hamilton & Euler Paths Reading: Sections Reading:
Module #19: Graph Theory: part I Rosen 5 th ed., chs. 8-9 내년 3 월 ? 교환 학생 프로그램 영어 점수 미리미리 준비하세요.
1 Elements of Graph Theory Quick review of Chapters 9.1… 9.5, 9.7 (studied in Mt1348/2008) = all basic concepts must be known New topics we will mostly.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Lecture 10: Graphs Graph Terminology Special Types of Graphs
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
aka “Undirected Graphs”
9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…
1 CS104 : Discrete Structures Chapter V Graph Theory.
9.1 Introduction to Graphs
GRAPHS THEROY. 2 –Graphs Graph basics and definitions Vertices/nodes, edges, adjacency, incidence Degree, in-degree, out-degree Subgraphs, unions, isomorphism.
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.
Graphs What are Graphs? General meaning in everyday math: A plot or chart of numerical data using a coordinate system. Technical meaning in discrete.
September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins.
Chapter 5 Graphs  the puzzle of the seven bridge in the Königsberg,  on the Pregel.
CS 103 Discrete Structures Lecture 20
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 1): Graphs  Introduction to Graphs (9.1)
Graphs 9.1 Graphs and Graph Models أ. زينب آل كاظم 1.
And before you really hate (mathematical) relations and begin to break your (social) relations, let’s switch to a new topic: Graphs Discrete Structures.
 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.
Discrete Structures CISC 2315 FALL 2010 Graphs & Trees.
Introduction to Graphs Slides by Gene Boggess
Graphs Basic properties.
LOGO.  Relations:  In these slides: Introductions to graphs Graph terminology Representing graphs and graph isomorphism Connectivity Euler and Hamilton.
Chapter 9: Graphs.
Graphs Rosen, Chapter 8. NOT ONE OF THESE! One of these!
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
9.5 Euler and Hamilton graphs. 9.5: Euler and Hamilton paths Konigsberg problem.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 10.
1 Graphs Chapters 10.1 and 10.2 University of Maryland Chapters 10.1 and 10.2 Based on slides by Y. Peng University of Maryland.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
An Introduction to Graph Theory
Let us switch to a new topic:
Lecture 19: CONNECTIVITY Sections
Special Graphs By: Sandeep Tuli Astt. Prof. CSE.
Graphs Hubert Chan (Chapter 9) [O1 Abstract Concepts]
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 10 Graphs Slides are adopted from “Discrete.
Graphs.
Rosen 5th ed., chs. 8-9 ~44 slides (more later), ~3 lectures
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
CS100: Discrete structures
Let us switch to a new topic:
Euler and Hamilton Paths
Graphs G = (V, E) V are the vertices; E are the edges.
Applied Discrete Mathematics Week 13: Graphs
Presentation transcript:

Chap 7 Graph Def 1: Simple graph G=(V,E) V : nonempty set of vertices E : set of unordered pairs of distinct elements of V called edges Def 2: Multigraph G=(V,E) loops are not allowed in simple or multi graphs Def 3: pseudograph ( loops allowed )

Chap 7 Graph Def 4: directed graph E : ordered pairs of element of V Def 5: directed multigraph Table 1. Graph Terminology Examples

Chap 7 Graph Graph Terminology  Undirected graph Def 1: adjacent : u and v are adjacent if {u,v} is an edge ; this edge is incident with u and v; u and v are endpoints. Def 2: degree of v : number of edges incident with it,except that a loop contributes twice to the degree. Example 1 Isolated vertex : degree 0

Chap 7 Graph Theorem 1: The handshaking theorem G=(V,E) : an undirected graph with e edges 2 e =  deg (v) Theorem 2: An undirected graph has an even number of odd-degree vertices sd vVvV

Chap 7 Graph  Directed graph (u,v): u:initial vertex, v:end vertex Def 3: in-degree, deg - (v) : number of edges with v as end vertex out-degree, deg + (v) Theorem 3: G=(V,E)  deg + (v) =  deg - (v) = |E| vVvVvVvV

Chap 7 Graph Complete graph : K n, Example 4 Cycle : C n,n>= 3, Example 5 Wheel : W n,n>= 3, Example 6 n-cube :Q n, Example 7 Def 4: bipartite: its vertex set V can be partitioned into two disjoint nonempty sets V 1 and V 2 such that every edge connects a vertex in V 1 and a vertex V 2.

Chap 7 Graph Example 8 C 6 : bipartite Example 9 K 3 : not bipartite Example 11 : complete bipartite Def 5: subgraph H=(W,F) of a graph G =(V,E), W  V and F  E. Example 14

Chap 7 Graph  Isomorphism of Graphs Def 1: G 1 =(V 1,E 1 ), G 2 =(V 2, E 2 ) are isomorphic if there is a one-to-one and onto function f from V 1 to V 2 such that a, b adjacent in G 1,iff f(a) and f(b) are adjacent in G 2,,for all a and b in V 1. Example 8 u 1 u 2 v 1 v 2 u 3 u 4 v 3 v 4 f(u 1 )= v 1, f(u 2 )= v 4, f(u 3 )= v 3, f(u 4 )= v 2

Chap 7 Graph Example 9 G and H are not isomorphic number of vertices, number of edges,degrees of the vertices are invariants under isomorphism Example 10 Are G and H isomorphic?

Chap 7 Graph  Connectivity Def 1: Path of length n from u to v ; circuit ; simple path / circuit Example 1 Def 2: An undirected graph is connected if there is a path between every pair of distinct vertices of the graph.

Chap 7 Graph Theorem 1 There is a simple path between every pair of distinct vertices of a connected undirected graph.  A graph that is not connected is the union of two or more connected subgraphs, each pair of which has no vertex in common. - connected components  Cut vertices  Cut edge Example 4

Chap 7 Graph Example 6 Are G and H isomorphic? H has a simple circuit of length 3 while G dosen’t - another invariant

Chap 7 Graph Example 7 Are G and H isomorphic? - satisfy all for invariants - f (u 1 )=v 3, f(u 4 )=v 2, f(u 3 )=v 1,f(u 2 )=v 5.and f(u 5 )=v 4

Chap 7 Graph  Euler and Hamilton Paths - Is there a simple circuit in Figure 2 that contains every edge? Def 1 : An Euler circuit and an Euler path Example 1,2 Theorem 1 A connected multigraph has an Euler circuit if and only if each of its vertices has even degree.

Chap 7 Graph Theorem 2 A connected multigraph has an Euler paths but not an Euler circuit if and only if it has exactly two vertices of odd degree. Def. Hamilton path : A path X 0,X 1,…. X n-1, X n in G=(V,E) is a Hamilton path if V={X 0,X 1,….X n-1,X n } and Xi =Xj, for 0 <= i <j <=n. A circuit X 0,X 1,….X n-1,X n,X 0 is a Hamilton circuit if X 0,X 1,….X n-1,X n is a Hamilton path. Figure 8,9 and Example 5

Chap 7 Graph  No known simple necessary and sufficient criteria for the existence of Hamilton circuits. - sufficient conditions - properties used to show that a graph has no H.C. Example 6  Shortest path problem Example 1 Algorithm 1: Dijkstra’s algorithm Example 2