Discrete Structures
§3 Permutations and Combinations
4 min read
Counting depends on whether order matters and whether repetition is allowed. Those two questions decide whether a problem uses permutations, combinations, or a different model such as stars and bars.
Permutations: order matters
A -permutation of an -element set is an ordered arrangement of distinct elements. There are
such arrangements. The factorial notation means
Example: assigning three offices
From a class of students, choose a president, a vice-president, and a secretary. The offices are different, so order matters:
This is also
When , every element is used. This is a full permutation, and
For example, the set has
permutations.
Combinations: order does not matter
A -combination of an -element set is a subset with exactly elements. Its order does not matter. The notation
is read “ choose ” and is called a binomial coefficient.
Every group of selected elements has possible orders. Dividing the permutation count by removes those repeated arrangements:
Example: forming a committee
A three-student committee from a class of has no assigned offices. The same three students were counted times by the ordered calculation, so
Example: poker hands and flushes
A five-card hand is a set of five cards chosen from a deck of , so the number of hands is
To count five-card hands in which every card has the same suit:
- choose one of the four suits;
- choose five of the thirteen cards in that suit.
The product principle gives
Example: bit strings with four zeros
A length- bit string containing exactly four zeros is determined by the four positions occupied by those zeros. Therefore,
The remaining six positions automatically contain ones.
Stars and bars
Use stars and bars when identical objects are distributed among distinct categories and a category may receive more than one object.
Suppose a store has seven chocolate flavors, and we choose four bars. Purchase order does not matter, and repeated flavors are allowed. Represent each bar by a star and use six dividers to split the stars among seven flavors.
For example,
**|*||*|||represents two bars of the first flavor, one of the second, none of the third, one of the fourth, and none of the last three.
Every purchase corresponds to a string with four stars and six dividers. The string has ten positions, and choosing the four star positions gives
More generally, distributing identical objects among categories gives
possibilities when zero objects in a category are allowed.
Two binomial identities
A combinatorial proof shows that two expressions are equal by showing that they count the same collection in two different ways.
Symmetry
The first identity is
A length- bit string with zeros has ones. We can count the same strings by choosing either:
- the positions occupied by zeros, giving ; or
- the positions occupied by ones, giving .
Both expressions count exactly the same strings, so they are equal.
Pascal's identity
Pascal's identity is
Consider a class of students, including one particular student called student . Count the -student committees by splitting them into two disjoint cases:
- Student is on the committee. Choose the other members from the remaining students, giving committees.
- Student is not on the committee. Choose all members from the remaining students, giving committees.
The cases do not overlap and include every committee. The sum principle gives Pascal's identity.
Pascal's triangle
Pascal's identity calculates each interior binomial coefficient by adding the two entries above it. The boundary values are
The first five rows are
For example,
This gives a recursive way to calculate binomial coefficients using addition instead of factorials.
0 reads
Last edited