Chapter 5 Graphs  the puzzle of the seven bridge in the Königsberg,  on the Pregel.

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,
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
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
Applied Discrete Mathematics Week 12: Trees
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.
Representing Graphs Wade Trappe. Lecture Overview Introduction Some Terminology –Paths Adjacency Matrix.
Applied Discrete Mathematics Week 12: Trees
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
9.3 Representing Graphs and Graph Isomorphism
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Let us switch to a new topic:
Graphs Rosen 8.1, 8.2. There Are Many Uses for Graphs! Networks Data organizations Scene graphs Geometric simplification Program structure and processes.
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.
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
 期中测验时间:  11 月 4 日  课件 集合,关系,函数,基数, 组合数学.  Ⅰ Introduction to Set Theory  1. Sets and Subsets  Representation of set:  Listing elements, Set builder.
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.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
1 CS104 : Discrete Structures Chapter V Graph Theory.
Based on slides by Y. Peng University of Maryland
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.
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
Graphs What are Graphs? General meaning in everyday math: A plot or chart of numerical data using a coordinate system. Technical meaning in discrete.
Chapter 1 Fundamental Concepts Introduction to Graph Theory Douglas B. West July 11, 2002.
9 Graphs. A graph G = (V, E) consists of V, a nonempty set of vertices (or nodes) and E, a set of edges. Each edge has either one or two vertices associated.
September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins.
1 Graphs Theory UNIT IV. 2Contents  Basic terminology,  Multi graphs and weighted graphs  Paths and circuits  Shortest path in weighted graph  Hamiltonian.
An Introduction to Graph Theory
Graph Theory and Applications
Graphs 9.1 Graphs and Graph Models أ. زينب آل كاظم 1.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
 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.
Graphs Basic properties.
1 Graphs Terminology By: Sandeep Tuli Astt. Prof. CSE.
Graph Theory Unit: 4.
Chapter 9: Graphs.
Introduction to Graph Theory By: Arun Kumar (Asst. Professor) (Asst. Professor)
Chapter 05 Introduction to Graph And Search Algorithms.
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.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
1 Lecture 5 (part 2) Graphs II (a) Circuits; (b) Representation Reading: Epp Chp 11.2, 11.3
رياضيات متقطعة لعلوم الحاسب 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.
Fundamental Graph Theory (Lecture 1) Lectured by Hung-Lin Fu 傅 恆 霖 Department of Applied Mathematics National Chiao Tung University.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
Lecture 19: CONNECTIVITY Sections
Graph theory Definitions Trees, cycles, directed graphs.
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 10 Graphs Slides are adopted from “Discrete.
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
CS100: Discrete structures
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.
Let us switch to a new topic:
Graphs G = (V, E) V are the vertices; E are the edges.
Chapter 5 Graphs the puzzle of the seven bridge in the Königsberg,
Definition 8: Graphs that have a number assigned to each edge or each vertex are called weighted graphs weighted digraphs.
5/9/2019 Discrete Math II Howon Kim
Applied Discrete Mathematics Week 13: Graphs
Based on slides by Y. Peng University of Maryland
Concepts of Computation
Presentation transcript:

Chapter 5 Graphs  the puzzle of the seven bridge in the Königsberg,  on the Pregel

 Kirchhoff  Cayler C n H 2n+1  The four colour problem 四色问题  Hamiltonian circuits  1920s,König: finite and infinite graphs  OS,Compiler,AI, Network

