CBMS-2018-10
题目来源:[[做题/文字版题库/CBMS/2018#Question 10|2018#Question 10]] 日期:2024-07-27 题目主题:CS-图-图论基本性质
Solution
Question 1
Prove that the sum of the vertex degrees of an undirected graph is equal to the number of edges times two.
Solution
In an undirected graph , each edge connects two vertices, contributing to the degree of both vertices. Therefore, each edge increases the sum of the vertex degrees by 2. Mathematically,
where denotes the degree of vertex , and denotes the number of edges. This is known as the Handshaking Lemma.
Question 2
Prove the following proposition: If a graph with vertex set and edge set is a tree, .
Solution
A tree is a connected acyclic graph. For a graph to be a tree, it must satisfy the following properties:
- It is connected.
- It contains no cycles.
- The number of edges .
To prove this, we use induction on the number of vertices .
Base Case: For , there are no edges, so .
Inductive Step: Assume the statement is true for a tree with vertices, i.e., it has edges. Consider adding a new vertex to the tree. To maintain the tree properties, must be connected to exactly one existing vertex, adding one new edge. Thus, the new tree has vertices and edges, maintaining the property .
Hence, by induction, the proposition is proved.
Question 3
Given an undirected graph and a set of edges , the graph is called a spanning tree, if is a tree. Among all spanning trees of a weighted graph, those with the minimum sum of weights are called minimum spanning trees. Show a minimum spanning tree of the following graph.
graph TD;
A(( )) ---|5| B(( ));
A(( )) ---|2| C(( ));
B(( )) ---|7| C(( ));
B(( )) ---|4| D(( ));
B(( )) ---|8| E(( ));
C(( )) ---|9| E(( ));
D(( )) ---|4| E(( ));
Solution
To find the minimum spanning tree, we can use Kruskal’s algorithm or Prim’s algorithm. Here, we will use Kruskal’s algorithm.
-
Sort the edges by weight:
- A-C (2)
- B-D (4)
- D-E (4)
- A-B (5)
- B-C (7)
- B-E (8)
- C-E (9)
-
Select edges in order of weight, ensuring no cycles are formed:
- A-C (2)
- B-D (4)
- D-E (4)
- A-B (5)
Thus, the minimum spanning tree includes edges A-C, B-D, D-E, and A-B.
Question 4
Assume that and are different spanning trees of graph . Prove the following proposition: For any edge , there is an edge such that forms a spanning tree.
Solution
Given two different spanning trees and of graph , and an edge , consider adding to . This addition creates exactly one cycle, since is initially acyclic.
In this cycle, there must be at least one edge that is in but not in (because if every edge in the cycle were in , would not be in the cycle). Removing this edge from breaks the cycle, restoring the tree property.
Therefore, forms a spanning tree.
知识点
重点词汇
- vertex 顶点
- edge 边
- degree 度
- spanning tree 生成树
- minimum spanning tree 最小生成树
- cycle 环
参考资料
- “Introduction to Graph Theory” by Douglas B. West, Chapter 1
- “Graph Theory with Applications” by Bondy and Murty, Section 2.1