跳到主要内容

東京大学 情報理工学系研究科 コンピュータ科学専攻 2022年2月実施 問題2

Author​

zephyr

Description​

Let G=(V,E)G = (V, E) be a simple undirected graph with the vertex set V={vi∣i=1,…,n}V = \{v_i \mid i = 1, \ldots, n\} and edge set EE. For an nn-dimensional vector x=(x1,…,xn)∈{−1,+1}n\mathbf{x} = (x_1, \ldots, x_n) \in \{-1, +1\}^n, define fG(x)f_G(\mathbf{x}) by

fG(x)=∑(vi,vj)∈E1−xixj2.f_G(\mathbf{x}) = \sum_{(v_i, v_j) \in E} \frac{1 - x_i x_j}{2}.

Answer the following questions.

(1) For the case where GG is a complete graph KnK_n of nn vertices, compute an=max⁡x∈{−1,+1}nfG(x)a_n = \max_{\mathbf{x} \in \{-1, +1\}^n} f_G(\mathbf{x}).

(2) Let KnK_n and ana_n be those given in question (1). Let bnb_n be the number of edges of KnK_n. Compute

lim⁡n→∞anbn.\lim_{n \to \infty} \frac{a_n}{b_n}.

(3) Let GG be an arbitrary simple undirected graph. When each xix_i takes a value of either −1-1 or +1+1 with probability 12\frac{1}{2} independently, compute the expected value of fG(x)f_G(\mathbf{x}). You may use the linearity of expectation.

(4) Show that, for any simple undirected graph GG, there exists some x∈{−1,+1}n\mathbf{x} \in \{-1, +1\}^n such that

fG(x)≥∣E∣2.f_G(\mathbf{x}) \geq \frac{|E|}{2}.

Here, ∣E∣|E| denotes the number of edges of GG.


令 G=(V,E)G = (V, E) 为一个简单无向图,其顶点集为 V={vi∣i=1,…,n}V = \{v_i \mid i = 1, \ldots, n\},边集为 EE。对于一个 nn 维向量 x=(x1,…,xn)∈{−1,+1}n\mathbf{x} = (x_1, \ldots, x_n) \in \{-1, +1\}^n,定义 fG(x)f_G(\mathbf{x}) 为

fG(x)=∑(vi,vj)∈E1−xixj2.f_G(\mathbf{x}) = \sum_{(v_i, v_j) \in E} \frac{1 - x_i x_j}{2}.

回答以下问题。

(1) 当 GG 是一个 nn 个顶点的完全图 KnK_n 时,计算 an=max⁡x∈{−1,+1}nfG(x)a_n = \max_{\mathbf{x} \in \{-1, +1\}^n} f_G(\mathbf{x})。

(2) 令 KnK_n 和 ana_n 为问题(1)中给出的。令 bnb_n 为 KnK_n 的边数。计算

lim⁡n→∞anbn.\lim_{n \to \infty} \frac{a_n}{b_n}.

(3) 令 GG 为任意一个简单无向图。当每个 xix_i 独立地以 12\frac{1}{2} 的概率取 −1-1 或 +1+1 时,计算 fG(x)f_G(\mathbf{x}) 的期望值。你可以使用期望值的线性性。

(4) 证明对于任意简单无向图 GG,存在某个 x∈{−1,+1}n\mathbf{x} \in \{-1, +1\}^n 使得

fG(x)≥∣E∣2.f_G(\mathbf{x}) \geq \frac{|E|}{2}.

这里,∣E∣|E| 表示 GG 的边数。

题目描述​

设 G=(V,E)G=(V,E) 为简单无向图, V={vi∣i=1,…,n}V=\{v_i\mid i=1,\ldots,n\}。对 x=(x1,…,xn)∈{−1,+1}n\boldsymbol{x}=(x_1,\ldots,x_n)\in\{-1,+1\}^n,定义

fG(x)=∑(vi,vj)∈E1−xixj2.f_G(\boldsymbol{x}) =\sum_{(v_i,v_j)\in E}\frac{1-x_ix_j}{2}.

