Extremal graph theory

2/19/2015
Ma/CS 6b
Class 19: Extremal Graph Theory
Paul Turán
By Adam Sheffer
Extremal Graph Theory
ο‚—
The subfield of extremal graph theory
deals with questions of the form:
β—¦ What is the maximum number of edges that a
graph with 𝑛 vertices can have without
containing a given subgraph 𝐻?
β—¦ Characterize the graphs that obtain the this
maximum number of edges.
A graph without 𝐾5
1
2/19/2015
𝑒π‘₯ 𝑛, 𝐻
ο‚—
We denote by 𝑒π‘₯ 𝑛, 𝐻 the maximum
number of edges in a graph with 𝑛
vertices and no subgraph 𝐻.
ο‚—
Example. Recall that 𝑃𝑖 is a simple path of
length 𝑖. What is 𝑒π‘₯ 4, 𝑃3 ? 3
Graphs Without Triangles
ο‚—
Problem. Find 𝑒π‘₯ 𝑛, 𝐾3 .
β—¦ What graph contains a large number of edges
but does not have 𝐾3 as a subgraph?
β—¦ Any complete bipartite graph.
2
2/19/2015
Maximizing the Number of Edges
ο‚—
What value of π‘š maximizes the number
of edges in πΎπ‘š,π‘›βˆ’π‘š ?
β—¦ The number of edges is π‘š 𝑛 βˆ’ π‘š .
β—¦ The maximum of 𝑛2 /4 is obtained for
𝐺𝑛/2,𝑛/2 .
β—¦ Can we find a graph without triangles and
with more edges?
Mantel’s Theorem
ο‚—
ο‚—
Theorem. 𝑒π‘₯ 𝑛, 𝐾3 = 𝑛2 /4 .
Proof. Let 𝐺 = 𝑉, 𝐸 be a triangle-free graph
with 𝑉 = 𝑛.
β—¦ 𝑑𝑖 = deg 𝑣𝑖 .
β—¦ If 𝑣𝑖 , 𝑣𝑗 ∈ 𝐸, then 𝑣𝑖 and 𝑣𝑗 do not have
common neighbors, so 𝑑𝑖 + 𝑑𝑗 ≀ 𝑛.
β—¦ We thus have
𝑣𝑖 ,𝑣𝑗 ∈𝐸
𝑑𝑖 + 𝑑𝑗 ≀ 𝑛 𝐸 .
β—¦ Since every 𝑑𝑖 appears in 𝑑𝑖 elements
𝑛𝐸 β‰₯
𝑑𝑖2 .
𝑑𝑖 + 𝑑𝑗 =
𝑑𝑖 ,𝑑𝑗 ∈𝐸
𝑖
3
2/19/2015
The Cauchy–Schwarz Inequality
ο‚—
The Cauchy–Schwarz inequality. For any
π‘Ž1 , π‘Ž2 , … , π‘Žπ‘› , 𝑏1 , 𝑏2 , … , 𝑏𝑛 ∈ ℝ, we have
2
𝑛
π‘Žπ‘– 𝑏𝑖
𝑛
π‘Žπ‘–2
≀
𝑖=1
ο‚—
𝑛
𝑏𝑖2 .
𝑖=1
𝑖=1
Equality holds iff the vectors
π‘Ž1 , … , π‘Žπ‘› and 𝑏1 , … , 𝑏𝑛
are linearly dependent.
Available online
Completing the Proof
ο‚—
We proved that
𝑛𝐸 β‰₯
𝑖
𝑑𝑖 ,𝑑𝑗 ∈𝐸
ο‚—
ο‚—
𝑑𝑖2
𝑑𝑖 + 𝑑𝑗 =
Recall that 𝑖 𝑑𝑖 = 2|𝐸|.
By Cauchy-Schwarz with π‘Žπ‘– = 𝑑𝑖 and 𝑏𝑖 = 1:
2
𝑑𝑖
𝑖
β—¦
𝑑𝑖2
≀
12 .
𝑖
We thus have
𝑑𝑖2
𝑛𝐸 β‰₯
𝑖
4𝐸
β‰₯
𝑛
𝑖
2
β†’
𝑛2
𝐸 ≀
4
4
2/19/2015
The Maximum Graph is Unique
Claim. The only graph that has the
maximum number of edges 𝑒π‘₯ 𝑛, 𝐾3
= 𝑛2 /4 is 𝐾 𝑛/2 , 𝑛/2 .
ο‚— Proof. We consider the case of an even 𝑛.
ο‚—
β—¦ In our proof for 𝑒π‘₯ 𝑛, 𝐾3 = 𝑛2 /4, we used
Cauchy-Schwarz to obtain
2
2
≀ 𝑖 𝑑𝑖2
𝑖 𝑑𝑖
𝑖 1 , which implied
𝑛𝐸 β‰₯
2
𝑖 𝑑𝑖 β‰₯
4𝐸2
𝑛
.
β—¦ Equality holds if and only if for every
1 ≀ 𝑖 ≀ 𝑛, we have 𝑑𝑖 = 𝑛/2.
Inequality of Arithmetic and
Geometric Means
ο‚—
AM-GM Inequality. For any π‘Ž1 , π‘Ž2 , … , π‘Žπ‘›
∈ ℝ, we have
π‘Ž1 + β‹― + π‘Žπ‘›
β‰₯ π‘Ž1 β‹― π‘Žπ‘›
𝑛
1/𝑛
.
No Shirt available.
Marketing opportunity?
5
2/19/2015
Recall: Independent Sets
Consider a graph 𝐺 = 𝑉, 𝐸 . An
independent set in 𝐺 is a subset 𝑉 β€² βŠ‚ 𝑉
such that there is no edge between any
two vertices of 𝑉′.
ο‚— Finding a maximum independent set in a
graph is a major problem in theoretical
computer science.
ο‚—
β—¦ No polynomial-time algorithm
is known.
Mantel’s Theorem: Second Proof
𝐺 = 𝑉, 𝐸 – a triangle-free graph with 𝑉 = 𝑛.
ο‚— 𝛼 – the size of the largest independent set 𝐴 in
𝐺.
ο‚— The set of neighbors of any 𝑣 ∈ 𝑉 is an
independent set, so 𝛼 β‰₯ deg 𝑣.
ο‚— 𝐡 = 𝑉 βˆ– 𝐴, so |𝐡| = 𝑛 βˆ’ 𝛼. Also, 𝐡 is a vertex
cover.
ο‚— By the AM-GM inequality, we have
2
𝛼+ π‘›βˆ’π›Ό
𝑛2
𝐸 ≀
deg 𝑣 ≀ 𝛼 𝐡 ≀
=
.
2
4
ο‚—
π‘£βˆˆπ΅
6
2/19/2015
Generalizing the Problem
ο‚—
We move from 𝑒π‘₯ 𝑛, 𝐾3 to 𝑒π‘₯ 𝑛, πΎπ‘Ÿ .
β—¦ For some π‘Ÿ > 3, what graph contains many
edges but no πΎπ‘Ÿ ?
β—¦ An π‘Ÿ-partite graph is a graph with π‘Ÿ parts, and
no edge between two vertices of the same
part (generalizing bipartite graphs).
β—¦ Example. The figure presents the complete
4-partite graph 𝐾3,3,3,4 .
Turán Graphs
ο‚—
The Turán graph 𝑇 𝑛, π‘Ÿ is a complete
π‘Ÿ-partite graph with 𝑛 vertices, such that
each part consists of either 𝑛/π‘Ÿ or
𝑛/π‘Ÿ vertices.
β—¦ The graph in the figure is 𝑇 13,4 .
β—¦ 𝑇 𝑛, π‘Ÿ βˆ’ 1 contains no copy of πΎπ‘Ÿ and has
about 𝑛 𝑛 βˆ’
𝑛
π‘Ÿβˆ’1
/2 edges.
7
2/19/2015
Turán’s Theorem
ο‚—
Theorem. If 𝐺 = 𝑉, 𝐸 is a graph that
contains no copy of πΎπ‘Ÿ and 𝑉 = 𝑛, then
𝐸 ≀
ο‚—
𝑛2
2
1βˆ’
1
π‘Ÿβˆ’1
.
Proof. By induction on 𝑛.
β—¦ Induction basis. Easily holds when 𝑛 < π‘Ÿ.
β—¦ Induction step. 𝐺 = 𝑉, 𝐸 – a graph that
contains no copy of πΎπ‘Ÿ , with 𝑉 = 𝑛 and
𝐸 = 𝑒π‘₯ 𝑛, πΎπ‘Ÿ .
β—¦ 𝐺 contains a copy of πΎπ‘Ÿβˆ’1 . Otherwise, adding
an edge to 𝐺 would not yield a copy of πΎπ‘Ÿ ,
contradicting the maximality of 𝐺.
ο‚—
ο‚—
ο‚—
ο‚—
𝐺 = 𝑉, 𝐸 – a graph that contains no copy of
πΎπ‘Ÿ , with 𝑉 = 𝑛 and 𝐸 = 𝑒π‘₯ 𝑛, πΎπ‘Ÿ edges.
𝐴 – an induced subgraph of 𝐺 that is a πΎπ‘Ÿβˆ’1 .
π‘Ÿβˆ’1
𝐴 contains
edges.
2
By the hypothesis, 𝐺 βˆ– 𝐴 has at most
(π‘›βˆ’π‘Ÿ+1)2
2
ο‚—
ο‚—
1βˆ’
1
π‘Ÿβˆ’1
edges.
Since each vertex of 𝑉 βˆ– 𝐴 is adjacent to at most
π‘Ÿ βˆ’ 2 vertices of 𝐴, there are
𝑛 βˆ’ π‘Ÿ + 1 π‘Ÿ βˆ’ 2 edges between 𝑉\𝐴 and 𝐴.
Combining the above, we have
𝐸 ≀
π‘Ÿβˆ’1 π‘Ÿβˆ’2
π‘›βˆ’π‘Ÿ+1 2
+
1 βˆ’ 1/ π‘Ÿ βˆ’ 1
2
2
𝑛2
+ π‘›βˆ’π‘Ÿ+1 π‘Ÿβˆ’2 ≀
1 βˆ’ 1/ π‘Ÿ βˆ’ 1 .
2
8
2/19/2015
Which Actor from the Big Bang
Theory is a Real Scientist?
Proof #2: Balancing Weights
ο‚—
𝐺 = 𝑉, 𝐸 – a graph that contains no copy of
πΎπ‘Ÿ , with 𝑉 = 𝑣1 , … , 𝑣𝑛 .
ο‚—
We assign a weight 𝑀𝑖 = to every 𝑣𝑖 . We set
𝑛
π‘Š = 𝑣 ,𝑣 ∈𝐸 𝑀𝑖 𝑀𝑗 .
1
𝑖 𝑗
ο‚—
Initially we have π‘Š = 𝐸
weights to increase π‘Š.
1/3
1/3
1/3
1 1 1 1 2
β‹… + β‹… =
3 3 3 3 9
1
𝑛2
. We wish to move
1/2
0
1/2
1 1 1
1
β‹… + β‹…0=
2 2 2
4
9
2/19/2015
Balancing Weights (cont.)
ο‚—
𝑣𝑖 , 𝑣𝑗 – two vertices of 𝑉 with positive weights,
such that 𝑣𝑖 , 𝑣𝑗 βˆ‰ 𝐸.
ο‚—
𝑁𝑖 , 𝑁𝑗 – the sum of the weights of the neighbors
of 𝑣𝑖 and 𝑣𝑗 , respectively.
ο‚—
WLOG, assume that 𝑁𝑖 ≀ 𝑁𝑗 .
By moving the weight of 𝑣𝑖 to 𝑣𝑗 , we change π‘Š
by 𝑀𝑖 𝑁𝑗 βˆ’ 𝑀𝑖 𝑁𝑖 β‰₯ 0.
𝑣𝑖
𝑣𝑖
0.1
0.1
ο‚—
0.1
0.1
0.1
0.1
𝑣𝑗
0
0.1
0.2
0.2
0.1
𝑣𝑗
0.2
More Balancing of Weights.
ο‚—
ο‚—
ο‚—
πœ€
If there exist 𝑣𝑖 , 𝑣𝑗 with positive weights and
𝑣𝑖 , 𝑣𝑗 βˆ‰ 𝐸, we can move the weight vertex of
one to the other without decreasing π‘Š.
We repeatedly do this until the entire weight is
on the vertices of a complete subgraph πΎπ‘š .
Consider 𝑣𝑖 , 𝑣𝑗 ∈ πΎπ‘š with 𝑀𝑗 βˆ’ 𝑀𝑖 β‰₯ 2πœ€ > 0.
Then moving πœ€ from 𝑀𝑗 to 𝑀𝑖 changes π‘Š by
1 βˆ’ 𝑀𝑖 βˆ’ πœ€ βˆ’ 1 βˆ’ 𝑀𝑗
= πœ€ 𝑀𝑗 βˆ’ 𝑀𝑖 βˆ’ πœ€ β‰₯ πœ€ 2 .
0.2
0.25
0.25
0.25
0.3
0.25
0.25
0.25
10
2/19/2015
Concluding the Proof
We conclude that we can move the entire
weight to a subgraph πΎπ‘š where each vertex of
1
the subgraph has a weight of .
ο‚—
π‘š
By the assumption, π‘š ≀ π‘Ÿ βˆ’ 1.
1
π‘Ÿβˆ’2
π‘Ÿβˆ’1
That is, we obtain π‘Š ≀
=
.
2
2π‘Ÿβˆ’2
2 (π‘Ÿβˆ’1)
1
Recall that we started with π‘Š = 𝐸 2 .
ο‚—
ο‚—
ο‚—
ο‚—
𝑛
Since we only increased π‘Š, we have
1
π‘Ÿβˆ’2
𝑛2
1
𝐸 2≀
β†’ 𝐸 ≀
1βˆ’
.
𝑛
2π‘Ÿ βˆ’ 2
2
π‘Ÿβˆ’1
Cliques
Given a graph 𝐺 = 𝑉, 𝐸 , a clique of 𝐺 is
any subgraph that is a complete graph.
ο‚— No polynomial-time algorithm for finding
a maximum clique in a graph is known.
ο‚—
β—¦ The problem is equivalent to finding a
maximum independent set in a graph.
β—¦ Define the graph 𝐺 𝑐 = (𝑉, 𝐸 𝑐 ) such that
𝑣, 𝑒 ∈ 𝐸 𝑐 iff 𝑣, 𝑒 βˆ‰ 𝐸. Finding
a maximum clique in 𝐺 is
equivalent to finding a maximum
independent set in 𝐺 𝑐 .
11
2/19/2015
A Lower Bound on the Clique Size
ο‚—
Lemma. Let 𝐺 = 𝑉, 𝐸 be a graph with
𝑉 = 𝑣1 , … , 𝑣𝑛 , and let 𝑑𝑖 = deg 𝑣𝑖 .
Then 𝐺 contains a clique of size at least
1
𝑛
.
𝑖=1
π‘›βˆ’π‘‘π‘–
1
1
1
1
1
1
+
+
+
+
=3+
5βˆ’4 5βˆ’4 5βˆ’3 5βˆ’3 5βˆ’2
3
Probabilistic Proof
We uniformly choose a permutation πœ‹ of
1, … , 𝑛 .
ο‚— We build a subset πΆπœ‹ βŠ‚ 𝑉: for every
1 ≀ 𝑖 ≀ 𝑛, we add π‘£πœ‹ 𝑖 to πΆπœ‹ if π‘£πœ‹ 𝑖 is
adjacent to π‘£πœ‹ 1 , π‘£πœ‹ 2 , … , π‘£πœ‹ π‘–βˆ’1 .
ο‚— Notice that πΆπœ‹ is a clique.
ο‚— 𝑋𝑖 – an indicator variable for whether
π‘£πœ‹ 𝑖 ∈ πΆπœ‹ .
ο‚—
ο‚—
𝐸 𝑋𝑖 = Pr 𝑋𝑖 = 1 =
1
π‘›βˆ’π‘‘πœ‹ 𝑖
.
12
2/19/2015
Proof (cont.)
ο‚—
𝑋𝑖 – an indicator variable for whether
π‘£πœ‹ 𝑖 ∈ πΆπœ‹ .
ο‚—
𝐸 𝑋𝑖 = Pr 𝑋𝑖 = 1 =
1
π‘›βˆ’π‘‘πœ‹ 𝑖
.
Set 𝑋 = 𝑛𝑖=1 𝑋𝑖 .
ο‚— 𝑋 is the size of the clique πΆπœ‹ .
ο‚— By linearity of expectation
ο‚—
𝑛
𝐸𝑋 =
𝑛
𝐸 𝑋𝑖 =
𝑖=1
𝑖=1
1
𝑛 βˆ’ π‘‘πœ‹
𝑖
𝑛
=
𝑖=1
1
.
𝑛 βˆ’ 𝑑𝑖
Completing the Proof
ο‚—
𝑋 is the size of the clique πΆπœ‹ .
𝑛
𝐸𝑋 =
𝑖=1
ο‚—
1
.
𝑛 βˆ’ 𝑑𝑖
Thus, there exists a permutation that leads to a
clique of at least this size.
13
2/19/2015
Proof #3 of Turán’s Theorem
𝐺 = 𝑉, 𝐸 – a graph that contains no copy of πΎπ‘Ÿ ,
with 𝑉 = 𝑣1 , … , 𝑣𝑛 .
1
𝑑𝑖 = deg 𝑣𝑖 ,
π‘Žπ‘– = 𝑛 βˆ’ 𝑑𝑖 ,
𝑏𝑖 =
.
𝑛 βˆ’ 𝑑𝑖
ο‚— By Cauchy-Schwarz
ο‚—
2
𝑛
π‘Žπ‘– 𝑏𝑖
𝑛
≀
𝑖=1
ο‚—
𝑛
π‘Žπ‘–2
𝑖=1
𝑖=1
Since π‘Žπ‘– 𝑏𝑖 = 1, we have
𝑛
𝑛
π‘Žπ‘–2
𝑛2 ≀
𝑏𝑖2 .
𝑖=1
𝑑𝑖 = deg 𝑣𝑖 ,
ο‚—
We have
𝑛
𝑛2
𝑖=1
ο‚—
𝑛 βˆ’ 𝑑𝑖 ,
𝑛
𝑛
𝑏𝑖2
𝑏𝑖 =
𝑛
=
𝑖=1
𝑛 βˆ’ 𝑑𝑖
𝑖=1
𝑖=1
1
𝑛 βˆ’ 𝑑𝑖
.
1
.
𝑛 βˆ’ 𝑑𝑖
By the previous lemma, 𝐺 has a clique of size at
1
least 𝑛𝑖=1
.
π‘›βˆ’π‘‘π‘–
ο‚—
𝑖=1
π‘Žπ‘– =
π‘Žπ‘–2
≀
𝑏𝑖2 .
By the assumption,
𝑛
𝑛2 ≀ π‘Ÿ βˆ’ 1
𝑛2
π‘Ÿβˆ’1
1
𝑛
𝑖=1 π‘›βˆ’π‘‘
𝑖
𝑛 βˆ’ 𝑑𝑖
𝑖=1
≀
𝑛2
βˆ’2 𝐸
β†’
≀ π‘Ÿ βˆ’ 1. Thus,
= π‘Ÿ βˆ’ 1 𝑛2 βˆ’ 2 𝐸 .
𝑛2
1
𝐸 ≀
1βˆ’
2
π‘Ÿβˆ’1
14
2/19/2015
Recap
ο‚—
We saw three proofs of Turán’s Theorem:
β—¦ A simple proof by induction.
β—¦ A proof by assigning a weight to every vertex
and manipulating these weights.
β—¦ A proof by combining the probabilistic
method and the Cauchy-Schwarz inequality.
The End: Mayim Bialik
ο‚—
Just like the character Amy Farrah Fowler
that she plays in the show, Mayim Bialik
has a Ph.D. in neuroscience.
β—¦ From UCLA.
15