Professional Documents
Culture Documents
Permutations and Combinations Undercounts and Ov
Permutations and Combinations Undercounts and Ov
We have been looking at some combinatorics questions, both easy and challenging. Some questions have come to
us in recent weeks that can illustrate how to think your way through relatively difficult problems, including Recent Blog Posts
catching errors and interpreting a textbook’s solutions. We’ll see yet again that there are usually multiple ways to
solve these, and the book’s way is not always the best. Clarifying Definitions: Triangle, Rectangle,
Circle
Find the number of words made using all the letters of the word “MISSISSIPPI” such that both P’s
are together but all I’s are separate.
Blog Archive
I solved this question like this:
Firstly I have permuted M, S, S, S, S as (5!/4!) [I have applied the concept of permutation of alike February 2023 (2)
objects taken all at a time] January 2023 (4)
So, as there are 5 objects in total, hence, the total gaps created is 6. December 2022 (5)
Firstly I have permuted M, S, S, S, S as (5!/4!) [I have applied the concept of permutation of alike July 2020 (8)
objects taken all at a time] June 2020 (9)
So, as there are 5 objects in total. Hence, the total gaps created is 6. May 2020 (8)
I suspect that the book’s author used the multiset permutation formula to arrange MSSSS[PP], followed by our
insertion of the I’s. Categories
Also, can you please tell me what should I check or do in order to avoid such errors in future? Tags
Again, a well-asked question, showing his thinking along with the problem and the provided answer, so we have
Algorithms Alternatives
all we need. He got 8580, while they say 4884. Why?
Ambiguity Assumptions
Doctor Rick responded:
Averages Challenges
I thought first of the same approach you took. Then I considered it more carefully, looking to see if I had
Checking Combinatorics
missed any possibilities or if I had counted any selection more than once.
I then realized that I was overcounting, and here’s why: You’re selecting four bowlers to include first, Complex numbers Context
and then maybe the fifth bowler will be among the remaining 7 players you choose. But if you chose a
different set of four bowlers to start, and then the fifth bowler, you’d end up with the same set of 11
Counting Curiosity
players — you just picked all five bowlers in a different order.
Definitions Derivatives
More specifically:
Estimation Factors Fibonacci
Say the five bowlers are A, B, C, D, and E. When you select four bowlers, you might get A, B, D, and E. Formulas Fractions
Then when you select 7 more players, you might get C — or you might not. If you do, then you get the
same set of players as if you had first selected B, C, D, and E, then got A as one of the 7 more players.
Functions Graphing History
So you have counted this same set of players more than once. (In fact you counted it five times, one for
each bowler you could have left out of the initial selection of bowlers (and then gotten among the other
Inconsistency Induction
seven).
This is the essence of overcounting: selecting in such a way that the same selection can be made in more than one Methods Mistakes Models
way, so that it is counted more than once. There are several ways to fix this: you can do this, but then correct the
overcount as an additional step (this is what the inclusion-exclusion principle does, subtracting the excess that was Notation Pedagogy
added); or you can break things down into cases, adding together counts that do not overlap.
Since we know the book’s answer, we can also try to learn from that: PEMDAS Primes Proof
Navneet sees this method of solution as paralleling his previous method; how can one be right and the other
wrong?
As I have said before, I do not “see clearly the method of selection used”, based only on the solution
given. I have to think about it.
I take it that the 3C1 refers to selecting one of the letters A, L, B for the first letter of the word (it can’t be
H, and it can’t be D because that is taken). Personally, I’d just put 3 ways of choosing the first letter.
The (1) surely represents the number of choices for the last letter (it must be D).
Now, the two middle letters remain to be selected from a pool of three remaining letters (since we’ve
used two of the five letters already). The order of these two letters does matter, so we use
permutations: 3P2 = 6. According to the method you have evidently been taught, this is 3C2 * 2!.
The “undercounting” to which you refer is because, if we don’t take order of the middle two letters into
account, the words BLAD and BALD (for example) would be counted as the same word. We don’t want
to do that, so we must multiply by 2! (the number of different orderings of any two different letters).
So the “undercounting” he sees here is an entirely different kind than we had before, relating only to the difference
between combinations and permutations: combinations ignore order, and we don’t want to. It appears that Navneet
has been taught these concepts in a different way than we are accustomed to, perhaps not even using a notation for
permutations at all but building everything on the concept of combinations. I think of permutations as more
n!
fundamental and natural, so that we start with n P n = n! , generalize to n P r = , and then (because each
(n − r)!
nPr
combination corresponds to all possible permutations of the result) n C r = .
rPr
I now understand that there is no clear cut formula or method to check overcounting, and every time we
need to use our logic/thinking to prevent overcounting.
While solving this question – “Find the number of 4 letter words that can be formed using the letters
A,L,H,B,D such that the letter ends with D but does not begin with H.”
I am asking this because in the question the position of only one letter “D” is fixed.
So, there are remaining 3 places. Hence, we need to multiply with 3! in order to get the total number or
arrangement.
And if we multiply by 2! then we permute between only two of the selected letters, not three. Hence, our
answer must be wrong (because of less counting). Isn’t it?
That’s true: There is no substitute for thinking! Formulas and rote procedures are useful when you’re
doing the exact same type of problem over and over; but that’s not usually the case with counting
problems. Each has something different about it, and it isn’t easy to choose a valid approach.
Likely it is an over-reliance on a taught procedure that led to the error. Doctor Rick continued:
Recall the procedure by which I found the answer last time. First we choose the last letter, because
it must be D. Then we choose the first letter, because it has a special condition: it can’t be H (or D,
since that must be used for the last letter). This leaves the middle two letters. Trying to follow the
procedure you seem to be learning, I pick a pair of letters out of the three remaining (in 3C2 ways), and
then multiply by 2! to get the number of orderings of those two letters.
Doing it my own way, I put D in the fourth position (1 choice), then choose one of the letters A, L, B to
go in the first position (3 choices). Then I choose one of the remaining three letters (H and those I didn’t
use from A, L, B) — 3 choices again. Finally I choose one of the two letters left, for the third position.
If it isn’t clear yet, note that we need to treat the first position differently from the middle two, because it
has an added condition: it can’t be H. If I were to multiply by 3! instead of 2!, it would correspond to
permuting the first three letters; but then I might be moving an H into the first position where it can’t be.
This is the fill-in-the-blanks approach, where we don’t try to follow a formulaic method, but just break the
problem down into a series of choices (permutation-first, we might say — taking order into account as long as
possible, rather than this teacher’s combination-first approach, multiplying by a factorial at the end).
It is correct to take care that we don’t move the letter H into the first position by multiplying with 3!.
But, don’t you think we have missed some cases by just only multiplying with 2! ?
Because when we multiply with 3!, then, there are some extra cases when we are not moving the letter
H to the first position.
Like,
ALHD——-to———>LHAD
So, don’t you think we are going to miss many such cases if we just multiply with 2!? (or don’t permute
the first position)
Here was the problem — modified by stating the assumption that seems to be made in the textbook’s
solution:
Find the number of 4 letter words that can be formed using the letters A, L, H, B, D no more than
once each, such that the letter ends with D but does not begin with H.
Since the claimed answer is so small (18), we can just list all the 4-letter words that fit the condition:
We multiply by 2! after we have already dealt with all the possibilities for the first letter, A, B, or L (the
factor 3C1 in the textbook’s solution) and we have selected two of the remaining 3 letters for the middle
two positions (the factor 3C2).
You’ll see that my list above consists of six words beginning with A, six beginning with B, and six
beginning with L. Let’s focus on the six words beginning with L. There are 3C2 = 3 choices for the pair
of letters in the middle: {A, B}; {A, H}; {B, H}. Each pair can be in either order: AB or BA; AH or HA; BH
or HB. That’s the factor of 2!.
You note that some permutations of the first 3 letters are valid — those that don’t put H in the first
position. If H is not one of the middle two letters, then we could permute freely among all the first 3
letters, making 6 words. But there are two problems with this.
First, in order to use the multiplication principle, the number of choices must not depend on other
choices — but I just said that multiplying by 3! only works when H is not in the pair chosen for the
middle two letters.
Second, we will be overcounting: for instance, we can choose L for the first letter and {A, B} for the
middle two, or A for the first letter and {L, B} for the middle two, and get LABD by permuting the first
three letters in both cases. Thus LABD would be counted twice.
FRED
NOVEMBER 23, 2019 AT 3:17 PM
It doesn’t seem that the word problem stated if repetition was / was not allowed. This will obviously affect the
answer.
Reply
DAVE PETERSON
NOVEMBER 23, 2019 AT 5:22 PM
The second, selecting a cricket team, clearly does not allow repetition, as a person can’t be on the same team
more than once.
The third, making four-letter words, as stated left it unclear whether duplicate letters were allowed (so this is
clearly what you were referring to); but Doctor Rick at the end restated it, making his assumption explicit:
“Find the number of 4 letter words that can be formed using the letters A, L, H, B, D no more than once
each, such that the letter ends with D but does not begin with H.” He made this assumption because it made
the book’s answer correct!
So, yes, as you indicate, removing that condition would change the answer, and the book definitely should
have stated it. My suspicion is that this problem was given in a context where all problems were permutations
of some sort, so that it was assumed. (In face-to-face interactions with students, I often look at the context in
their book to check for such contextual assumptions, or instructions at the start of a set of exercises, in order
to make sure I am interpreting a problem correctly.)
Reply
Leave a Comment
Your email address will not be published. Required fields are marked *
Type here..
Post Comment »
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Copyright © 2023 The Math Doctors | Powered by Astra WordPress Theme Email