9.4 Connectivity.

Slides:



Advertisements
Similar presentations
Discrete Mathematics University of Jazeera College of Information Technology & Design Khulood Ghazal Connectivity Lecture _13.
Advertisements

Graphs: basic definitions and notation Definition A (undirected, unweighted) graph is a pair G = (V, E), where V = {v 1, v 2,..., v n } is a set of vertices,
Based on slides by Y. Peng University of Maryland
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
9.7 Planar Graphs. Intro problem- 3 houses and 3 utilities K 3,3 problem: Can 3 houses be connected to 3 utilities so that no 2 lines cross? Similarly,
1 Slides based on those of Kenneth H. Rosen Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus Graphs.
1 Lecture 5 (part 2) Graphs II Euler and Hamiltonian Path / Circuit Reading: Epp Chp 11.2, 11.3.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 CHAPTER 4 - PART 2 GRAPHS 1.
8.4 Closures of Relations. Intro Consider the following example (telephone line, bus route,…) abc d Is R, defined above on the set A={a, b, c, d}, transitive?
Applied Discrete Mathematics Week 12: Trees
CSE 321 Discrete Structures Winter 2008 Lecture 25 Graph Theory.
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,
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
GRAPH Learning Outcomes Students should be able to:
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
 What is a graph? What is a graph?  Directed vs. undirected graphs Directed vs. undirected graphs  Trees vs graphs Trees vs graphs  Terminology: Degree.
1 CS104 : Discrete Structures Chapter V Graph Theory.
MATH 370 Final Review Chapter Know this well Chapter 5 and 6: Counting/ Probability Basic counting P(n,r), C(n,r), C(n-1+r,r),… Basic probability,
Based on slides by Y. Peng University of Maryland
Module #19: Graph Theory: part II Rosen 5 th ed., chs. 8-9.
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.
Chapter 5 Graphs  the puzzle of the seven bridge in the Königsberg,  on the Pregel.
Lecture 5.4: Paths and Connectivity CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph Grunschlag.
 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.
Basic properties Continuation
Graphs Basic properties.
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Paths and circuits.
(CSC 102) Lecture 30 Discrete Structures. Graphs.
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.
1 Lecture 5 (part 2) Graphs II (a) Circuits; (b) Representation Reading: Epp Chp 11.2, 11.3
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 10.
An Introduction to Graph Theory
Lecture 5.4: Paths and Connectivity
Applied Discrete Mathematics Week 14: Trees
Chapter 9 (Part 2): Graphs
Matrix Representation of Graphs
Introduction to Graphs
Let us switch to a new topic:
Applied Discrete Mathematics Week 13: Graphs
Special Graphs By: Sandeep Tuli Astt. Prof. CSE.
Graphs Hubert Chan (Chapter 9) [O1 Abstract Concepts]
Representing Graphs and
Discrete Structures – CNS2300
Introduction to Graphs
Graphs.
Based on slides by Y. Peng University of Maryland
Chapter 13 (Part 1): Graphs
Can you draw this picture without lifting up your pen/pencil?
Rosen 5th ed., chs. 8-9 ~44 slides (more later), ~3 lectures
Graphs All tree structures are hierarchical. This means that each node can only have one parent node. Trees can be used to store data which has a definite.
Relations (sections 7.1 – 7.5)
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.
Walks, Paths, and Circuits
10.4 Connectivity Dr. Halimah Alshehri.
Lecture 5.3: Graph Isomorphism and Paths
Graphs G = (V, E) V are the vertices; E are the edges.
Definition 8: Graphs that have a number assigned to each edge or each vertex are called weighted graphs weighted digraphs.
Paths and Connectivity
Paths and Connectivity
Applied Discrete Mathematics Week 13: Graphs
Based on slides by Y. Peng University of Maryland
Agenda Review Lecture Content: Shortest Path Algorithm
Introduction to Graphs
Exam 3 review Chapter 9- Graphs.
Presentation transcript:

9.4 Connectivity

Invariant properties Recall- invariant properties that isomorphic graphs share Some examples?... Path lengths are another invariant property. Applications of paths: sending a message between any 2 computers, taking a bus from a to b

Definitions of path, circuit Basic Def: In a simple undirected graph, a path of length n from x0 to xn is a sequence x0, x1,…xn.  A circuit is a path where x0=xn. A simple path or circuit is one that does not contain the same edge more than once. In an undirected graph: A path of length n from u to v: A sequence of edges e1,e2,…en such that f(e1)={ x0, x1}…f(en)= {xn-1, xn} where x0=u and xn=v. In a directed graph, the notation changes: f(e1)=(x0, x1)…f(en)= (xn-1, xn).

Path- examples Hollywood Collaboration See book p. 623-624

Connectedness in Undirected Graphs  Def: An undirected graph is called connected if there is a path between every pair of distinct vertices on the graph.   Examples and non-examples

Connected, unconnected In this connected graph, removal of which edges would make the graph unconnected? A d f g B c e h i

Thm. 1 Theorem 1: There is a simple path between every pair of distinct vertices of a connected undirected graph. Proof method?

Thm 1 proof Proof: Let u and v be two distinct vertices of the connected undirected graph G=(V,E). Since ____________, there is at least one path between u and v. Let x0,x1,…xn be a path from u to v _________. To see it is simple, assume_________ Then…

Connectedness in Directed Graphs  Def: A directed graph is strongly connected if there is a path from a to b and from b to a whenever a and b are vertices in the graph.   Def: A directed graph is weakly connected if there is a path between any two vertices in the underlying graph. Question: Does one imply the other?

Ex-- strongly and weakly connected a b c d e f Ex 2

Paths and Isomorphism Look for paths on the handout from 9.3.   If you can find a path or circuit of a certain length in G but not in H, then G and H are not isomorphic. Another example: consider vertices, edges, degrees,… paths 1 1 6 2 6 2 5 3 5 3   4 4

Counting Path Between Vertices  Ex: How many paths of length 3 are there from a to d in G? a b   d c Find the adjacency matrices for A, A2, A3

Counting paths- Ex. 2 Ex 2: How many paths of length 4 are there from a to b? a b d c   Find A and A4

Theorem 2: Thm. 2: Let G be a graph with an adjacency matrix A. The number of different paths of length r from vi to vj equals the (i,j)th entry of Ar.   Proof: method? … see book for proof

Exercises See p. 631: 19-21 see sketchpad