東京大学 情報理工学系研究科 コンピュータ科学専攻 2022年2月実施 問題2
Author
zephyr
Description
Let G = ( V , E ) G = (V, E) G = ( V , E ) be a simple undirected graph with the vertex set V = { v i ∣ i = 1 , … , n } V = \{v_i \mid i = 1, \ldots, n\} V = { v i ∣ i = 1 , … , n } and edge set E E E . For an n n n -dimensional vector x = ( x 1 , … , x n ) ∈ { − 1 , + 1 } n \mathbf{x} = (x_1, \ldots, x_n) \in \{-1, +1\}^n x = ( x 1 , … , x n ) ∈ { − 1 , + 1 } n , define f G ( x ) f_G(\mathbf{x}) f G ( x ) by
f G ( x ) = ∑ ( v i , v j ) ∈ E 1 − x i x j 2 . f_G(\mathbf{x}) = \sum_{(v_i, v_j) \in E} \frac{1 - x_i x_j}{2}. f G ( x ) = ( v i , v j ) ∈ E ∑ 2 1 − x i x j .
Answer the following questions.
(1) For the case where G G G is a complete graph K n K_n K n of n n n vertices, compute a n = max x ∈ { − 1 , + 1 } n f G ( x ) a_n = \max_{\mathbf{x} \in \{-1, +1\}^n} f_G(\mathbf{x}) a n = max x ∈ { − 1 , + 1 } n f G ( x ) .
(2) Let K n K_n K n and a n a_n a n be those given in question (1). Let b n b_n b n be the number of edges of K n K_n K n . Compute
lim n → ∞ a n b n . \lim_{n \to \infty} \frac{a_n}{b_n}. n → ∞ lim b n a n .
(3) Let G G G be an arbitrary simple undirected graph. When each x i x_i x i takes a value of either − 1 -1 − 1 or + 1 +1 + 1 with probability 1 2 \frac{1}{2} 2 1 independently, compute the expected value of f G ( x ) f_G(\mathbf{x}) f G ( x ) . You may use the linearity of expectation.
(4) Show that, for any simple undirected graph G G G , there exists some x ∈ { − 1 , + 1 } n \mathbf{x} \in \{-1, +1\}^n x ∈ { − 1 , + 1 } n such that
f G ( x ) ≥ ∣ E ∣ 2 . f_G(\mathbf{x}) \geq \frac{|E|}{2}. f G ( x ) ≥ 2 ∣ E ∣ .
Here, ∣ E ∣ |E| ∣ E ∣ denotes the number of edges of G G G .
令 G = ( V , E ) G = (V, E) G = ( V , E ) 为一个简单无向图,其顶点集为 V = { v i ∣ i = 1 , … , n } V = \{v_i \mid i = 1, \ldots, n\} V = { v i ∣ i = 1 , … , n } ,边集为 E E E 。对于一个 n n n 维向量 x = ( x 1 , … , x n ) ∈ { − 1 , + 1 } n \mathbf{x} = (x_1, \ldots, x_n) \in \{-1, +1\}^n x = ( x 1 , … , x n ) ∈ { − 1 , + 1 } n ,定义 f G ( x ) f_G(\mathbf{x}) f G ( x ) 为
f G ( x ) = ∑ ( v i , v j ) ∈ E 1 − x i x j 2 . f_G(\mathbf{x}) = \sum_{(v_i, v_j) \in E} \frac{1 - x_i x_j}{2}. f G ( x ) = ( v i , v j ) ∈ E ∑ 2 1 − x i x j .
回答以下问题。
(1) 当 G G G 是一个 n n n 个顶点的完全图 K n K_n K n 时,计算 a n = max x ∈ { − 1 , + 1 } n f G ( x ) a_n = \max_{\mathbf{x} \in \{-1, +1\}^n} f_G(\mathbf{x}) a n = max x ∈ { − 1 , + 1 } n f G ( x ) 。
(2) 令 K n K_n K n 和 a n a_n a n 为问题(1)中给出的。令 b n b_n b n 为 K n K_n K n 的边数。计算
lim n → ∞ a n b n . \lim_{n \to \infty} \frac{a_n}{b_n}. n → ∞ lim b n a n .
(3) 令 G G G 为任意一个简单无向图。当每个 x i x_i x i 独立地以 1 2 \frac{1}{2} 2 1 的概率取 − 1 -1 − 1 或 + 1 +1 + 1 时,计算 f G ( x ) f_G(\mathbf{x}) f G ( x ) 的期望值。你可以使用期望值的线性性。
(4) 证明对于任意简单无向图 G G G ,存在某个 x ∈ { − 1 , + 1 } n \mathbf{x} \in \{-1, +1\}^n x ∈ { − 1 , + 1 } n 使得
f G ( x ) ≥ ∣ E ∣ 2 . f_G(\mathbf{x}) \geq \frac{|E|}{2}. f G ( x ) ≥ 2 ∣ E ∣ .
这里,∣ E ∣ |E| ∣ E ∣ 表示 G G G 的边数。
题目描述
设 G = ( V , E ) G=(V,E) G = ( V , E ) 为简单无向图,
V = { v i ∣ i = 1 , … , n } V=\{v_i\mid i=1,\ldots,n\} V = { v i ∣ i = 1 , … , n } 。对
x = ( x 1 , … , x n ) ∈ { − 1 , + 1 } n \boldsymbol{x}=(x_1,\ldots,x_n)\in\{-1,+1\}^n x = ( x 1 , … , x n ) ∈ { − 1 , + 1 } n ,定义
f G ( x ) = ∑ ( v i , v j ) ∈ E 1 − x i x j 2 . f_G(\boldsymbol{x})
=\sum_{(v_i,v_j)\in E}\frac{1-x_ix_j}{2}. f G ( x ) = ( v i , v j ) ∈ E ∑ 2 1 − x i x j .
回答下列问题。
(1)当 G G G 为 n n n 个顶点的完全图 K n K_n K n 时,求
a n = max x ∈ { − 1 , + 1 } n f G ( x ) . a_n=\max_{\boldsymbol{x}\in\{-1,+1\}^n}f_G(\boldsymbol{x}). a n = x ∈ { − 1 , + 1 } n max f G ( x ) .
(2)令 b n b_n b n 为 K n K_n K n 的边数,计算
lim n → ∞ a n b n . \lim_{n\to\infty}\frac{a_n}{b_n}. n → ∞ lim b n a n .
(3)对任意简单无向图 G G G ,若各 x i x_i x i 独立地以 1 / 2 1/2 1/2 概率取
− 1 -1 − 1 或 + 1 +1 + 1 ,求 f G ( x ) f_G(\boldsymbol{x}) f G ( x ) 的期望。可以使用期望的线性性。
(4)证明对任意简单无向图 G G G ,存在
x ∈ { − 1 , + 1 } n \boldsymbol{x}\in\{-1,+1\}^n x ∈ { − 1 , + 1 } n 使
f G ( x ) ≥ ∣ E ∣ 2 . f_G(\boldsymbol{x})\ge\frac{|E|}{2}. f G ( x ) ≥ 2 ∣ E ∣ .
Kai
(1)
For G = K n G = K_n G = K n , a complete graph with n n n vertices, every pair of distinct vertices is connected by an edge. Thus, the edge set E E E has ( n 2 ) = n ( n − 1 ) 2 \binom{n}{2} = \frac{n(n-1)}{2} ( 2 n ) = 2 n ( n − 1 ) edges.
To compute a n = max x ∈ { − 1 , + 1 } n f G ( x ) a_n = \max_{\mathbf{x} \in \{-1, +1\}^n} f_G(\mathbf{x}) a n = max x ∈ { − 1 , + 1 } n f G ( x ) , consider the definition of f G ( x ) f_G(\mathbf{x}) f G ( x ) :
f G ( x ) = ∑ ( v i , v j ) ∈ E 1 − x i x j 2 . f_G(\mathbf{x}) = \sum_{(v_i, v_j) \in E} \frac{1 - x_i x_j}{2}. f G ( x ) = ( v i , v j ) ∈ E ∑ 2 1 − x i x j .
For each edge ( v i , v j ) (v_i, v_j) ( v i , v j ) , the term 1 − x i x j 2 \frac{1 - x_i x_j}{2} 2 1 − x i x j is either 0 0 0 or 1 1 1 :
1 − x i x j 2 = { 0 if x i = x j 1 if x i ≠ x j \frac{1 - x_i x_j}{2} =
\begin{cases}
0 & \text{if } x_i = x_j \\
1 & \text{if } x_i \neq x_j
\end{cases} 2 1 − x i x j = { 0 1 if x i = x j if x i = x j
To maximize f G ( x ) f_G(\mathbf{x}) f G ( x ) , we need to maximize the number of edges where x i ≠ x j x_i \neq x_j x i = x j . Let k k k be the number of vertices where x i = 1 x_i = 1 x i = 1 , and n − k n-k n − k be the number of vertices where x i = − 1 x_i = -1 x i = − 1 .
The number of edges between vertices with x i = 1 x_i = 1 x i = 1 and x j = − 1 x_j = -1 x j = − 1 is k ( n − k ) k(n-k) k ( n − k ) . Therefore:
f G ( x ) = k ( n − k ) . f_G(\mathbf{x}) = k(n-k). f G ( x ) = k ( n − k ) .
We need to maximize k ( n − k ) k(n-k) k ( n − k ) . The function k ( n − k ) k(n-k) k ( n − k ) is a quadratic function in k k k with its maximum value when k = n 2 k = \frac{n}{2} k = 2 n .
Case 1: n n n is even
When n n n is even, let k = n 2 k = \frac{n}{2} k = 2 n . Then:
a n = ( n 2 ) ( n − n 2 ) = ( n 2 ) ( n 2 ) = n 2 4 . a_n = \left(\frac{n}{2}\right)\left(n - \frac{n}{2}\right) = \left(\frac{n}{2}\right)\left(\frac{n}{2}\right) = \frac{n^2}{4}. a n = ( 2 n ) ( n − 2 n ) = ( 2 n ) ( 2 n ) = 4 n 2 .
Case 2: n n n is odd
When n n n is odd, let k = ⌊ n 2 ⌋ k = \left\lfloor \frac{n}{2} \right\rfloor k = ⌊ 2 n ⌋ or k = ⌈ n 2 ⌉ k = \left\lceil \frac{n}{2} \right\rceil k = ⌈ 2 n ⌉ . Either way, k ( n − k ) k(n-k) k ( n − k ) is maximized when the sizes of the two groups differ by at most one. Therefore:
a n = ⌊ n 2 ⌋ ( n − ⌊ n 2 ⌋ ) . a_n = \left\lfloor \frac{n}{2} \right\rfloor \left(n - \left\lfloor \frac{n}{2} \right\rfloor \right). a n = ⌊ 2 n ⌋ ( n − ⌊ 2 n ⌋ ) .
or
a n = ⌈ n 2 ⌉ ( n − ⌈ n 2 ⌉ ) . a_n = \left\lceil \frac{n}{2} \right\rceil \left(n - \left\lceil \frac{n}{2} \right\rceil \right). a n = ⌈ 2 n ⌉ ( n − ⌈ 2 n ⌉ ) .
Since ⌊ n 2 ⌋ = ( n − 1 2 ) \left\lfloor \frac{n}{2} \right\rfloor = \left(\frac{n-1}{2}\right) ⌊ 2 n ⌋ = ( 2 n − 1 ) and ⌈ n 2 ⌉ = ( n + 1 2 ) \left\lceil \frac{n}{2} \right\rceil = \left(\frac{n+1}{2}\right) ⌈ 2 n ⌉ = ( 2 n + 1 ) , we have:
a n = ( n − 1 2 ) ( n + 1 2 ) . a_n = \left(\frac{n-1}{2}\right)\left(\frac{n+1}{2}\right). a n = ( 2 n − 1 ) ( 2 n + 1 ) .
Thus:
a n = ( n − 1 ) ( n + 1 ) 4 = n 2 − 1 4 . a_n = \frac{(n-1)(n+1)}{4} = \frac{n^2 - 1}{4}. a n = 4 ( n − 1 ) ( n + 1 ) = 4 n 2 − 1 .
In conclusion:
a n = { n 2 4 if n is even n 2 − 1 4 if n is odd a_n =
\begin{cases}
\frac{n^2}{4} & \text{if } n \text{ is even} \\
\frac{n^2 - 1}{4} & \text{if } n \text{ is odd}
\end{cases} a n = { 4 n 2 4 n 2 − 1 if n is even if n is odd
(2)
The number of edges in a complete graph K n K_n K n is b n = ( n 2 ) = n ( n − 1 ) 2 b_n = \binom{n}{2} = \frac{n(n-1)}{2} b n = ( 2 n ) = 2 n ( n − 1 ) .
Using the result from Question 1:
a n = { n 2 4 if n is even n 2 − 1 4 if n is odd a_n =
\begin{cases}
\frac{n^2}{4} & \text{if } n \text{ is even} \\
\frac{n^2 - 1}{4} & \text{if } n \text{ is odd}
\end{cases} a n = { 4 n 2 4 n 2 − 1 if n is even if n is odd
The odd case differs from n 2 / 4 n^2/4 n 2 /4 by only 1 / 4 1/4 1/4 , so after division by b n b_n b n the difference tends to zero. Thus both parities have the same limit:
lim n → ∞ a n b n = lim n → ∞ n 2 4 n ( n − 1 ) 2 = lim n → ∞ n 2 4 ⋅ 2 n ( n − 1 ) = lim n → ∞ n 2 ( n − 1 ) = lim n → ∞ 1 2 ⋅ n n − 1 = 1 2 \lim_{n \to \infty} \frac{a_n}{b_n} = \lim_{n \to \infty} \frac{\frac{n^2}{4}}{\frac{n(n-1)}{2}} = \lim_{n \to \infty} \frac{n^2}{4} \cdot \frac{2}{n(n-1)} = \lim_{n \to \infty} \frac{n}{2(n-1)} = \lim_{n \to \infty} \frac{1}{2} \cdot \frac{n}{n-1} = \frac{1}{2} n → ∞ lim b n a n = n → ∞ lim 2 n ( n − 1 ) 4 n 2 = n → ∞ lim 4 n 2 ⋅ n ( n − 1 ) 2 = n → ∞ lim 2 ( n − 1 ) n = n → ∞ lim 2 1 ⋅ n − 1 n = 2 1
Thus,
lim n → ∞ a n b n = 1 2 \lim_{n \to \infty} \frac{a_n}{b_n} = \frac{1}{2} n → ∞ lim b n a n = 2 1
(3)
Let G = ( V , E ) G = (V, E) G = ( V , E ) be an arbitrary simple undirected graph, and x = ( x 1 , … , x n ) ∈ { − 1 , + 1 } n \mathbf{x} = (x_1, \ldots, x_n) \in \{-1, +1\}^n x = ( x 1 , … , x n ) ∈ { − 1 , + 1 } n with each x i x_i x i taking values − 1 -1 − 1 or 1 1 1 independently with probability 1 2 \frac{1}{2} 2 1 .
To find the expected value of f G ( x ) f_G(\mathbf{x}) f G ( x ) , use the linearity of expectation:
E [ f G ( x ) ] = E [ ∑ ( v i , v j ) ∈ E 1 − x i x j 2 ] = ∑ ( v i , v j ) ∈ E E [ 1 − x i x j 2 ] \mathbb{E}[f_G(\mathbf{x})] = \mathbb{E}\left[\sum_{(v_i, v_j) \in E} \frac{1 - x_i x_j}{2}\right] = \sum_{(v_i, v_j) \in E} \mathbb{E}\left[\frac{1 - x_i x_j}{2}\right] E [ f G ( x )] = E ( v i , v j ) ∈ E ∑ 2 1 − x i x j = ( v i , v j ) ∈ E ∑ E [ 2 1 − x i x j ]
Now, consider E [ 1 − x i x j 2 ] \mathbb{E}\left[\frac{1 - x_i x_j}{2}\right] E [ 2 1 − x i x j ] :
E [ x i x j ] = E [ x i ] E [ x j ] = 0 ⋅ 0 = 0 \mathbb{E}[x_i x_j] = \mathbb{E}[x_i] \mathbb{E}[x_j] = 0 \cdot 0 = 0 E [ x i x j ] = E [ x i ] E [ x j ] = 0 ⋅ 0 = 0
since x i x_i x i and x j x_j x j are independent and each has expectation 0 0 0 (values are − 1 -1 − 1 or 1 1 1 with equal probability).
Thus,
E [ 1 − x i x j 2 ] = 1 − E [ x i x j ] 2 = 1 − 0 2 = 1 2 \mathbb{E}\left[\frac{1 - x_i x_j}{2}\right] = \frac{1 - \mathbb{E}[x_i x_j]}{2} = \frac{1 - 0}{2} = \frac{1}{2} E [ 2 1 − x i x j ] = 2 1 − E [ x i x j ] = 2 1 − 0 = 2 1
Therefore,
E [ f G ( x ) ] = ∑ ( v i , v j ) ∈ E 1 2 = ∣ E ∣ 2 \mathbb{E}[f_G(\mathbf{x})] = \sum_{(v_i, v_j) \in E} \frac{1}{2} = \frac{|E|}{2} E [ f G ( x )] = ( v i , v j ) ∈ E ∑ 2 1 = 2 ∣ E ∣
(4)
To show that there exists some x ∈ { − 1 , + 1 } n \mathbf{x} \in \{-1, +1\}^n x ∈ { − 1 , + 1 } n such that f G ( x ) ≥ ∣ E ∣ 2 f_G(\mathbf{x}) \geq \frac{|E|}{2} f G ( x ) ≥ 2 ∣ E ∣ , consider the expected value derived in Question 3.
We have:
E [ f G ( x ) ] = ∣ E ∣ 2 \mathbb{E}[f_G(\mathbf{x})] = \frac{|E|}{2} E [ f G ( x )] = 2 ∣ E ∣
Since E [ f G ( x ) ] \mathbb{E}[f_G(\mathbf{x})] E [ f G ( x )] is the average value of f G ( x ) f_G(\mathbf{x}) f G ( x ) over all possible x ∈ { − 1 , + 1 } n \mathbf{x} \in \{-1, +1\}^n x ∈ { − 1 , + 1 } n , there must be at least one particular x ∈ { − 1 , + 1 } n \mathbf{x} \in \{-1, +1\}^n x ∈ { − 1 , + 1 } n for which f G ( x ) ≥ ∣ E ∣ 2 f_G(\mathbf{x}) \geq \frac{|E|}{2} f G ( x ) ≥ 2 ∣ E ∣ . Otherwise, the average value could not be ∣ E ∣ 2 \frac{|E|}{2} 2 ∣ E ∣ .
Therefore, there exists some x ∈ { − 1 , + 1 } n \mathbf{x} \in \{-1, +1\}^n x ∈ { − 1 , + 1 } n such that:
f G ( x ) ≥ ∣ E ∣ 2 f_G(\mathbf{x}) \geq \frac{|E|}{2} f G ( x ) ≥ 2 ∣ E ∣
Knowledge
图论 期望值 极大值
难点解题思路
在第 1 题中,找到使得 f G ( x ) f_G(\mathbf{x}) f G ( x ) 最大的 x \mathbf{x} x 是关键。在处理完全图时,可以通过对称性和顶点划分来简化问题。对于一般图,期望值和线性期望的使用使得问题更易处理。
解题技巧和信息
对于复杂的图论问题,可以通过图的对称性来简化问题。期望值的计算可以利用线性期望的性质,使得问题转化为求和问题。求极大值时,可以考虑图的特殊结构,例如完全图的顶点划分。
重点词汇
graph 图
complete graph 完全图
edge 边
vertex 顶点
expected value 期望值
参考资料
Bollobás, B. (1998). Modern Graph Theory. Springer. Chap. 1-3.