SlideShare a Scribd company logo
1 of 7
Download to read offline
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 1
'
&
$
%
Trees
acyclic graph A graph with no cycle.
forest An acyclic graph.
tree A connected acyclic graph.
leaf A vertex of degree 1.
spanning subgraph A subgraph of G with vertex set V (G).
spanning tree A spanning subgraph that is a tree.
Example. See the graph in [Wes, Definition 2.1.1].
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 2
'
&
$
%
Properties of Trees (1)
Lemma 2.1.3. Every tree with at least two vertices has at least two
leaves.
Proof: A connected graph with at least two vertices has an edge.
Consider any maximal path in the tree. Since the tree is acyclic, the
endpoints of the path must be vertices of degree 1, that is, leaves. 2
Deleting a leaf from an n-vertex tree obviously produces a tree with
n − 1 vertices.
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 3
'
&
$
%
Properties of Trees (2)
Trees have many characterizations.
Theorem 2.1.4. For an n-vertex graph (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), there is exactly one path from u to v.
We shall now prove some parts of this theorem; see
[Wes, Theorem 2.1.4.] for the rest of the cases.
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 4
'
&
$
%
Properties of Trees (3)
Proof: A ⇒ {B,C}. Use induction on n. The basis step, n = 1, is
trivial. For n > 1, given an acyclic connected graph G, Lemma 2.1.3
provides a leaf v and states that G′
= G − v 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.
D ⇒ A. If there is a path from u to v for all u, v ∈ V (G), then G is
connected. If G has a cycle C, then G has (at least) two paths from
u to v for u, v ∈ V (C); hence G is acyclic. 2
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 5
'
&
$
%
Properties of Trees (4)
Corollary 2.1.5. a) Every edge of a tree is a cut-edge.
b) Adding one edge to a tree forms exactly one cycle.
c) Every connected graph contains a spanning tree.
Proof: a) Deleting an edge leaves n − 2 edges, so we cannot have a
tree (Theorem 2.1.4B), and since there are no cycles, the new graph
must be disconnected (Theorem 2.1.4A).
b) A tree has a unique path linking each pair of vertices
(Theorem 2.1.4D), so joining two vertices by an edge creates exactly
one cycle.
c) Delete edges from cycles in a connected graph until there are n − 1
edges left. 2
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 6
'
&
$
%
Properties of Trees (5)
Theorem 2.1.8. If T is a tree with k edges and G is a simple graph
with δ(G) ≥ k, then T is a subgraph of G.
Proof: Use induction on k. Basis step: k = 0. Obvious.
Induction step: k > 0. Assume that the claim holds for trees with
fewer than k edges. Since k > 0, there is a leaf v in T by Lemma
2.1.3; let u be its neighbor. Consider the smaller tree T′
= T − v. By
the induction hypothesis, G contains T′
as a subgraph, since
δ(G) ≥ k > k − 1. Let x be the vertex of G corresponding to u.
Because T′
has k − 1 vertices other than u and dG(x) ≥ k, x has a
neighbor y in G that is not in this copy of T′
. The edge xy expands
T′
into T, with y playing the role of v. 2
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 7
'
&
$
%
Properties of Trees (6)
The inequality of Theorem 2.1.8 is sharp: the graph Kk has
minimum degree k − 1, but it contains no tree with k edges.
Theorem 2.1.8 implies that every n-vertex simple graph with more
than n(k − 1) edges has T as a subgraph [Wes, Exercise 2.1.34].
Erdős and Sós conjectured the stronger statement that
e(G) > n(k − 1)/2 forces T as a subgraph (which has been proved for
graphs without 4-cycles).
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 8
'
&
$
%
Distance
If G has a path from u to v, then the distance from u to v, written
dG(u, v) or d(u, v), is the least length of such a path. If no path
exists, d(u, v) = ∞.
diameter diam G := maxu,v∈V (G) d(u, v).
eccentricity The eccentricity of a vertex u is
ǫ(u) := maxv∈V (G) d(u, v).
radius rad G := minu∈V (G) ǫ(u).
The diameter can also be viewed as the maximum of the vertex
eccentricities.
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 9
'
&
$
%
Example: Distance
In the first three examples, every vertex has the same eccentricity,
and diam G = rad G.
 The Petersen graph has diameter 2, since nonadjacent