5.1 Introduction to Graphs  Graph terminology  Relation: digraph  Definition 1 : Let V is not empty set. A directed graph, or digraph, is an ordered pair of sets (V,E) such that E is a subset of the set of ordered pairs of V. We denote by G(V,E) the digraph. The elements of V are called vertices or simply "points", and V is called the set of vertices. Similarly, elements of E are called "edge", and E is called the set of edges.

 G=(V,E),V={a,b,c,d,e,f,g},  E={(a,b),(a,c),(b,c),(c,a),(c,c),(c,e),(d,a),( d,c),(f,e), (f,f)}, Edge (a,b) a: initial vertex , b:terminal vertex edges (a,b) incident with the vertices a and b 。 (c,c),(f,f) loop g: isolated vertex 。

 Definition 2 : Let (a,b) be edge in G. The vertices a and b are called endvertices of edges; a and b are called adjacent in G; the vertex a is called initial vertex of edge (a,b), and the vertex b is called terminal vertex of this edge. The edge (a,b) is called incident with the vertices a and b. The edge (a,a) is called loop 。 The vertex is called isolated vertex if a vertex is not adjacent to any vertex. g is an isolated vertex, (c,c),(f,f) are loop. a and b are adjacent; c and d are adjacent;

 Definition 3: Let V is not empty set. An undirected graph is an ordered pair of sets (V,E) such that E is a sub-multiset of the multiset of unordered pairs of V. We denote by G(V,E) the graph. The elements of V are called vertices or simply "points", and V is called the set of vertices. Similarly, elements of E are called "edge", and E is called the set of edges. V={v 1,v 2,v 3,v 4,v 5,v 6 } , E={{v 1,v 2 },{v 1,v 5,} , {v 2,v 2 }, {v 2,v 3 },{v 2,v 4 },{v 2,v 5 },{v 2,v 5 },{v 3,v 4 },{v 4,v 5 }} , edges {v 1,v 2 } incidents with the vertices v 1 and v 2 loop ; isolated vertex edge {v 2,v 5 } multiple edge 。

 Definition 4 : These edges are called multiple edges if they incident with the same two vertices. The graph is called multigraph. The graph is called a simple graph, if any two vertices in the graph, may connect at most one edge (i.e., one edge or no edge) and the graph has no loop. The complete graph on n vertices, denoted by K n, is the simple graph that contains exactly one edge between each pair of distinct vertices.

 undirected graph: graph  finite graph  finite digraph

 Definition 5 : The degree of a vertex v in an undirected graph is the number of edges incident with it, except that a loop at a vertex contributes twice to the degree of that vertex. The degree of the vertex v is denoted by d(v). A vertex is pendent if only if it has degree one. The minimum degree of the vertices of a graph G is denoted by  (G)(=min v  V {d(v)}) and the maximum degree by  (G)(=max v  V {d(v)}  b=a,{a,a},

 Theorem 5.2: An undirected graph has an even number of vertices of odd degree.

 Definition 6 : In a directed graph the out- degree of a vertex v by d + (v) is the number of edges with v as their initial vertex. The in-degree of a vertex v by d - (v), is the number of edges with v as their terminal vertex. Note that a loop at a vertex contributes 1 to both the out-degree and the in-degree of this vertex. The degree of the vertex v is denoted by d(v).

 Theorem 5.3: Let G(V,E) be an directed graph. Then

a  D, b  B,c  A,d  E; (a,b)  (D,B), (a,c)  (D,A),… , isomorphism

 Definition 7 : The directed graphs G(V,E) and G'(V',E') be isomorphic if there is a one to one and onto function f from V to V' with the property that (a, b) is a edge of G if only if (f(a),f(b)) is a edge of G'. We denote by G  G'. The undirected graph G(V,E) and G'(V',E') be isomorphic if there is a one to one and onto function f from V to V' with the property that {a, b} is a edge of G if only if {f(a),f(b)} is a edge of G'. We denote by G  G'.

 Petersen 3-regular The graph is called k-regular if every vertex of G has degree k.

 Definition 8: Graphs that have a number assigned to each edge or each vertex are called weighted graphs  weighted digraphs

 Definition 9: The graph G'(V',E') is called a subgraph of G(V,E) If V'  V and E'  E. If V'=V, then G'(V',E') is said to be a spanning subgraph.

 Definition 10: If G'(V',E') contains all edges of G that join two vertices in V' then G' is called the induced subgraph by V'  V and is denoted by G(V').  induced subgraph by {v 1,v 2,v 4,v 5 }

 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 removing endpoints of the edge

Adjacency matrices and Incidence matrices  Definition 12: Let G(V,E) be a graph of non- multiple edge where |V|=n. Suppose that v 1,v 2,…,v n are the vertices. The adjacency matrix A of G, with respect to this listing of the vertices, is the n  n zero- one matrix with 1 as its (i,j)th entry when v i and v j are adjacent, and 0 as its (i,j)th entry when they are not adjacent. In other words, If its adjacency matrix is A=[a ij ], then

 Let G(V,E) be an undirected graph. Suppose that v 1,v 2,…,v n are the vertices and e 1,e 2,…,e m are the edges of G. Then the incidence matrix with respect to this ordering of V and E is the n  m matrix M=[m ij ], where

 Paths and Circuits, Connectivity,8.1 P291

 Exercise P123 27,28;  P295 9,10;  1.Represent each of these graphs with an adjacency matrix an incidence matrix.