Let G=(V,E) be a simple undirected graph with the vertex set V={vi∣i=1,…,n} and edge set E. For an n-dimensional vector x=(x1,…,xn)∈{−1,+1}n, define fG(x) by
fG(x)=(vi,vj)∈E∑21−xixj.
Answer the following questions.
(1) For the case where G is a complete graph Kn of n vertices, compute an=maxx∈{−1,+1}nfG(x).
(2) Let Kn and an be those given in question (1). Let bn be the number of edges of Kn. Compute
n→∞limbnan.
(3) Let G be an arbitrary simple undirected graph. When each xi takes a value of either −1 or +1 with probability 21 independently, compute the expected value of fG(x). You may use the linearity of expectation.
(4) Show that, for any simple undirected graph G, there exists some x∈{−1,+1}n such that
fG(x)≥2∣E∣.
Here, ∣E∣ denotes the number of edges of G.
令 G=(V,E) 为一个简单无向图,其顶点集为 V={vi∣i=1,…,n},边集为 E。对于一个 n 维向量 x=(x1,…,xn)∈{−1,+1}n,定义 fG(x) 为
fG(x)=(vi,vj)∈E∑21−xixj.
回答以下问题。
(1) 当 G 是一个 n 个顶点的完全图 Kn 时,计算 an=maxx∈{−1,+1}nfG(x)。
For G=Kn, a complete graph with n vertices, every pair of distinct vertices is connected by an edge. Thus, the edge set E has (2n)=2n(n−1) edges.
To compute an=maxx∈{−1,+1}nfG(x), consider the definition of fG(x):
fG(x)=(vi,vj)∈E∑21−xixj.
For each edge (vi,vj), the term 21−xixj is either 0 or 1:
21−xixj={01if xi=xjif xi=xj
To maximize fG(x), we need to maximize the number of edges where xi=xj. Let k be the number of vertices where xi=1, and n−k be the number of vertices where xi=−1.
The number of edges between vertices with xi=1 and xj=−1 is k(n−k). Therefore:
fG(x)=k(n−k).
We need to maximize k(n−k). The function k(n−k) is a quadratic function in k with its maximum value when k=2n.
Let G=(V,E) be an arbitrary simple undirected graph, and x=(x1,…,xn)∈{−1,+1}n with each xi taking values −1 or 1 independently with probability 21.
To find the expected value of fG(x), use the linearity of expectation:
To show that there exists some x∈{−1,+1}n such that fG(x)≥2∣E∣, consider the expected value derived in Question 3.
We have:
E[fG(x)]=2∣E∣
Since E[fG(x)] is the average value of fG(x) over all possible x∈{−1,+1}n, there must be at least one particular x∈{−1,+1}n for which fG(x)≥2∣E∣. Otherwise, the average value could not be 2∣E∣.
Therefore, there exists some x∈{−1,+1}n such that: