東京大学 情報理工学系研究科 コンピュータ科学専攻 2020年8月実施 専門科目 問題1
Author
Description
In undirected graphs, a self-loop is an edge connecting the same vertex, and multi-edges are multiple edges connecting the same pair of vertices. From now on, we consider undirected graphs without self-loops and possibly with multi-edges. We say that a graph
B-operation
When two multi-edges connect a pair of vertices, replace the multi-edges with a single edge connecting the pair of vertices.
C-operation
When one edge connects vertices
Answer the following questions.
(1) Let
(2) Show that every
(3) Give the maximum number of edges of an
(4) Give an
Kai
(1)
(2)
Planar graphs are graphs that can be embedded in the plane without edge crossings.
Every
- The
-operation simplifies the graph by removing multi-edges, which does not affect planarity. - The
-operation reduces the number of vertices while maintaining planarity because it replaces a vertex of degree 2 with a single edge, which is a planar transformation.
Since a single edge is trivially planar and the operations preserve planarity, every
(3)
The maximum number of edges in an
Proof:
- In an
-graph, the -operation reduces multi-edges to a single edge, and there are no multi-edges in the final graph. - The
-operation reduces the number of vertices by 1 while maintaining the number of edges. Therefore, the number of edges in the final graph is .
(4)
To determine if a given undirected graph with
- Graph Representation: Use an adjacency list to store the graph. This allows efficient traversal and modification.
- Initialize: Mark all vertices as unvisited.
- Identify and Apply
-operation: - For each pair of vertices, check for multi-edges.
- If multi-edges exist, replace them with a single edge.
- Identify and Apply
-operation: - Traverse the graph to identify vertices of degree 2.
- For each vertex
with degree 2 connecting vertices and , remove and replace edges and with a single edge .
- Repeat Steps 3 and 4 until no more
or operations can be applied. - Check Result: If the graph reduces to a single edge, it is an
-graph. Otherwise, it is not.
Graph Data Structures:
- Adjacency List: Efficiently stores the graph and allows for quick traversal and edge modification.
- Degree List: Maintains the degree of each vertex for quick identification of vertices suitable for the
-operation.
The algorithm runs in
Knowledge
图论 平面图 算法
难点解题思路
识别和应用
解题技巧和信息
对于确定图的性质问题,特别是涉及特定操作的图,可以通过模拟操作并逐步简化图结构来判断。理解操作对图结构的影响是关键。
重点词汇
- Self-loop 自环
- Multi-edges 多重边
- Planar 平面
- Complete graph 完全图
- Algorithm 算法
参考资料
- "Introduction to Graph Theory" by Douglas B. West, Chapter 4
- "Graph Theory" by Reinhard Diestel, Chapter 5