Difference between revisions of "Combinatorics"
Quantum leap (talk | contribs) (→Introductory combinatorics) |
Quantum leap (talk | contribs) (→Introductory combinatorics) |
||
Line 15: | Line 15: | ||
The number of '''combinations''' of r objects from a set of n total is the number of ways the r objects can be arranged ''with regard to order.'' | The number of '''combinations''' of r objects from a set of n total is the number of ways the r objects can be arranged ''with regard to order.'' | ||
+ | Consider the set of letters A, B, and C. There are P(3,3)=6 different permutations of those letters. Since order doesn't matter with combinations, there is only one combination of those three. In general, since for every permutation of r objects from n elements P(n,r), there are <math>r!</math> more ways to permute them than to choose them. We have r!C(n,r)=P(n,r)<math>\implies</math> C(n,r)<math>=\frac{P(n,r)}{r!}</math> or C(n,r)<math>=\binom{n}{r}=\frac{n!}{r!(n-r)!}</math> | ||
== Intermediate combinatorics == | == Intermediate combinatorics == | ||
An important result of counting techniques is the formulation of the [[Principle of Inclusion-Exclusion]] (PIE). | An important result of counting techniques is the formulation of the [[Principle of Inclusion-Exclusion]] (PIE). |
Revision as of 22:02, 17 June 2006
Combinatorics is the study of counting.
Introductory combinatorics
The two most basic and fundamental ideas are that of permutations and combinations. In essentials, the permutation is the number of ways to create a subset of a larger set if order matters (i.e. A, B, C is different from A, C, B). Similarly, the combination is the number of ways to create a subset of a larger set if order does NOT matter (i.e. A, B, C is the same as A, C, B).
Factorials
A permutation of a set of r objects is any rearrangement of the r objects with regard to order. To find how many ways we can do this, note that for the first of the r elements, we have n different objects we can choose from. For the second element there are (n-1) objects we can choose, (n-2) for the third and so on. In general, the number of ways to permute r objects from a set of n is given by (by the Fundamental Counting Principle
The number of combinations of r objects from a set of n total is the number of ways the r objects can be arranged with regard to order.
Consider the set of letters A, B, and C. There are P(3,3)=6 different permutations of those letters. Since order doesn't matter with combinations, there is only one combination of those three. In general, since for every permutation of r objects from n elements P(n,r), there are more ways to permute them than to choose them. We have r!C(n,r)=P(n,r) C(n,r) or C(n,r)
Intermediate combinatorics
An important result of counting techniques is the formulation of the Principle of Inclusion-Exclusion (PIE).