girgit.org

Permutations and Combinations

Does order matter? Permutations versus combinations

The big ideaBefore you count anything, ask one question: if I swap two of the chosen things, do I get a different outcome? If yes, order matters and you count permutations; if no, you count combinations.

In simple words

Picking a captain and a vice-captain is not the same as picking two friends to carry the water bottles. In the first, Rohit as captain with Virat as vice-captain is different from Virat as captain with Rohit as vice-captain. In the second, "Rohit and Virat" is just one pair, whichever name you say first. Most wrong answers in this chapter come from mixing up these two kinds of question.

Guess first

A class has 5 students: Asha, Bilal, Chitra, Dev and Esha. Two jobs need doing:

  1. Job A: choose a class monitor and an assistant monitor.
  2. Job B: choose two students to go to a quiz together.

Both jobs pick 2 of the same 5 students. Do they have the same number of possible answers? If not, which has more, and by how much? Decide before you open.

See what happens

Job A has \( 5 \times 4 = 20 \) answers. Asha as monitor with Bilal as assistant is a different result from Bilal as monitor with Asha as assistant.

Job B has only 10: AB, AC, AD, AE, BC, BD, BE, CD, CE, DE. "Asha and Bilal" going to the quiz is the same as "Bilal and Asha".

Job A has exactly twice as many, because each pair of students can be given the two posts in 2 ways. Many students guess "the same", because the same two people are picked. The people are the same; what is different is whether their order carries meaning.

See it: every answer to both jobs as a grid, and how swapping folds one onto the other.

What a combination is

A combination is a selection of some or all of a number of objects in which order does not matter. The number of combinations of \( n \) different objects taken \( r \) at a time is written \( {}^nC_r \) (read "n C r", and in many books also written \( \binom{n}{r} \)).

Look at 4 objects A, B, C, D taken 2 at a time:

Combination (order does not matter)Permutations it gives (order matters)
ABAB, BA
ACAC, CA
ADAD, DA
BCBC, CB
BDBD, DB
CDCD, DC

So \( {}^4C_2 = 6 \), while \( {}^4P_2 = 12 \). Each combination of 2 objects can be put in order in \( 2! = 2 \) ways, which is why \( {}^4P_2 = {}^4C_2 \times 2! \). The next concept turns this into a formula for every \( n \) and \( r \).

The swap test

Pick two of the chosen things and swap them. Is the result a different outcome?

SituationSwap gives something new?Count
Choosing a cricket XI from a squad of 15No: same teamCombination
Fixing the batting order of those 11Yes: opener and No. 11 differPermutation
Arranging the letters of a nameYes: a new stringPermutation
Seating guests at a dinner tableYes: different seatsPermutation
Number plates, PINs, passwordsYes: 1234 is not 4321Permutation
Handshakes at a weddingNo: one handshake either wayCombination
Picking 3 sweets from a box to take homeNo: same three sweetsCombination
Drawing chords between points on a circleNo: chord AB is chord BACombination

Try it: sort these before you read on.

A funny fact: the "combination lock" on a suitcase is badly named. Code 4-7-2 does not open a lock set to 2-7-4, so order matters, and the codes are really permutations.

Handshakes and league matches

Worked example

8 teams play a league in which each pair of teams plays once. How many matches? And if each pair plays twice, once at each team's home ground?

  1. Once per pair: a match between Mumbai and Chennai is the same match as Chennai and Mumbai. Order does not matter. Count pairs: each of 8 teams meets 7 others, giving \( 8 \times 7 = 56 \) ordered pairs, but each match is counted twice, so \( \dfrac{56}{2} = 28 \) matches.
  2. Home and away: now "Mumbai at home to Chennai" differs from "Chennai at home to Mumbai". Order matters: \( {}^8P_2 = 56 \) matches.

The same idea counts handshakes: 10 guests who all shake hands once give \( \dfrac{10 \times 9}{2} = 45 \) handshakes.

Don't mix these up

  • "Choose", "select", "pick a team", "form a committee" usually mean combinations. "Arrange", "line up", "seat", "make a word or number", "give different posts" mean permutations.
  • But the words are only hints. A committee with a president and a secretary has named posts, so order matters. Always do the swap test.
  • For the same \( n \) and \( r \), there are never more combinations than permutations: \( {}^nC_r \le {}^nP_r \).

Try it. Decide "order matters" or "order does not matter" for each, then count. (a) Choosing 2 of 6 friends to share your umbrella. (b) Choosing a winner and a runner-up from 6 singers. (c) The number of straight lines through pairs of 6 points, no three on a line.

Answer
(a) Does not matter: \( \dfrac{6 \times 5}{2} = 15 \). (b) Matters: \( 6 \times 5 = 30 \). (c) Does not matter (line AB is line BA): 15.

Words to know

Combination
A selection where order does not matter.
Selection
Choosing which objects, without putting them in order.
Permutation
An arrangement where order does matter.
\( {}^nC_r \)
The number of combinations of \( n \) different things taken \( r \) at a time.
Swap test
Swap two chosen things: a new outcome means order matters.

A selector picks 4 batters from 7 for a tour. Which count is right?

  1. Permutations, \( {}^7P_4 \)
  2. Combinations, \( {}^7C_4 \)
  3. \( 7^4 \)

At a family function 12 people each shake hands with every other person once. How many handshakes?

  1. 132
  2. 66
  3. 144

Which situation needs a permutation, not a combination?

  1. Choosing 5 kinds of laddoo for a gift box
  2. Counting triangles from 8 points on a circle
  3. Seating 3 passengers in the 3 seats of an auto