回答下列问题。

(1)当 GG 为 nn 个顶点的完全图 KnK_n 时,求

an=max⁡x∈{−1,+1}nfG(x).a_n=\max_{\boldsymbol{x}\in\{-1,+1\}^n}f_G(\boldsymbol{x}).

(2)令 bnb_n 为 KnK_n 的边数,计算

lim⁡n→∞anbn.\lim_{n\to\infty}\frac{a_n}{b_n}.

(3)对任意简单无向图 GG,若各 xix_i 独立地以 1/21/2 概率取 −1-1 或 +1+1,求 fG(x)f_G(\boldsymbol{x}) 的期望。可以使用期望的线性性。

(4)证明对任意简单无向图 GG,存在 x∈{−1,+1}n\boldsymbol{x}\in\{-1,+1\}^n 使

fG(x)≥∣E∣2.f_G(\boldsymbol{x})\ge\frac{|E|}{2}.

Kai​

(1)​

For G=KnG = K_n, a complete graph with nn vertices, every pair of distinct vertices is connected by an edge. Thus, the edge set EE has (n2)=n(n−1)2\binom{n}{2} = \frac{n(n-1)}{2} edges.

To compute an=max⁡x∈{−1,+1}nfG(x)a_n = \max_{\mathbf{x} \in \{-1, +1\}^n} f_G(\mathbf{x}), consider the definition of fG(x)f_G(\mathbf{x}):

fG(x)=∑(vi,vj)∈E1−xixj2.f_G(\mathbf{x}) = \sum_{(v_i, v_j) \in E} \frac{1 - x_i x_j}{2}.

For each edge (vi,vj)(v_i, v_j), the term 1−xixj2\frac{1 - x_i x_j}{2} is either 00 or 11:

1−xixj2={0if xi=xj1if xi≠xj\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}

To maximize fG(x)f_G(\mathbf{x}), we need to maximize the number of edges where xi≠xjx_i \neq x_j. Let kk be the number of vertices where xi=1x_i = 1, and n−kn-k be the number of vertices where xi=−1x_i = -1.

The number of edges between vertices with xi=1x_i = 1 and xj=−1x_j = -1 is k(n−k)k(n-k). Therefore:

fG(x)=k(n−k).f_G(\mathbf{x}) = k(n-k).

We need to maximize k(n−k)k(n-k). The function k(n−k)k(n-k) is a quadratic function in kk with its maximum value when k=n2k = \frac{n}{2}.

Case 1: nn is even​

When nn is even, let k=n2k = \frac{n}{2}. Then:

an=(n2)(n−n2)=(n2)(n2)=n24.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}.

Case 2: nn is odd​

When nn is odd, let k=⌊n2⌋k = \left\lfloor \frac{n}{2} \right\rfloor or k=⌈n2⌉k = \left\lceil \frac{n}{2} \right\rceil. Either way, k(n−k)k(n-k) is maximized when the sizes of the two groups differ by at most one. Therefore:

an=⌊n2⌋(n−⌊n2⌋).a_n = \left\lfloor \frac{n}{2} \right\rfloor \left(n - \left\lfloor \frac{n}{2} \right\rfloor \right).

or

an=⌈n2⌉(n−⌈n2⌉).a_n = \left\lceil \frac{n}{2} \right\rceil \left(n - \left\lceil \frac{n}{2} \right\rceil \right).

Since ⌊n2⌋=(n−12)\left\lfloor \frac{n}{2} \right\rfloor = \left(\frac{n-1}{2}\right) and ⌈n2⌉=(n+12)\left\lceil \frac{n}{2} \right\rceil = \left(\frac{n+1}{2}\right), we have:

an=(n−12)(n+12).a_n = \left(\frac{n-1}{2}\right)\left(\frac{n+1}{2}\right).

Thus:

an=(n−1)(n+1)4=n2−14.a_n = \frac{(n-1)(n+1)}{4} = \frac{n^2 - 1}{4}.

In conclusion:

an={n24if n is evenn2−14if n is odda_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}

(2)​

