0% found this document useful (0 votes)
41 views17 pages

mth310 20200127 Lec08 Mon 23882

The document discusses trees and graphs. It defines key terms related to trees like leaf, forest, spanning subgraph, and spanning tree. It proves several properties of trees, including that every tree with at least two vertices has at least two leaves, and deleting a leaf from a tree produces a tree with one fewer vertex. It also characterizes trees as connected acyclic graphs with n-1 edges or as graphs where every pair of vertices has a unique path between them.

Uploaded by

Pragya Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views17 pages

mth310 20200127 Lec08 Mon 23882

The document discusses trees and graphs. It defines key terms related to trees like leaf, forest, spanning subgraph, and spanning tree. It proves several properties of trees, including that every tree with at least two vertices has at least two leaves, and deleting a leaf from a tree produces a tree with one fewer vertex. It also characterizes trees as connected acyclic graphs with n-1 edges or as graphs where every pair of vertices has a unique path between them.

Uploaded by

Pragya Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Tree : Basics

• A graph with no cycle is acyclic


• A forest is an acyclic graph
• A tree is a connected acyclic graph
• A leaf is a vertex of degree 1

leaf

tree tree

forest
Graph Theory 1
Spanning Subgraph
• A spanning subgraph of G is a subgraph with vertex
set V(G)
• What is an induced spanning subgraph?
• A spanning tree is a spanning subgraph that is a tree

Spanning subgraph Spanning tree

Graph Theory 2
Lemma 20.1: Every tree with at least two vertices has
at least two leaves.
Proof:
• A connected graph with at least two vertices has an edge.
• In an acyclic graph, an endpoint of a maximal nontrivial path
has no neighbor other than its neighbor on the path.
• Hence the endpoints of such a path are leaves.

Impossible!
Cycle occurs

Maximal path Impossible!


It is
Maximal.
Graph Theory 3
Lemma 20.2: Deleting a leaf from a n-vertex tree produces a
tree with n1 vertices.

Proof:
Let v be a leaf of a tree G, and let G’=Gv.
• A vertex of degree 1 belongs to no path connecting two
other vertices.
• Therefore, for u, w  V(G’), every u, w-path in G is also
in G’.
• Hence G’ is connected.
• Since deleting a vertex cannot create a cycle, G’ also is
acyclic.
• Thus G’ is a tree with n1 vertices.

Graph Theory 4
G

G’

v
u w

For u, w  V(G’ ), every u, w-path in


G is also in G’.

Graph Theory 5
Characterization of Trees

Proposition 20. For an n-vertex simple graph G (with n1), the


following are equivalent (and characterize the trees with n
vertices)
A) G is connected and has no cycles
B) G is connected and has n1 edges
C) G has n1 edges and no cycles
D) For u, vV(G), G has exactly one u, v-path

Graph Theory 6
Some corollaries
• Every edge e of a tree T is a cut-edge (*)
• Adding one edge to a tree forms exactly one cycle
• Every connected graph contains a spanning tree
• Left as an exercise (good practice for trees) !
• Remark (*): If G is a connected (simple) graph, and
e is a cut-edge, then Ge has precisely two
components (proof left as an exercise)

Graph Theory 7
Proposition 21: If T, T’ are spanning trees of a connected
graph G and eE(T)E(T’), then there is an edge
e’E(T’)E(T) such that Te+e’ is a spanning tree of G.

e’
e

G T T’ T-e+e’

Graph Theory 8
Proposition 21: If T, T’ are spanning trees of a connected
graph G and eE(T)E(T’), then there is an edge
e’E(T’)E(T) such that Te+e’ is a spanning tree of G.
Proof:
• Every edge of T is a cut-edge of T. Let U and U’ be the two components
of Te.
• Since T’ is connected, T’ has an edge e’ with endpoints in U and U’.
• Now Te+e’ is connected, has n(G)1 edges, and is a spanning tree of
G.

e’
T e
T’ Te+e’

Graph Theory 9
Distance in Trees and Graphs
• Assume G has a u, v-path
• Then the distance from u to v, written dG(u,v) or d(u,v),
is the least length of a u,v-path.
• If G has no such path, then d(u,v)= 

Graph Theory 10
Distance in Trees and Graphs
• The diameter (diam G) is maxu,vV(G) d(u,v)
• Upper bound of distance between every pair
• The eccentricity of a vertex u is
(u) = maxvV(G) d(u,v)
• Upper bound of the distance from u to the others
• The radius of a graph G is rad G = minuV(G) (u)
• Lower bound of the eccentricity

Graph Theory 11
Distance, Diameter, Eccentricity, and Radius

a b

e c
g d
Distance(f,c) : 2 Diameter: 3 Eccentricity(f): 2 Radius: 2
Distance(g,c): 2 Eccentricity(a): 3
Distance(a,c): 3

Graph Theory 12
Remaining slides contain an alternate proof of
Proposition 20:
For an n-vertex graph G (with n1), the following are
equivalent (and characterize the trees with n vertices)
A) G is connected and has no cycles
B) G is connected and has n1 edges
C) G has n1 edges and no cycles
D) For u, vV(G), G has exactly one u, v-path

Proof: We first demonstrate the equivalence of A, B,


and C by proving that any two of {connected,
acyclic, n1 edges} together imply the third

Graph Theory 13
A{B,C}. connected, acyclic  n1 edges

• We use induction on n.
• For n=1, an acyclic 1-vertex graph has no edge
• For n >1, we suppose that implication holds for
graphs with fewer than n vertices
• Given an acyclic connected graph G, we have a leaf v
• G’=Gv also is acyclic and connected
• Applying the induction hypothesis to G’ yields
e(G’)=n2
• Since only one edge is incident to v, we have
e(G)=n1

Graph Theory 14
B{A, C} Connected and n1 edges  acyclic

• If G is not acyclic, delete edges from cycles of G


one by one until the resulting graph G’ is acyclic
• Since no edge of a cycle is a cut-edge, G’ is
connected
• Now the preceding paragraph implies that
e(G’) = n1
• Since we are given e(G)=n1, no edges were deleted
• Thus G’=G, and G is acyclic

Graph Theory 15
C{A, B} n1 edges and no cycles  connected

• Let G1,…,Gk be the components of G


• Since every vertex appears in one component,
in(Gi)=n
• Since G has no cycles, each component satisfies
property A. Thus e(Gi) = n(Gi)  1
• Summing over i yields e(G)=I[n(Gi)1]= n  k
• We are given e(G)=n  1,so k =1, and G is
connected

Graph Theory 16
DA For u, vV(G), one and only one u, v-path exists
 connected and no cycles

• If there is a u,v-path for every u,vV(G), then G is


connected
• If G has a cycle C, then G has two u,v-paths for u,v
V(G); which contradicts the hypothesis D
• Hence G is acyclic (this also forbids loops).

Graph Theory 17

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy