プリンキピア

第12章グラフ理論

Factorials階乗

In many areas of mathematics, we must calculate products like 7⋅6⋅5⋅4⋅3⋅2⋅1 or 11⋅10⋅9⋅8⋅7⋅6⋅5⋅4⋅3⋅2⋅1, products that involve multiplying all the counting numbers from a particular number down to 1. Imagine that the product happened to be all the numbers from 100 down to 1. That’s a lot of writing! Instead of writing all of that out, mathematicians came up with a shorthand notation. For example, instead of 7⋅6⋅5⋅4⋅3⋅2⋅1, we write 7!, which is read “7 factorial.” In other words, the product of all the counting numbers from n down to 1 is called n factorial and it is written n!
英語のヒント
数学の多くの分野で、7⋅6⋅5⋅4⋅3⋅2⋅1や11⋅10⋅9⋅8⋅7⋅6⋅5⋅4⋅3⋅2⋅1のような積を計算しなければならない。ある数から1までのすべての自然数を掛ける積である。その積がたまたま100から1までのすべての数だったと想像しよう。書くのが大変である!それをすべて書き出す代わりに、数学者は略記法を考え出した。たとえば、7⋅6⋅5⋅4⋅3⋅2⋅1の代わりに7!と書き、「7の階乗」と読む。言いかえると、nから1までのすべての自然数の積をnの階乗といい、n!と書く。
Example 12.34例題 12.34

Evaluating Factorials階乗を計算する

Evaluate n! and (n−1)! for n=4.
英語のヒント
n=4のとき、n!と(n−1)!を計算せよ。
Solution解答
n!=4!=4⋅3⋅2⋅1=24 and (n−1)!=(4−1)!=3!=3⋅2⋅1=6
英語のヒント
n!=4!=4⋅3⋅2⋅1=24と(n−1)!=(4−1)!=3!=3⋅2⋅1=6
A common use for factorials is counting the number of ways to arrange objects. Suppose that there were three students, Aryana, Byron, and Carlos, who wanted to line up in a row. How many arrangements are possible? There are six possibilities: ABC, ACB, BAC, BCA, CAB, or CBA. Notice that there were three students being arranged, and the number of possible arrangements is three.
英語のヒント
階乗のよくある使い方は、物を並べる方法の数を数えることである。アリアナ、バイロン、カルロスの3人の学生が1列に並びたいとする。並び方はいくつありうるか。ABC、ACB、BAC、BCA、CAB、CBAの6通りがある。並べる学生は3人で、ありうる並び方の数は3であることに注意しよう。
Example 12.35例題 12.35

Counting Arrangements of Letters文字の並べ方を数える

Find the number of ways to arrange the letters a, b, c, and d.
英語のヒント
文字a、b、c、dを並べる方法の数を求めよ。
Solution解答
4!=4⋅3⋅2⋅1=24

Counting Hamilton Cycles in Complete Graphs完全グラフのハミルトン閉路を数える

