Counting Matches, Handshakes and Triangles
Matches in a tournament, handshakes at a meeting, triangles from a fan of lines — three questions that look unrelated but are all asking how many ways two things can be picked from n.
Matches in a tournament, handshakes at a meeting, triangles from a fan of lines — three questions that look unrelated but are all asking how many ways two things can be picked from n.
How many matches in a tournament, how many handshakes at a meeting, how many triangles from a fan of lines — three questions that look unrelated but share one formula. Each is really asking the same thing: how many ways can two things be picked from ?
The number of ways to choose two from is
. If each pair meets more than once, multiply by the number of meetings.
With four teams, each plays the other three:
In general each of the teams meets
others, and the double counting is undone by dividing by
— giving
.
Choosing two teams from with order irrelevant is exactly a combination:
The pairing formula is just written out. Either route gives the same answer, so use whichever is quicker.
In all three settings you are picking two items from with order irrelevant. That is why one formula covers matches, handshakes and triangles alike.
a) A tournament of teams, each pair meeting once
b) A league of players, each pair meeting
times
c) A meeting of people, each shaking hands once with every other
d) Eight lines from one vertex to a straight base
Part (b) is the one to watch. Find the number of pairs first, then multiply by how often each pair meets — never multiply by the meetings before halving.