object

advertisement
Counting Formulae
Formulae (w/o Repetition)
You are given a set with ๐‘› distinct objects.
See: Rosen, Section XX
Brualdi, Sections XX
a (full) Permutation: an ordering of all of the ๐‘› objects
There are ๐‘›! distinct arrangements of this type.
a ๐’Œ-Permutation: an arrangement using ๐‘˜ of the objects
There are
๐‘› โˆ™ (๐‘› − 1) โˆ™ (๐‘› − 2) โ‹ฏ (๐‘› − (๐‘˜ − 2)) โˆ™ (๐‘› − (๐‘˜ − 1)) =
๐‘›!
(๐‘› − ๐‘˜)!
distinct arrangements of this type.
a ๐’Œ-Combination: a selection of ๐‘˜ of the objects (order doesn’t matter)
There are
๐‘›!
๐‘›
( ) = ๐ถ(๐‘›, ๐‘˜) =
๐‘˜
(๐‘› − ๐‘˜)! ๐‘˜!
distinct combinations of this type.
Formulae (with Repetition)
With Unlimited Repetition:
You are given a set with ๐‘› distinct objects. Each object may appear any # of times.
See: Rosen, Section 4.6
Brualdi, Sections 3.4 and 3.5
a ๐’Œ-Permutation: an arrangement of length ๐‘˜
The answer follows directly from the multiplication principle.
There are ๐‘›๐‘˜ distinct arrangements of this type.
a ๐’Œ-Combination: a selection of ๐‘˜ of the objects (order doesn’t matter)
This is our “stars and bars” picture. (See the next page.)
Think of a cash-drawer that uses (๐‘› − 1) bars to create ๐‘› bins (for options)
There are
(๐‘› − 1 + ๐‘˜)!
(๐‘› − 1) + ๐‘˜
(
) = ๐ถ(๐‘› − 1 + ๐‘˜, ๐‘˜) =
(๐‘› − 1)! ๐‘˜!
๐‘˜
distinct combinations of this type.
With Specified Repetition:
The ๐‘– ๐‘กโ„Ž object appears ๐‘š๐‘– times. The total number of objects is given by
๐‘š = ๐‘š1 + ๐‘š2 + โ‹ฏ + ๐‘š๐‘›
a (full) Permutation: an ordering of all of the ๐‘š objects
If the objects were distinct, there would be ๐‘š! distinct arrangements.
However, we must use the “division principle” to account for the fact that they
aren’t distinct.
In the end, there are
๐‘š!
๐‘š1 ! ๐‘š2 ! โ‹ฏ ๐‘š๐‘› !
distinct arrangements of this type.
Combinations with Repetition
Our “stars and bars” presentation is counting the number of possibilities for
making ๐‘˜ selections from ๐‘› options.
For the example of ๐‘˜ = 22, ๐‘› = 7, one possibility would be:
***I*******I**| |****|*|*****
๐‘’1 = 3
๐‘’2 = 7
๐‘’3 = 2
๐‘’4 = 0
๐‘’5 = 4
๐‘’6 = 1
๐‘’7 = 5
objects in the first bin
objects in the second bin
objects in the third bin
objects in the fourth bin
objects in the fifth bin
objects in the sixth bin
objects in the seventh bin
Where we need a total of ๐‘˜ = ๐‘’1 + ๐‘’2 + ๐‘’3 + ๐‘’4 + ๐‘’5 + ๐‘’6 + ๐‘’7 = 22 selections.
The number of distinct ways of selecting 22 objects from 7 possibilities is:
๐Ÿ• − ๐Ÿ + ๐Ÿ๐Ÿ
(
) = ๐‘ช(๐Ÿ• − ๐Ÿ + ๐Ÿ๐Ÿ, ๐Ÿ๐Ÿ)
๐Ÿ๐Ÿ
Download