verteces have a common neighbor.
 The hypercube Qn has diameter n, since it takes n steps to
change all n coordinates.
 The cycle Cn has diameter ⌊n/2⌋.
 For n ≥ 3, the n-vertex tree of least diameter is the star
K1,n−1, with diameter 2 and radius 1. The one with the
largest diameter is the path Pn, with diameter n − 1 and
radius ⌈(n − 1)/2⌉. In general, the diameter of a tree is the
length of its longest path.
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 10
'

$
%
Diameter of Complement
Theorem 2.1.11. If G is a simple graph, then
diam G ≥ 3 ⇒ diam G ≤ 3.
Proof: Since diam G ≥ 3, there exist nonadjacent u, v ∈ V (G) with
no common neighbor. Hence every x ∈ V (G) − {u, v} has at least one
of u and v as a nonneighbor, and therefore as a neighbor in G. Since
uv ∈ V (G), for every x, y there is a path in G from x to y with length
at most 1 + 1 + 1 = 3. 2.
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 11
'

$
%
Center
The center of a graph is the subgraph induced by the vertices of
minimum eccentricity. The center of a graph is the full graph iff the
radius and diameter are equal.
Theorem 2.1.13. The center of a tree is a vertex or an edge.
In a communication network, large diameter may be acceptable if
most pairs can communicate via short parths. This leads to the
study of average distance instead of maximum distance.
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 12
'

$
%
Wiener Index
Since the average distance is the sum of distances divided by n
2

, we
may simply study the Wiener index
D(G) :=
X
u,v∈V (G)
dG(u, v).
Theorem 2.1.13. Among trees with n vertices, the Wiener index
D(T) is minimized by stars and maximized by paths, both uniquely.
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 13
'

$
%
Enumerating trees
There are 2(n
2) graphs with n vertices. Out of these, nn−2
are trees
(Cayley’s formula). This result can also be interpreted as the number
of spanning trees in a complete graph of order n.
A contraction of edge e = uv is the replacement of u and v with a
single vertex whose incident edges are the edges that were incident to
u or v, except for e. The resulting graph is denoted by G · e. Let
τ(G) denote the number of spanning trees of G.
Theorem 2.2.8. If e ∈ E(G) is not a loop, then
τ(G) = τ(G − e) + τ(G · e).
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 14
'

$
%
Matching
We briefly introduce the concept of matching, which will be
considered more thoroughly in the algorithm part.
matching A set of non-loop edges with no shared endpoints.
The endpoints (vertices) of the edges of a matching are said
to be saturated; the other vertices are unsaturated.
perfect matching A matching saturating every vertex.
Example. Yet another example of the difference between maximum
objects and maximal objects are given in [Wes, Example 3.1.5] for
matchings.
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 15
'

$
%
Vertex Cover
A vertex cover of a graph G is a set Q ⊆ V (G) that contains at
least one endpoint of every edge. We say that the vertices in Q cover
E(G). (We want to minimize the size of vertex covers.)
Since no vertex can cover two edges of a matching, the size of every
vertex cover is at least the size of every matching. Therefore,
obtaining a matching and vertex cover of the same size proves that
each is optimal.
Example. See [Wes, Example 3.1.15].
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 16
'

$
%
Independence Number
The independence number of a graph is the maximum size of an
independent set of vertices.
The independence number of a bipartite graph may exceed the sizes
of the partite sets. An example where this happens is given in
[Wes, Example 3.1.18].
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 17
'

$
%
Edge Cover
An edge cover of a graph G is a set L ⊆ E(G) such that every
vertex of G is incident to some edge of L. We say that the edges in Q
cover V (G). (We want to minimize the size of edge covers.)
 Only graphs without isolated vertices have edge covers.
 There are at least n(G)/2 edges in an edge cover; a perfect
matching forms an edge cover attaining this bound.
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 18
'

