跳到主要内容

東北大学 工学研究科 電気・情報系 2018年3月実施 基礎科目 問題4 情報基礎2

Author

祭音Myyura (assisted by GPT-5)

Description

日本語版

本間では、グラフとは有限無向グラフであり、自己ループ辺および多重辺が存在することは許すものとする。また、次の用語と記号を定義する。

  • 任意のグラフ GG について、GG の点の数を n(G)n(G)、辺の数を m(G)m(G) でそれぞれ表す。
  • 任意のグラフ GG とその点がについて、GG における xx の次数を deg(G,x)\text{deg}(G, x) で表す。
  • グラフ GG 上の任意の歩道 CC について、CC の長さ l(C)l(C)CC が通る辺の延べ総数である。
  • CC をグラフ GG 上の閉じた歩道とするとき、CC11-回路(またはオイラー回路)であるとは、CCGG の各々の辺をちょうど 11 回ずつ通ることを言い、CC22 回路であるとは、CCGG の各々の辺 を 11 回または 22 回通ることを言う。
  • グラフ GG の部分グラフ HH がパリティ部分グラフであるとは、HHGG の全ての点を含み、かつ GG 上の任意の点 xx について、deg(G,x)\text{deg}(G,x)deg(H,x)\text{deg}(H,x) の偶奇が一致することを言う。GG のパリティ部分グラフ HH で辺の数 m(H)m(H) が最も少ないものを最小パリティ部分グラフと言う。

このとき、次の問に答えよ、ただし、必要ならば次の事実 (A),(B) を証明なしに用いてもよい。

  • (A) 連結グラフ GG11-回路を持つためには、 GG の全ての点の次数が偶数であることが必要十分である.
  • (B) 任意の自然数 nn について、nn 個の点から成る木は n1n-1 本の辺を持つ。

(1) GG を連結グラフとする。

  • (a) HHGG の任意のパリティ部分グラフとするとき、GGl(C)=m(G)+m(H)l(C)=m(G)+m(H) となる 22-回路 CC を持つことを示せ。
  • (b) CCGG 上の任意の 22-回路とするとき,GGm(H)=l(C)m(G)m(H)= l(C) - m(G) となるパリティ部分グラフHH を持つことを示せ。

(2) GG を連結グラフ、HH をその最小パリティ部分グラフとする。

  • (a) HH は閉路を持たないことを示せ。
  • (b) GG 上の最も短い 22-回路の長さを μ2(G)\mu_2(G) とするとき、HHm(G)+n(G)μ2(G)m(G)+n(G)-\mu_2(G) 個の連結成分から成ることを示せ。

English Version

In this question, any graph is a finite undirected graph which may have self-loops and multiple edges. Define the folowing terms and symbols:

  • For any graph GG, let n(G)n(G) and m(G)m(G) denote the number of vertices and edges in GG, respectively.
  • For any graph GG and any vertex xx in GG, deg(G,x)\text{deg}(G, x) denotes the degree of xx in GG.
  • For any graph GG and any walk CC on GG, the length l(C)l(C) of CC is the total number of edges that CC passes.
  • For a graph GG and a closed walk CC on GG, CC is a 1-circuit (or an Euler circuit) if CC passes each edge of GG exactly once, and CC is a 2-circuit if CC passes each edge of GG once or twice.
  • A subgraph HH of a graph GG is a parity subgraph if HH contains all vertices of GG and for any vertex xx in GG, deg(G,x)\text{deg}(G, x) and deg(H,x)\text{deg}(H, x) have the same odd-even parity. A parity subgraph HH of GG is a minimum parity subgraph if the number m(H)m(H) of edges in HH is minimum among all parity subgraphs of GG.

Answer the folowing questions. If necessary, the following facts (A) and (B) can be applied without proof.

  • (A) A connected graph GG has a 1-circuit if and only if every vertex of GG is of even degree.
  • (B) For any natural number nn, any tree of nn vertices has n1n-1 edges.

(1) Let GG be any connected graph.

  • (a) Prove that for any parity subgraph HH of GG, GG has a 2-circuit CC such that l(C)=m(G)+m(H)l(C) = m(G) + m(H).
  • (b) Prove that for any 2-circuit CC in GG, GG has a parity subgraph HH such that m(H)=l(C)m(G)m(H) = l(C) - m(G).

(2) Let GG be any connected graph and HH be any minimum parity subgraph of GG.

  • (a) Prove that HH contains no cycle.
  • (b) Let μ2(G)\mu_2(G) denote the length of a shortest 2-circuit in GG. Prove that HH consists of m(G)+n(G)μ2(G)m(G) +n(G) - \mu_2(G) connected components.

题目描述

本题中的图均为有限无向图,允许自环和重边。记图 GG 的顶点数、边数分别为 n(G),m(G)n(G),m(G),顶点 xx 的度为 deg(G,x)\deg(G,x),游走 CC 的长度 l(C)l(C) 为经过边的总次数。

  • 闭游走 CC 若恰好一次经过每条边,称为 1-回路(Euler 回路);若每条边经过一次或两次,称为 2-回路。
  • GG 的生成子图 HH 若包含 GG 的全部顶点,且每个顶点在 G,HG,H 中的度数奇偶性相同,则称为奇偶子图。边数最少的奇偶子图称为最小奇偶子图。