The number of edges in a complete graph KnK_n is bn=(n2)=n(n−1)2b_n = \binom{n}{2} = \frac{n(n-1)}{2}.

Using the result from Question 1:

an={n24if n is evenn2−14if n is odda_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}

The odd case differs from n2/4n^2/4 by only 1/41/4, so after division by bnb_n the difference tends to zero. Thus both parities have the same limit:

lim⁡n→∞anbn=lim⁡n→∞n24n(n−1)2=lim⁡n→∞n24⋅2n(n−1)=lim⁡n→∞n2(n−1)=lim⁡n→∞12⋅nn−1=12\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}

Thus,

lim⁡n→∞anbn=12\lim_{n \to \infty} \frac{a_n}{b_n} = \frac{1}{2}

(3)​

Let G=(V,E)G = (V, E) be an arbitrary simple undirected graph, and x=(x1,…,xn)∈{−1,+1}n\mathbf{x} = (x_1, \ldots, x_n) \in \{-1, +1\}^n with each xix_i taking values −1-1 or 11 independently with probability 12\frac{1}{2}.

To find the expected value of fG(x)f_G(\mathbf{x}), use the linearity of expectation:

E[fG(x)]=E[∑(vi,vj)∈E1−xixj2]=∑(vi,vj)∈EE[1−xixj2]\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]

Now, consider E[1−xixj2]\mathbb{E}\left[\frac{1 - x_i x_j}{2}\right]:

E[xixj]=E[xi]E[xj]=0⋅0=0\mathbb{E}[x_i x_j] = \mathbb{E}[x_i] \mathbb{E}[x_j] = 0 \cdot 0 = 0

since xix_i and xjx_j are independent and each has expectation 00 (values are −1-1 or 11 with equal probability).

Thus,

E[1−xixj2]=1−E[xixj]2=1−02=12\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}

Therefore,

E[fG(x)]=∑(vi,vj)∈E12=∣E∣2\mathbb{E}[f_G(\mathbf{x})] = \sum_{(v_i, v_j) \in E} \frac{1}{2} = \frac{|E|}{2}

(4)​

To show that there exists some x∈{−1,+1}n\mathbf{x} \in \{-1, +1\}^n such that fG(x)≥∣E∣2f_G(\mathbf{x}) \geq \frac{|E|}{2}, consider the expected value derived in Question 3.

We have:

E[fG(x)]=∣E∣2\mathbb{E}[f_G(\mathbf{x})] = \frac{|E|}{2}

Since E[fG(x)]\mathbb{E}[f_G(\mathbf{x})] is the average value of fG(x)f_G(\mathbf{x}) over all possible x∈{−1,+1}n\mathbf{x} \in \{-1, +1\}^n, there must be at least one particular x∈{−1,+1}n\mathbf{x} \in \{-1, +1\}^n for which fG(x)≥∣E∣2f_G(\mathbf{x}) \geq \frac{|E|}{2}. Otherwise, the average value could not be ∣E∣2\frac{|E|}{2}.

Therefore, there exists some x∈{−1,+1}n\mathbf{x} \in \{-1, +1\}^n such that:

fG(x)≥∣E∣2f_G(\mathbf{x}) \geq \frac{|E|}{2}

Knowledge​

图论 期望值 极大值

难点解题思路​

在第 1 题中,找到使得 fG(x)f_G(\mathbf{x}) 最大的 x\mathbf{x} 是关键。在处理完全图时,可以通过对称性和顶点划分来简化问题。对于一般图,期望值和线性期望的使用使得问题更易处理。

解题技巧和信息​

对于复杂的图论问题,可以通过图的对称性来简化问题。期望值的计算可以利用线性期望的性质,使得问题转化为求和问题。求极大值时,可以考虑图的特殊结构,例如完全图的顶点划分。

重点词汇​

  • graph 图
  • complete graph 完全图
  • edge 边
  • vertex 顶点
  • expected value 期望值

参考资料​

  1. Bollobás, B. (1998). Modern Graph Theory. Springer. Chap. 1-3.