$
%
Notations
maximum size of independent set α(G)
maximum size of matching α′
(G)
minimum size of vertex cover β(G)
minimum size of edge cover β′
(G)
Example. For the 5-cycle, we have α(C5) = 2, α′
(C5) = 2,
β(C5) = 3, and β′
(C5) = 3.
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 19
'

$
%
Graph Parameters (1)
Theorem 3.1.21. In a graph G, S ⊆ V (G) is an independent set iff
V (G) − S is a vertex cover.
Proof: If S is an independent set, then every edge is incident to at
least one vertex of V (G) − S. Conversely, if V (G) − S covers all the
edges, then no edge can have both endpoints in S, so S is indeed an
independent set. 2
Corollary. α(G) + β(G) = n.
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 20
'

$
%
Graph Parameters (2)
Theorem 3.1.16. If G is a bipartite graph, then α′
(G) = β(G).
Proof: [R. Rizzi, J. Graph Theory 33 (2000), 138–139] Assume that
counterexamples to the theorem exist, and pick a minimal (with
respect to deleting vertices and edges) such graph G. Obviously, G is
connected and is neither an even cycle nor a path, so G has a vertex
u of degree at least 3. Let v be a vertex adjacent to u. Assume that
α′
(G − v)  α′
(G). Then, by minimality, G − v has a vertex cover W
with |W| = α′
(G − v) ≤ β(G) − 2. Since W ∪ {v} is a vertex cover of
G, we get β(G) ≤ α′
(G − v) + 1, a contradiction.
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 21
'

$
%
Graph Parameters (3)
Proof: (cont.) If α′
(G − v) = α′
(G), then there exists a maximum
matching M of G that does not saturate v. Let f be an edge of
G − M such that u and f are incident (such an edge exists because u
has degree at least 3). By minimality, α′
(G − f) = β(G − f); such a
minimum vertex cover, W′
, covers all edges of a maximal matching of
the same size. Since it also covers uv, and no edge of M has v as an
endpoint, it follows that W′
contains u. Therefore, W′
covers G and
β(G − f) = β(G) = α′
(G), a contradiction. 2
This result is called König’s matching theorem or the König-Egerváry
theorem.
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 22
'

$
%
Graph Parameters (3)
Theorem 3.1.22. If G is a graph without isolated vertices, then
α′
(G) + β′
(G) = n(G).
Proof: 1) From a maximum matching M, we construct an edge
cover of size n(G) − |M|: Add to M one edge incident to each
unsaturated vertex. Since each edge in M takes care of two vertices,
the size of the edge cover is indeed n(G) − |M|.
2) From a minimum edge cover L, we construct a matching of size
n(G) − |L|: If both endpoints of an edge e belong to edges in L other
than e, then e 6∈ L (since L is a minimum cover). It follows that each
component formed by edges of L is a star. Let k be the number of
such components. Obviously, |L| = n(G) − k, and a matching of size
k is obtained by choosing one edge from each component. 2
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 23
'

$
%
Graph Parameters (4)
Corollary 3.1.24. If G is a bipartite graph with no isolated vertices,
then α(G) = β′
(G).
Proof: By the Corollary of Theorem 3.1.21 and by Theorem 3.1.22,
we get α(G) + β(G) = α′
(G) + β′
(G). Applying Theorem 3.1.16
(α′
(G) = β(G)) completes the proof. 2
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 24
'

$
%
Dominating Sets (1)
In vertex covers and edge covers, vertices cover edges and vice versa.
One may also consider the case where vertices cover adjacent vertices.
In a graph G, a set S ⊆ V (G) is a dominating set if every vertex
not in S has a neighbor in S. The domination number γ(G) is the
minimum size of a dominating set in G.
Example. See [Wes, Example 3.1.27].
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 25
'

$
%
Dominating Sets (2)
A dominating set S in G is called connected if S induces a connected
subgraph, and independent if S is an independent set in G.
Example 1. A connected dominating set can be used as a virtual
backbone for routing in wireless ad hoc networks.
Example 2. A dominating set in an n-cube can be used as a
gambling system for the football pools.
c Patric Östergård
S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 26
'