可不加证明地使用:

  • 连通图存在 Euler 回路,当且仅当所有顶点度数均为偶数;
  • nn 个顶点的树有 n1n-1 条边。

回答下列问题。

  1. GG 为连通图。
    1. GG 的任意奇偶子图 HH,证明 GG 存在满足 l(C)=m(G)+m(H)l(C)=m(G)+m(H) 的 2-回路 CC
    2. GG 的任意 2-回路 CC,证明存在奇偶子图 HH 满足 m(H)=l(C)m(G).m(H)=l(C)-m(G).
  2. HH 为连通图 GG 的最小奇偶子图。
    1. 证明 HH 不含闭路;
    2. GG 上最短 2-回路的长度为 μ2(G)\mu_2(G),证明 HH 恰有 m(G)+n(G)μ2(G)m(G)+n(G)-\mu_2(G) 个连通分量。

考点

  • Euler 图判定:通过复制奇偶子图中的边使所有顶点度数变偶。
  • 游走的边重数:由 2-回路中被走两次的边构造奇偶子图。
  • 最小奇偶子图:用删除闭路不改变各顶点度数奇偶性证明其为森林。
  • 森林的边数与分量数:利用 m=ncm=n-c 关联最短 2-回路长度和连通分量数。

Kai

(1)

(a) From a parity subgraph to a 2-circuit and its length

Let HGH\subseteq G be a parity subgraph. Form a multigraph G+G^{+} by adding one parallel copy of every edge of HH to GG. Then for each vertex xx,

degG+(x)=degG(x)+degH(x)0(mod2),\deg_{G^{+}}(x)=\deg_G(x)+\deg_H(x)\equiv 0\pmod 2,

so every vertex of G+G^{+} has even degree. By (A), G+G^{+} has an Euler circuit C+C^{+}.

Read C+C^{+} back in GG by forgetting which of two parallel copies it used.
Every edge of GHG\setminus H is used once; every edge of HH is used twice.
Thus we obtain a 2-circuit CC in GG with

(C)=m(GH)+2m(H)=m(G)+m(H).\ell(C)=m(G\setminus H)+2m(H)=m(G)+m(H).

(b) From a 2-circuit to a parity subgraph and its size

Let CC be any 2-circuit of GG. Define HGH\subseteq G to be the subgraph consisting of the edges that CC uses twice. Then

(C)=m(G)every edge at least once+m(H)edges used twice\ell(C)=\underbrace{m(G)}_{\text{every edge at least once}}+\underbrace{m(H)}_{\text{edges used twice}}
m(H)=(C)m(G)m(H)=\ell(C)-m(G)

To see HH is a parity subgraph, fix a vertex xx. In the closed walk CC, each visit to xx uses two incident edge-ends (enter/leave), and a loop at xx contributes two ends; hence the total number of used edge-ends at xx is even. Modulo 22, this implies the number of incident edges used exactly once at xx is even, i.e.

degG(x)degH(x)(mod2).\deg_G(x)\equiv \deg_H(x)\pmod 2.

Thus HH is a parity subgraph and m(H)=(C)m(G)m(H)=\ell(C)-m(G).

(2) Structure of a minimum parity subgraph

Let HGH\subseteq G be a minimum parity subgraph (minimum number of edges). Let μ2(G)\mu_2(G) be the length of a shortest 2-circuit in GG.

(a) HH has no cycle

If HH contained a cycle ZZ (a loop counts as a 1-cycle), removing all edges of ZZ would decrease the degree of each vertex on ZZ by 22, preserving parity at every vertex. The resulting subgraph would be a parity subgraph with fewer edges, contradicting the minimality of HH. Hence HH is acyclic.

(b) Number of components of HH

From (1a): for any parity subgraph FF there exists a 2-circuit CC with

(C)=m(G)+m(F)μ2(G)m(G)+m(F).\ell(C)=m(G)+m(F)\quad\Rightarrow\quad \mu_2(G)\le m(G)+m(F).

From (1b): for any 2-circuit CC there exists a parity subgraph FF with

m(F)=(C)m(G)minFm(F)μ2(G)m(G).m(F)=\ell(C)-m(G)\quad\Rightarrow\quad \min_F m(F)\le \mu_2(G)-m(G).

Together,

minF paritym(F)=μ2(G)m(G).\min_{F\text{ parity}} m(F)=\mu_2(G)-m(G).

Since HH is minimum, m(H)=μ2(G)m(G)m(H)=\mu_2(G)-m(G).

Because HH is a forest on n(G)n(G) vertices and m(H)m(H) edges, its number of components is

#components(H)=n(G)m(H)(by (B)).\#\text{components}(H)=n(G)-m(H)\quad\text{(by (B))}.

Therefore

#components(H)=n(G)(μ2(G)m(G))=m(G)+n(G)μ2(G).\#\text{components}(H) = n(G)-\bigl(\mu_2(G)-m(G)\bigr) = m(G)+n(G)-\mu_2(G).

Knowledge

The Chinese Postman Problem (CPP) and T-joins could be very useful references.