Simple Graphs: Connectedness, Trees

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

The Primal-Dual Method: Steiner Forest TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A AA A A A AA A A.
Coloring Warm-Up. A graph is 2-colorable iff it has no odd length cycles 1: If G has an odd-length cycle then G is not 2- colorable Proof: Let v 0, …,
Discrete Mathematics University of Jazeera College of Information Technology & Design Khulood Ghazal Connectivity Lecture _13.
Connectivity - Menger’s Theorem Graphs & Algorithms Lecture 3.
Trees Chapter 11.
Chapter 8 Topics in Graph Theory
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
Introduction to Graphs
10.4 Spanning Trees. Def Def: Let G be a simple graph. A spanning tree of G is a subgraph of G that is a tree containing every vertex of G See handout.
MCA 520: Graph Theory Instructor Neelima Gupta
Graph Traversals Visit vertices of a graph G to determine some property: Is G connected? Is there a path from vertex a to vertex b? Does G have a cycle?
Breadth-First Search Seminar – Networking Algorithms CS and EE Dept. Lulea University of Technology 27 Jan Mohammad Reza Akhavan.
CMPS 2433 Discrete Structures Chapter 5 - Trees R. HALVERSON – MIDWESTERN STATE UNIVERSITY.
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.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
What is the next line of the proof? a). Let G be a graph with k vertices. b). Assume the theorem holds for all graphs with k+1 vertices. c). Let G be a.
Introduction to Graphs Lecture 18: Nov 16. Seven Bridges of Königsberg Is it possible to walk with a route that crosses each bridge exactly once?
Graphs and Trees This handout: Trees Minimum Spanning Tree Problem.
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
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,
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 11 Instructor: Paul Beame.
Chapter 4 Graphs.
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 10, Monday, September 22.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Minimum Spanning Trees. Subgraph A graph G is a subgraph of graph H if –The vertices of G are a subset of the vertices of H, and –The edges of G are a.
Introduction to Graph Theory
Subdivision of Edge In a graph G, subdivision of an edge uv is the operation of replacing uv with a path u,w,v through a new vertex w.
5.4 Shortest-path problem  Let G=(V,E,w) be a weighted connected simple graph, w is a function from edges set E to position real numbers set. We denoted.
Trees and Distance. 2.1 Basic properties Acyclic : a graph with no cycle Forest : acyclic graph Tree : connected acyclic graph Leaf : a vertex of degree.
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.
5.2 Trees  A tree is a connected graph without any cycles.
V Spanning Trees Spanning Trees v Minimum Spanning Trees Minimum Spanning Trees v Kruskal’s Algorithm v Example Example v Planar Graphs Planar Graphs v.
Introduction to Graph Theory
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
5.5.2 M inimum spanning trees  Definition 24: A minimum spanning tree in a connected weighted graph is a spanning tree that has the smallest possible.
Connectivity and Paths 報告人:林清池. Connectivity A separating set of a graph G is a set such that G-S has more than one component. The connectivity of G,
Unit – V Graph theory. Representation of Graphs Graph G (V, E,  ) V Set of vertices ESet of edges  Function that assigns vertices {v, w} to each edge.
Introduction to Graphs. This Lecture In this part we will study some basic graph theory. Graph is a useful concept to model many problems in computer.
Graphs. Graphs Similar to the graphs you’ve known since the 5 th grade: line graphs, bar graphs, etc., but more general. Those mathematical graphs are.
1 Spanning Trees Longin Jan Latecki Temple University based on slides by David Matuszek, UPenn, Rose Hoberman, CMU, Bing Liu, U. of Illinois, Boting Yang,
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
 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.
