プリンキピア

第12章グラフ理論

12.7 Hamilton Cycles12.7 ハミルトン閉路

A 3D model of an icosahedron.
Figure 12.155図12.155
The symmetries of an icosahedron, with 30 edges, 20 faces, and 12 vertices, can be analyzed using graph theory. (credit: "Really big icosahedron" by Clayton Shonkwiler/Wikimedia, CC BY 2.0)
英語のヒント
辺が30本、面が20、頂点が12個ある二十面体の対称性は、グラフ理論を使って分析できる。(出典:Clayton Shonkwiler の “Really big icosahedron”/Wikimedia、CC BY 2.0)

Learning Objectives学習目標

After completing this section, you should be able to:
英語のヒント
この節を終えると、次のことができるようになる。
  1. Describe and identify Hamilton cycles.
    英語のヒント
    ハミルトン閉路を述べて見きわめる。
  2. Compute the number of Hamilton cycles in a complete graph.
    英語のヒント
    完全グラフのハミルトン閉路の数を計算する。
  3. Apply and evaluate weighted graphs.
    英語のヒント
    重みつきグラフを当てはめて評価する。
In Euler Circuits and Euler Trails, we looked for circuits and paths that visited each edge of a graph exactly once. In this section, we will look for circuits that visit each vertex exactly once. Like many concepts in graph theory, the idea of a circuit that visits each vertex once was inspired by games and puzzles. As early as the 9th century, Indian and Islamic intellectuals wondered whether it was possible for a knight to visit every space on a chess board of a given size, which is equivalent to visiting every vertex of a graph that represents the chess board.
英語のヒント
オイラー回路とオイラー小道では、グラフの各辺をちょうど1回訪れる回路とパスを探した。この節では、各頂点をちょうど1回訪れる回路を探す。グラフ理論の多くの概念と同じように、各頂点を1回訪れる回路という考えはゲームとパズルから生まれた。早くも9世紀に、インドとイスラムの知識人は、ナイトが与えられた大きさのチェス盤のすべてのマスを訪れることが可能かどうかを考えた。これは、チェス盤を表すグラフのすべての頂点を訪れることと同じである。
In 1857, a mathematician named William Rowan Hamilton invented a puzzle in which players were asked to find a route along the edges of a dodecahedron (see Figure 12.156), which visited every vertex exactly once. Let’s explore how graph theory provides insight into these games as well as practical applications such as the Traveling Salesperson Problem.
英語のヒント
1857年、ウィリアム・ローワン・ハミルトンという数学者が、十二面体(図12.156を参照)の辺に沿って、すべての頂点をちょうど1回訪れる経路を見つけるよう遊び手に求めるパズルを発明した。グラフ理論が、これらのゲームと、巡回セールスパーソン問題のような実用的な応用にどのような洞察を与えるかを探ろう。
A 3D illustration of a truncated icosahedron, a polyhedron with pentagonal and hexagonal faces, rendered in shades of gray and blue.
Figure 12.156図12.156
A Dodecahedron
英語のヒント
十二面体

Hamilton’s Puzzleハミルトンのパズル

Before we look at the solution to Hamilton's puzzle, let’s review some vocabulary we used in Figure 12.157. It will be helpful to remember that directed cycle is a type of circuit that doesn’t repeat any edges or vertices.
英語のヒント
ハミルトンのパズルの解を見る前に、図12.157で使った用語を見直そう。有向閉路は、辺も頂点も繰り返さない回路の一種であることを覚えておくと役に立つ。
Three concentric ovals represent directed cycles, circuits, and closed walks. The first (inner) oval labeled directed cycles (closed paths) reads, no repeated edges or vertices. The second oval labeled circuits (closed talks) reads, no repeated edges. The third oval is labeled closed walks.
Figure 12.157図12.157
Closed Walks, Circuits, and Directed Cycles
英語のヒント
閉じた歩道、回路、有向閉路
The goal of Hamilton's puzzle was to find a route along the edges of the dodecahedron, which visits each vertex exactly once. A dodecahedron is a three-dimensional space figure with faces that are all pentagons as we saw in Figure 12.156.
英語のヒント
ハミルトンのパズルの目標は、十二面体の辺に沿って、各頂点をちょうど1回訪れる経路を見つけることだった。十二面体は、図12.156で見たように、面がすべて五角形である3次元の空間図形である。
Since it is easier to visualize two dimensions rather than three, we will flatten out the dodecahedron and look at the edges and vertices on a flat surface. Graph A in Figure 12.158 shows a two-dimensional graph of the edges and vertices, and Graph B shows an untangled version of Graph A in which no edges are crossing. Graph B in Figure 12.158 is very similar to the design of the game board that Hamilton invented for his puzzle.
英語のヒント
3次元より2次元のほうが思い描きやすいので、十二面体を平らにのばし、平らな面の上で辺と頂点を見よう。図12.158のグラフAは辺と頂点の2次元のグラフを示し、グラフBはグラフAをほどいて辺が交差しないようにした版を示している。図12.158のグラフBは、ハミルトンがパズルのために発明したゲーム盤のデザインにとてもよく似ている。
Two graphs are labeled graph A and graph B. Graph A highlights the edges of a dodecahedron. Graph B highlights the vertices of a dodecahedron.
Two figures. The first figure is a 2 D view of a dodecahedron. The edges are highlighted. The second figure is a 3 D view of a dodecahedron. The edges in the front face are highlighted.
Untangle graphグラフをほどく
Two graphs are labeled graph A and graph B. Graph A highlights the edges of a dodecahedron. Graph B highlights the vertices of a dodecahedron.
Figure 12.158図12.158
Graph of Edges and Vertices of Dodecahedron
英語のヒント
十二面体の辺と頂点のグラフ
We can see that this is a planar graph because it can be “untangled.” In order to solve Hamilton’s puzzle, we need to find a circuit that visits every vertex once. A solution is shown in Figure 12.159.
英語のヒント
これは「ほどける」ので平面グラフであることがわかる。ハミルトンのパズルを解くには、すべての頂点を1回訪れる回路を見つける必要がある。解の1つを図12.159に示す。
A 2 D view of a dodecahedron. The edges are highlighted.
An arrow pointing to the right.
In three Dimensions3次元で
>
Two figures. The first figure is a 2 D view of a dodecahedron. The edges are highlighted. The second figure is a 3 D view of a dodecahedron. The edges in the front face are highlighted.
Figure 12.159図12.159
A Solution to Hamilton’s Puzzle
英語のヒント
ハミルトンのパズルの解の1つ
A circuit that doesn’t repeat any vertices, like the one in Figure 12.159, is called a directed cycle. So, we can most accurately say that Hamilton’s puzzle asks us to find a directed cycle that visits every vertex in a graph exactly once. Because Hamilton created and solved this puzzle, these special circuits were named Hamilton cycles, or Hamilton circuits.
英語のヒント
図12.159の回路のように頂点を繰り返さない回路を、有向閉路という。だから、ハミルトンのパズルは、グラフのすべての頂点をちょうど1回訪れる有向閉路を見つけることを求めているといちばん正確に言える。ハミルトンがこのパズルを作って解いたので、これらの特別な回路はハミルトン閉路、またはハミルトン回路と名づけられた。