Now, let’s get back to answering the question of how many Hamilton cycles are in a complete graph. In Table 12.8, we have drawn all the four cycles in a complete graph with four vertices. Remember, cycles can be named starting with any vertex in the cycle, but we will name them starting with vertex a.
英語のヒント
では、完全グラフにハミルトン閉路はいくつあるかという問いに答える話に戻ろう。表12.8に、頂点が4個の完全グラフの4閉路をすべて描いた。閉路は閉路のどの頂点から始めても名づけられることを思い出そう。ただし、ここでは頂点aから始めて名づける。
Table 12.8表12.8
Four-Cycles in Complete Graph with Four Vertices
英語のヒント
頂点が4個の完全グラフの4閉路
Complete Graph完全グラフCycle閉路Cycle閉路Cycle閉路
A graph with four vertices, a, b, c, and d. Edges connect a b, b c, c d, d a, a c, and b d.
A graph with four vertices, a, b, c, and d. Edges connect a b, b c, c d, d a, a c, and b d. The edges, a c, and b d are in dashed lines.
A graph with four vertices, a, b, c, and d. Edges connect a b, b c, c d, d a, a c, and b d. The edges, a d, and b c are in dashed lines.
A graph with four vertices, a, b, c, and d. Edges connect a b, b c, c d, d a, a c, and b d. The edges, a b, and d c are in dashed lines.
Cycle Name Clockwise時計回りの閉路名 (a, b, c, d) (a, b, d, c) (a, c, b, d)
Cycle Name Counterclockwise反時計回りの閉路名(a, d, c, b)(a, c, d, b)(a, d, b, c)
Table 12.8 shows that there are three unique four-cycles in a complete graph with four vertices. Notice that there were two ways to name each cycle, one reading the vertices in a clockwise direction and one reading the vertices in a counterclockwise direction. This is important to us because we are interested in Hamilton cycles, which are directed cycles. Although the cycles (a, b, c, d) and (a, d, c, b) are the same cycle, the directed cycles, a → b → c → d → a and a → d → c → b → a, which travel the same route in reverse order are considered different directed cycles, as shown in Table 12.9.
英語のヒント
表12.8から、頂点が4個の完全グラフには異なる4閉路が3つあることがわかる。各閉路には名づけ方が2つあり、1つは頂点を時計回りに読み、もう1つは反時計回りに読むことに注意しよう。私たちが関心をもつのは有向閉路であるハミルトン閉路なので、これは重要である。閉路(a, b, c, d)と(a, d, c, b)は同じ閉路だが、同じ経路を逆の順に進む有向閉路a → b → c → d → aとa → d → c → b → aは、表12.9に示すように異なる有向閉路とみなされる。
Table 12.9表12.9
Hamilton Cycles in a Complete Graph with Four Vertices
英語のヒント
頂点が4個の完全グラフのハミルトン閉路
Complete Graph完全グラフCycle閉路Cycle閉路Cycle閉路
A grah with four vertices, a, b, c, and d. Edges connect a b, b c, c d, d a, a c, and b d.
A grah with four vertices, a, b, c, and d. Edges connect a b, b c, c d, d a, a c, and b d. The edges, a c, and b d are in dashed lines.
A grah with four vertices, a, b, c, and d. Edges connect a b, b c, c d, d a, a c, and b d. The edges, a d, and b c are in dashed lines.
A grah with four vertices, a, b, c, and d. Edges connect a b, b c, c d, d a, a c, and b d. The edges, a b, and d c are in dashed lines.
Clockwise Hamilton Cycle時計回りのハミルトン閉路
A grah with four vertices, a, b, c, and d. Edges connect a b, b c, c d, d a, a c, and b d. The edges, a c, and b d are in dashed lines. Directed edges flow from a to d, d to c, c to b, and b to a.
a → b → c → d → a
A grah with four vertices, a, b, c, and d. Edges connect a b, b c, c d, d a, a c, and b d. The edges, a d, and b c are in dashed lines. The directed edges flow from a to c, c to d, d to b, and b to a.
a → b → d → c → a
A grah with four vertices, a, b, c, and d. Edges connect a b, b c, c d, d a, a c, and b d. The edges, a b, and d c are in dashed lines. The edges flow from a to d, d to b, b to c, c, and c to a.
a → c → b → d → a
Counter-clockwise Hamilton Cycle反時計回りのハミルトン閉路
In this graph, four vertices, a, b, c, and d are present. Edges connect a b, b c, c d, d a, a c, and b d. In this eighth graph, the edges, a c, and b d are in dashed lines. Directed edges flow from a to d, d to c, c to b, and b to a.
a → d → c → b → a
In this graph, four vertices, a, b, c, and d are present. Edges connect a b, b c, c d, d a, a c, and b d. In this ninth graph, the edges, a d, and b c are in dashed lines. The directed edges flow from a to c, c to d, d to b, and b to a.
a → c → d → b → a
In this graph, four vertices, a, b, c, and d are present. Edges connect a b, b c, c d, d a, a c, and b d. In this tenth graph, the edges, a b, and d c are in dashed lines. The edges flow from a to d, d to b, b to c, c, and c to a.
a → d → b → c → a
The six directed four-cycles in Table 12.9 are the only distinct Hamilton cycles in a complete graph with four vertices. Six is also the number of ways to arrange the three letters b, c, and d. (Do you see why?) The number of ways to arrange three letters is 3!=3⋅2⋅1=6. Similarly, the number of Hamilton cycles in a graph with five vertices is the number of ways to arrange four letters, which is 4!=4⋅3⋅2⋅1=24. In general, to find the number of Hamilton cycles in a graph, we take one less than the number of vertices and find its factorial.
英語のヒント
表12.9の6つの有向4閉路は、頂点が4個の完全グラフの異なるハミルトン閉路のすべてである。6は、3つの文字b、c、dを並べる方法の数でもある。(なぜかわかるだろうか。)3つの文字を並べる方法の数は3!=3⋅2⋅1=6である。同様に、頂点が5個のグラフのハミルトン閉路の数は、4つの文字を並べる方法の数で、4!=4⋅3⋅2⋅1=24である。一般に、グラフのハミルトン閉路の数を求めるには、頂点の数より1少ない数をとり、その階乗を求める。
Example 12.36例題 12.36

Counting Hamilton Cycles in a Complete Graph完全グラフのハミルトン閉路を数える

How many Hamilton cycles are in the complete graph in Figure 12.163?
英語のヒント
図12.163の完全グラフにハミルトン閉路はいくつあるか。
Graph L has five vertices: m, n, o, p, and q. All vertices are interconnected.
Figure 12.163図12.163
Complete Graph L
英語のヒント
完全グラフL
Solution解答
There are five vertices in the graph. Using n=5, we have(n−1)!=(5−1)!=4!=4⋅3⋅2⋅1=24 Hamilton cycles.
英語のヒント
グラフには頂点が5個ある。n=5を使うと、ハミルトン閉路は(n−1)!=(5−1)!=4!=4⋅3⋅2⋅1=24個ある。