$
%
Factors
factor A spanning subgraph (called a k-factor if the subgraph is
k-regular).
factorization A decomposition of a graph into factors (called a
k-factorization if the factors are k-factors).
Note: A 1-factor and a perfect matching is almost the same thing,
the only difference being that a 1-factor is a subgraph whereas a
perfect matching is the set of edges in such a subgraph.
c Patric Östergård

More Related Content

Similar to Trees amd properties slide for presentaton

Non Split Edge Domination in Fuzzy Graphs
Non Split Edge Domination in Fuzzy GraphsNon Split Edge Domination in Fuzzy Graphs
Non Split Edge Domination in Fuzzy Graphspaperpublications3
 
Treewidth and Applications
Treewidth and ApplicationsTreewidth and Applications
Treewidth and ApplicationsASPAK2014
 
Graph terminology and algorithm and tree.pptx
Graph terminology and algorithm and tree.pptxGraph terminology and algorithm and tree.pptx
Graph terminology and algorithm and tree.pptxasimshahzad8611
 
Restrained lict domination in graphs
Restrained lict domination in graphsRestrained lict domination in graphs
Restrained lict domination in graphseSAT Publishing House
 
Ce31342345
Ce31342345Ce31342345
Ce31342345IJMER
 
minimum spanning trees Algorithm
minimum spanning trees Algorithm minimum spanning trees Algorithm
minimum spanning trees Algorithm sachin varun
 
Unit26 shortest pathalgorithm
Unit26 shortest pathalgorithmUnit26 shortest pathalgorithm
Unit26 shortest pathalgorithmmeisamstar
 
Connected roman domination in graphs
Connected roman domination in graphsConnected roman domination in graphs
Connected roman domination in graphseSAT Publishing House
 
Hamilton Path & Dijkstra's Algorithm
Hamilton Path & Dijkstra's AlgorithmHamilton Path & Dijkstra's Algorithm
Hamilton Path & Dijkstra's AlgorithmMahesh Singh Madai
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...ijceronline
 

Similar to Trees amd properties slide for presentaton (20)

Non Split Edge Domination in Fuzzy Graphs
Non Split Edge Domination in Fuzzy GraphsNon Split Edge Domination in Fuzzy Graphs
Non Split Edge Domination in Fuzzy Graphs
 
Treewidth and Applications
Treewidth and ApplicationsTreewidth and Applications
Treewidth and Applications
 
Graph theory presentation
Graph theory presentationGraph theory presentation
Graph theory presentation
 
Rv2
Rv2Rv2
Rv2
 
1452 86301000013 m
1452 86301000013 m1452 86301000013 m
1452 86301000013 m
 
Graph terminology and algorithm and tree.pptx
Graph terminology and algorithm and tree.pptxGraph terminology and algorithm and tree.pptx
Graph terminology and algorithm and tree.pptx
 
X4102188192
X4102188192X4102188192
X4102188192
 
Restrained lict domination in graphs
Restrained lict domination in graphsRestrained lict domination in graphs
Restrained lict domination in graphs
 
DIGITAL TEXT BOOK
DIGITAL TEXT BOOKDIGITAL TEXT BOOK
DIGITAL TEXT BOOK
 
Ce31342345
Ce31342345Ce31342345
Ce31342345
 
minimum spanning trees Algorithm
minimum spanning trees Algorithm minimum spanning trees Algorithm
minimum spanning trees Algorithm
 
Am03102420247
Am03102420247Am03102420247
Am03102420247
 
Unit26 shortest pathalgorithm
Unit26 shortest pathalgorithmUnit26 shortest pathalgorithm
Unit26 shortest pathalgorithm
 
R04602118121
R04602118121R04602118121
R04602118121
 
Connected roman domination in graphs
Connected roman domination in graphsConnected roman domination in graphs
Connected roman domination in graphs
 
Hamilton Path & Dijkstra's Algorithm
Hamilton Path & Dijkstra's AlgorithmHamilton Path & Dijkstra's Algorithm
Hamilton Path & Dijkstra's Algorithm
 
Siegel
SiegelSiegel
Siegel
 
Aj26225229
Aj26225229Aj26225229
Aj26225229
 
graph theory
graph theorygraph theory
graph theory
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 