Introduction to Graph Theory
MA/CSSE 473 Day 34 MST details: Kruskal's Algorithm Prim's Algorithm.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Trees Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering, IIT
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.
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Paths and circuits.
CSC 213 – Large Scale Programming Lecture 31: Graph Traversals.
Trees.
Graph theory Definitions Trees, cycles, directed graphs.
Spanning Trees Discrete Mathematics.
Autumn 2016 Lecture 11 Minimum Spanning Trees (Part II)
Planarity Testing.
Connected Components Minimum Spanning Tree
Autumn 2015 Lecture 11 Minimum Spanning Trees (Part II)
Trees.
CS 583 Analysis of Algorithms
Connectivity Section 10.4.
Spanning Trees Longin Jan Latecki Temple University based on slides by
Theorem 5.13: For vT‘, l’(v)= min{l(v), l(vk)+w(vk, v)}
MAT 2720 Discrete Mathematics
Lecture 14 Shortest Path (cont’d) Minimum Spanning Tree
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Mathematics for Computer Science MIT 6.042J/18.062J
Proof Techniques.
Lecture 13 Shortest Path (cont’d) Minimum Spanning Tree
Chapter 14 Graphs © 2011 Pearson Addison-Wesley. All rights reserved.
Presentation transcript:

Simple Graphs: Connectedness, Trees

The shortest path between two vertices is simple! Paths & Simple Paths Lemma: The shortest path between two vertices is simple! Proof: Suppose path from u to v crossed itself: u v c

The shortest path between two vertices is simple! Paths & Simple Paths Lemma: The shortest path between two vertices is simple! Then path without c ···c is shorter: c u v

A connected graph: there is a path between every two vertices. Connected Graphs A connected graph: there is a path between every two vertices.

pieces (subgraphs) called Connected Components Every graph consists of separate connected pieces (subgraphs) called connected components

The more connected components, the more “broken up" the graph is. 4 Infinite corridor 13 10 12 26 8 16 66 E25 Med Center E17 East Campus 3 connected components The more connected components, the more “broken up" the graph is.

The connected component of vertex v : Connected Components The connected component of vertex v :

So a graph is connected iff it has only 1 connected component Connected Components So a graph is connected iff it has only 1 connected component

Cycles A cycle is a path that begins and ends with same vertex a v w b path: v ···b ···w ···w ···a ···v also: a ···v ···b ···w ···w ···a

Cycles A cycle is a path that begins and ends with same vertex a v w b also: a ···w ···w ···b ···v ···a

Simple Cycles A simple cycle is a cycle that doesn’t cross itself v w path: v ···w ···v also: w ···v ···w

A tree is a connected graph with no cycles. Trees A tree is a connected graph with no cycles.

More Trees

Other Tree Definitions A tree is a graph with a unique path between any 2 vertices. A tree is a connected graph with n vertices and n – 1 edges. A tree is an edge-minimal connected graph.

Be careful with these definitions Is a tree is a graph with n vertices and n – 1 edges? NO:

Some trees with five vertices

Some trees with five vertices Exercise: Prove that all trees with five vertices are isomorphic to one of these three.

A spanning tree: a subgraph that is a tree on all the vertices. Spanning Trees A spanning tree: a subgraph that is a tree on all the vertices.

Spanning Trees

Spanning Trees a spanning tree

Spanning Trees another spanning tree (can have many)

A spanning tree: a subgraph that is a tree on all the vertices. Spanning Trees A spanning tree: a subgraph that is a tree on all the vertices. Always exists: find minimum edge-size, connected subgraph on all the vertices.

removing it from the graph disconnects two vertices. CONNECTEDNESS An edge is a cut edge if removing it from the graph disconnects two vertices.

Cut Edges

Cut Edges B B is a cut edge

Cut Edges deleting B gives two components

Cut Edges A A is not a cut edge

edge iff it is not traversed by a simple cycle. Proof: Team problem. Cut Edges and Cycles Lemma: An edge is a cut edge iff it is not traversed by a simple cycle. Proof: Team problem.

Fault-tolerant design: In a tree, every edge is a cut edge (bad) Cut Edges Fault-tolerant design: In a tree, every edge is a cut edge (bad) In a mesh, no edge is a cut edge (good) Tradeoff edges for failure tolerance

Def: k-connected iff remains connected when any k-1 edges are deleted. k-Connectedness Def: k-connected iff remains connected when any k-1 edges are deleted.

k-Connectedness Example: is (n-1)-connected

Team Problems Problems 13