CBMS-2015-10
题目来源:Question 10 日期:2024-08-01 题目主题:CS-图论-二分图
Solution
Question 1: Incidence Matrix of the Graph
The incidence matrix of a graph is a matrix with rows representing the vertices and columns representing the edges, where the entry is 1 if the vertex is incident to the edge, and 0 otherwise.
For the given bipartite graph :
Vertices in group 1 (BLACK_NODES):
Vertices in group 2 (WHITE_NODES):
Edges:
The incidence matrix M is:
Question 2: Perfect Matchings of
A perfect matching in a bipartite graph is a matching that covers all vertices, meaning every vertex is connected to exactly one edge in the matching. For graph , we find all sets of edges such that each vertex is matched exactly once:
Question 3: A Tree is Always a Bipartite Graph
Proof:
To prove that any tree is a bipartite graph, we need to show that its vertices can be divided into two disjoint sets such that no two vertices within the same set are adjacent. We use the method of 2-coloring and mathematical induction to establish this.
Base Case: A tree with a single vertex (trivial tree) is bipartite, as it can be divided into two sets where one set is empty and the other contains the single vertex. Thus, it can trivially be colored using two colors.
Inductive Step: Assume that all trees with vertices are bipartite. We will prove that a tree with vertices is also bipartite.
-
Graph Structure: Let be a tree with vertices. Since is a tree, it is connected and acyclic by definition. Let be a leaf node of (a vertex with degree 1) and be its parent.
-
Inductive Hypothesis: Remove the leaf node and the edge from . The resulting graph is a tree with vertices. By the induction hypothesis, is bipartite. Thus, there exists a 2-coloring of such that no two adjacent vertices share the same color.
-
Coloring : Extend the 2-coloring from to by assigning to the opposite color of . This extension is valid because:
- is only adjacent to (since is a leaf).
- was already assigned a color in .
Thus, can be colored using two colors without any two adjacent vertices sharing the same color.
Conclusion: Since the base case holds and the inductive step shows that if any tree with vertices is bipartite, then any tree with vertices is also bipartite, by mathematical induction, all trees are bipartite graphs. This means that the vertex set of any tree can be partitioned into two sets where no two vertices within the same set are adjacent.
Question 4: A Bipartite Graph Does Not Contain a Circuit with an Odd Number of Edges
Proof:
Assume for contradiction that a bipartite graph contains an odd cycle.
- In a bipartite graph, the vertices can be divided into two sets, and , where every edge connects a vertex from to .
- Consider a cycle starting from a vertex . As we traverse the cycle, we must alternate between and .
- If the cycle length is odd, then when we return to the starting vertex , we should have traversed an even number of edges to reach a vertex in , as every two steps should take us back to a vertex in the same set.
However, since the cycle is odd, an odd number of edges would require the last vertex to be in the opposite set (i.e., in if starting from ), contradicting the assumption that the cycle is closed and returns to .
Thus, a bipartite graph cannot contain an odd cycle.
知识点
重点词汇
- Bipartite graph: 二分图
- Incidence matrix: 关联矩阵
- Matching: 匹配
- Perfect matching: 完美匹配
- Tree: 树
- Cycle: 回路
参考资料
- “Graph Theory with Applications” by Bondy and Murty, Chap. 2
- “Introduction to Graph Theory” by Douglas B. West, Chap. 1 and 4