Recently uploaded (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 

Trees amd properties slide for presentaton

  • 1. S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 1 ' & $ % Trees acyclic graph A graph with no cycle. forest An acyclic graph. tree A connected acyclic graph. leaf A vertex of degree 1. spanning subgraph A subgraph of G with vertex set V (G). spanning tree A spanning subgraph that is a tree. Example. See the graph in [Wes, Definition 2.1.1]. c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 2 ' & $ % Properties of Trees (1) Lemma 2.1.3. Every tree with at least two vertices has at least two leaves. Proof: A connected graph with at least two vertices has an edge. Consider any maximal path in the tree. Since the tree is acyclic, the endpoints of the path must be vertices of degree 1, that is, leaves. 2 Deleting a leaf from an n-vertex tree obviously produces a tree with n − 1 vertices. c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 3 ' & $ % Properties of Trees (2) Trees have many characterizations. Theorem 2.1.4. For an n-vertex graph (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), there is exactly one path from u to v. We shall now prove some parts of this theorem; see [Wes, Theorem 2.1.4.] for the rest of the cases. c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 4 ' & $ % Properties of Trees (3) Proof: A ⇒ {B,C}. Use induction on n. The basis step, n = 1, is trivial. For n > 1, given an acyclic connected graph G, Lemma 2.1.3 provides a leaf v and states that G′ = G − v 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. D ⇒ A. If there is a path from u to v for all u, v ∈ V (G), then G is connected. If G has a cycle C, then G has (at least) two paths from u to v for u, v ∈ V (C); hence G is acyclic. 2 c Patric Östergård
  • 2. S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 5 ' & $ % Properties of Trees (4) Corollary 2.1.5. a) Every edge of a tree is a cut-edge. b) Adding one edge to a tree forms exactly one cycle. c) Every connected graph contains a spanning tree. Proof: a) Deleting an edge leaves n − 2 edges, so we cannot have a tree (Theorem 2.1.4B), and since there are no cycles, the new graph must be disconnected (Theorem 2.1.4A). b) A tree has a unique path linking each pair of vertices (Theorem 2.1.4D), so joining two vertices by an edge creates exactly one cycle. c) Delete edges from cycles in a connected graph until there are n − 1 edges left. 2 c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 6 ' & $ % Properties of Trees (5) Theorem 2.1.8. If T is a tree with k edges and G is a simple graph with δ(G) ≥ k, then T is a subgraph of G. Proof: Use induction on k. Basis step: k = 0. Obvious. Induction step: k > 0. Assume that the claim holds for trees with fewer than k edges. Since k > 0, there is a leaf v in T by Lemma 2.1.3; let u be its neighbor. Consider the smaller tree T′ = T − v. By the induction hypothesis, G contains T′ as a subgraph, since δ(G) ≥ k > k − 1. Let x be the vertex of G corresponding to u. Because T′ has k − 1 vertices other than u and dG(x) ≥ k, x has a neighbor y in G that is not in this copy of T′ . The edge xy expands T′ into T, with y playing the role of v. 2 c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 7 ' & $ % Properties of Trees (6) The inequality of Theorem 2.1.8 is sharp: the graph Kk has minimum degree k − 1, but it contains no tree with k edges. Theorem 2.1.8 implies that every n-vertex simple graph with more than n(k − 1) edges has T as a subgraph [Wes, Exercise 2.1.34]. Erdős and Sós conjectured the stronger statement that e(G) > n(k − 1)/2 forces T as a subgraph (which has been proved for graphs without 4-cycles). c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 8 ' & $ % Distance If G has a path from u to v, then the distance from u to v, written dG(u, v) or d(u, v), is the least length of such a path. If no path exists, d(u, v) = ∞. diameter diam G := maxu,v∈V (G) d(u, v). eccentricity The eccentricity of a vertex u is ǫ(u) := maxv∈V (G) d(u, v). radius rad G := minu∈V (G) ǫ(u). The diameter can also be viewed as the maximum of the vertex eccentricities. c Patric Östergård
  • 3. S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 9 ' & $ % Example: Distance In the first three examples, every vertex has the same eccentricity, and diam G = rad G. The Petersen graph has diameter 2, since nonadjacent verteces have a common neighbor. The hypercube Qn has diameter n, since it takes n steps to change all n coordinates. The cycle Cn has diameter ⌊n/2⌋. For n ≥ 3, the n-vertex tree of least diameter is the star K1,n−1, with diameter 2 and radius 1. The one with the largest diameter is the path Pn, with diameter n − 1 and radius ⌈(n − 1)/2⌉. In general, the diameter of a tree is the length of its longest path. c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 10 ' $ % Diameter of Complement Theorem 2.1.11. If G is a simple graph, then diam G ≥ 3 ⇒ diam G ≤ 3. Proof: Since diam G ≥ 3, there exist nonadjacent u, v ∈ V (G) with no common neighbor. Hence every x ∈ V (G) − {u, v} has at least one of u and v as a nonneighbor, and therefore as a neighbor in G. Since uv ∈ V (G), for every x, y there is a path in G from x to y with length at most 1 + 1 + 1 = 3. 2. c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 11 ' $ % Center The center of a graph is the subgraph induced by the vertices of minimum eccentricity. The center of a graph is the full graph iff the radius and diameter are equal. Theorem 2.1.13. The center of a tree is a vertex or an edge. In a communication network, large diameter may be acceptable if most pairs can communicate via short parths. This leads to the study of average distance instead of maximum distance. c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 12 ' $ % Wiener Index Since the average distance is the sum of distances divided by n 2 , we may simply study the Wiener index D(G) := X u,v∈V (G) dG(u, v). Theorem 2.1.13. Among trees with n vertices, the Wiener index D(T) is minimized by stars and maximized by paths, both uniquely. c Patric Östergård
  • 4. S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 13 ' $ % Enumerating trees There are 2(n 2) graphs with n vertices. Out of these, nn−2 are trees (Cayley’s formula). This result can also be interpreted as the number of spanning trees in a complete graph of order n. A contraction of edge e = uv is the replacement of u and v with a single vertex whose incident edges are the edges that were incident to u or v, except for e. The resulting graph is denoted by G · e. Let τ(G) denote the number of spanning trees of G. Theorem 2.2.8. If e ∈ E(G) is not a loop, then τ(G) = τ(G − e) + τ(G · e). c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 14 ' $ % Matching We briefly introduce the concept of matching, which will be considered more thoroughly in the algorithm part. matching A set of non-loop edges with no shared endpoints. The endpoints (vertices) of the edges of a matching are said to be saturated; the other vertices are unsaturated. perfect matching A matching saturating every vertex. Example. Yet another example of the difference between maximum objects and maximal objects are given in [Wes, Example 3.1.5] for matchings. c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 15 ' $ % Vertex Cover A vertex cover of a graph G is a set Q ⊆ V (G) that contains at least one endpoint of every edge. We say that the vertices in Q cover E(G). (We want to minimize the size of vertex covers.) Since no vertex can cover two edges of a matching, the size of every vertex cover is at least the size of every matching. Therefore, obtaining a matching and vertex cover of the same size proves that each is optimal. Example. See [Wes, Example 3.1.15]. c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 16 ' $ % Independence Number The independence number of a graph is the maximum size of an independent set of vertices. The independence number of a bipartite graph may exceed the sizes of the partite sets. An example where this happens is given in [Wes, Example 3.1.18]. c Patric Östergård
  • 5. S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 17 ' $ % Edge Cover An edge cover of a graph G is a set L ⊆ E(G) such that every vertex of G is incident to some edge of L. We say that the edges in Q cover V (G). (We want to minimize the size of edge covers.) Only graphs without isolated vertices have edge covers. There are at least n(G)/2 edges in an edge cover; a perfect matching forms an edge cover attaining this bound. c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 18 ' $ % Notations maximum size of independent set α(G) maximum size of matching α′ (G) minimum size of vertex cover β(G) minimum size of edge cover β′ (G) Example. For the 5-cycle, we have α(C5) = 2, α′ (C5) = 2, β(C5) = 3, and β′ (C5) = 3. c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 19 ' $ % Graph Parameters (1) Theorem 3.1.21. In a graph G, S ⊆ V (G) is an independent set iff V (G) − S is a vertex cover. Proof: If S is an independent set, then every edge is incident to at least one vertex of V (G) − S. Conversely, if V (G) − S covers all the edges, then no edge can have both endpoints in S, so S is indeed an independent set. 2 Corollary. α(G) + β(G) = n. c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 20 ' $ % Graph Parameters (2) Theorem 3.1.16. If G is a bipartite graph, then α′ (G) = β(G). Proof: [R. Rizzi, J. Graph Theory 33 (2000), 138–139] Assume that counterexamples to the theorem exist, and pick a minimal (with respect to deleting vertices and edges) such graph G. Obviously, G is connected and is neither an even cycle nor a path, so G has a vertex u of degree at least 3. Let v be a vertex adjacent to u. Assume that α′ (G − v) α′ (G). Then, by minimality, G − v has a vertex cover W with |W| = α′ (G − v) ≤ β(G) − 2. Since W ∪ {v} is a vertex cover of G, we get β(G) ≤ α′ (G − v) + 1, a contradiction. c Patric Östergård
  • 6. S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 21 ' $ % Graph Parameters (3) Proof: (cont.) If α′ (G − v) = α′ (G), then there exists a maximum matching M of G that does not saturate v. Let f be an edge of G − M such that u and f are incident (such an edge exists because u has degree at least 3). By minimality, α′ (G − f) = β(G − f); such a minimum vertex cover, W′ , covers all edges of a maximal matching of the same size. Since it also covers uv, and no edge of M has v as an endpoint, it follows that W′ contains u. Therefore, W′ covers G and β(G − f) = β(G) = α′ (G), a contradiction. 2 This result is called König’s matching theorem or the König-Egerváry theorem. c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 22 ' $ % Graph Parameters (3) Theorem 3.1.22. If G is a graph without isolated vertices, then α′ (G) + β′ (G) = n(G). Proof: 1) From a maximum matching M, we construct an edge cover of size n(G) − |M|: Add to M one edge incident to each unsaturated vertex. Since each edge in M takes care of two vertices, the size of the edge cover is indeed n(G) − |M|. 2) From a minimum edge cover L, we construct a matching of size n(G) − |L|: If both endpoints of an edge e belong to edges in L other than e, then e 6∈ L (since L is a minimum cover). It follows that each component formed by edges of L is a star. Let k be the number of such components. Obviously, |L| = n(G) − k, and a matching of size k is obtained by choosing one edge from each component. 2 c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 23 ' $ % Graph Parameters (4) Corollary 3.1.24. If G is a bipartite graph with no isolated vertices, then α(G) = β′ (G). Proof: By the Corollary of Theorem 3.1.21 and by Theorem 3.1.22, we get α(G) + β(G) = α′ (G) + β′ (G). Applying Theorem 3.1.16 (α′ (G) = β(G)) completes the proof. 2 c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 24 ' $ % Dominating Sets (1) In vertex covers and edge covers, vertices cover edges and vice versa. One may also consider the case where vertices cover adjacent vertices. In a graph G, a set S ⊆ V (G) is a dominating set if every vertex not in S has a neighbor in S. The domination number γ(G) is the minimum size of a dominating set in G. Example. See [Wes, Example 3.1.27]. c Patric Östergård
  • 7. S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 25 ' $ % Dominating Sets (2) A dominating set S in G is called connected if S induces a connected subgraph, and independent if S is an independent set in G. Example 1. A connected dominating set can be used as a virtual backbone for routing in wireless ad hoc networks. Example 2. A dominating set in an n-cube can be used as a gambling system for the football pools. c Patric Östergård S-72.2420/T-79.5203 Trees and Distance; Graph Parameters 26 ' $ % Factors factor A spanning subgraph (called a k-factor if the subgraph is k-regular). factorization A decomposition of a graph into factors (called a k-factorization if the factors are k-factors). Note: A 1-factor and a perfect matching is almost the same thing, the only difference being that a 1-factor is a subgraph whereas a perfect matching is the set of edges in such a subgraph. c Patric Östergård