Slotting
For situations where we want objects to be separated, we can employ the slotting method.
Technique: the slotting method
Let us consider the example of rearranging five objects and where and must be separated.
Step 1: Rearrange the remaining 3 objects first: ways.
Step 2: We observe that there are 4 “slots” that and can then go into if they are to be separated. Choosing 2 slots for them and rearranging among themselves, we have ways.
Hence the number of ways
Slotting vs complement
In addition to the slotting method, the complement method can also be used. Take the earlier example of rearranging five objects and where and must be separated. Using the slotting method gives us ways.
If we consider the complement of and separated, that means and must be together. Then we can use the complement and grouping methods to get ways.
Unsurprising, both methods give us the same answer: they are simply two ways of counting the same event.
However, now let us consider a case of three objects out of six
The slotting method gives us ways.
The complement method gives us ways.
They are different because the slotting method gives us a situation where are separated/not next to one another.
Meanwhile, the complement method gives us a situation where are not all together. We cannot have all three of them together but two of them together is allowed as well. This is in contrast to the slotting method where only the first case is allowed (and is thus a subset, giving us a smaller number).
Example: rearranging people
Question
A group of 6 people consists of 3 married couples. Find the number of different possible orders for the group to stand in a line if
- there are no restrictions,
- each married man stands next to his wife,
- no two woman is next to one another.
Solution
- Required number of ways
We group each couple, so we have 3 objects overall. We can also rearrange the couple among themselves for each couple.
Required number of ways
We sit the men first. We then slot the 3 women into 4 “slots”.
Required number of ways
Advanced technique: alternating arrangements
We can modify the slotting method to alternate objects.
For example, consider arranging 3 men and 3 women in a line such that they alternate. We arrange the men first just like before (3!). However, instead of having ways to choose where the women can sit, alternating imposes a stricter condition: we can either have or Thus there is only 2 ways to alternate.
Hence the number of ways to alternate the men and women
If we have 3 men and 4 women, however, we don’t even have 2 ways to alternate like before. The arrangment must be (1 way).
Hence the number of ways to alternate the men and women