Graduate → Discrete Mathematics → Combinatorics ↓
Permutations and Combinations
In the exciting world of discrete mathematics, two fundamental concepts - permutations and combinations - play a vital role in understanding how we can count and arrange the various elements in a set. These basic ideas not only come in handy in pure mathematical theories, but also find wide applications in statistics, computer science, cryptography, and other fields.
Understanding the basics
Before diving deeper into permutations and combinations, let's define what each one intuitively means:
- Permutation refers to the different ways in which objects or numbers can be arranged or ordered.
- Combinations are different ways of selecting items from a set, where the order does not matter.
To understand these concepts, let us understand each one step by step and go through definitions, formulas, and examples to see how they differ.
Permutation
A permutation is an arrangement of all or part of a group of objects, with respect to the order of the arrangement. The simplest example of a permutation is the arrangement of numbers. For example, given the numbers 1, 2 and 3, the permutations of these three could be: 123, 132, 213, 231, 312 and 321. Note that changing the order produces a different arrangement, hence a different permutation.
Mathematical expression of permutation
Generally, if we have a set of n
different items, and we want to know how many ways we can arrange r
of the n
items, we use permutations. The formula for permutations, usually denoted as P(n, r)
or nPr
, is given as:
P(n, r) = n! / (n-r)!
where n!
(n factorial) is the product of all positive integers up to n
.
Example of permutation
Let us consider an example to understand this concept better:
Suppose we want to know in how many ways we can arrange 3 out of 5 books on a shelf. Here, n = 5
and r = 3
Using the permutation formula:
P(5, 3) = 5! / (5-3)! = 5! / 2! = (5 x 4 x 3 x 2 x 1) / (2 x 1) = 60
Thus, there are 60 different ways to arrange 3 of 5 books on a shelf.
Visual example of permutation
To see this, consider the set of letters {A, B, C}
. The permutations of this set are:
ABC ACB BAC BCA CAB CBA
As seen, each arrangement is different because of the importance of order in the permutation.
Combination
In combination, attention is paid to the selection of objects, not to their order. This means that in combination, attention is paid only to the presence of objects, not to their arrangement.
Mathematical expression of combinations
The combination formula, traditionally denoted C(n, r)
or nCr
, is:
C(n, r) = n! / (r! (n-r)!)
This formula shows the number of ways to select r
elements from a group of n
elements, regardless of the order of selection.
Example of combinations
For example, consider how many ways you can pick 3 fruits from a basket containing 5 fruits (apples, bananas, cherries, dates, and elderberries). This means n = 5
and r = 3
applying the formula:
C(5, 3) = 5! / (3! x (5-3)!) = 5! / (3! x 2!) = (5 x 4 x 3 x 2 x 1) / (3 x 2 x 1 x 2 x 1) = 10
Hence, there are 10 different ways to choose 3 fruits from a group of 5 fruits.
Visual example of combinations
To explain further, let's use the set of letters {A, B, C}
and pick 2 letters:
AB AC BC
Note here that combinations do not consider the order of selection, so AB
is the same as BA
.
Main differences between permutation and combination
Although permutations and combinations may seem similar, they fundamentally differ based on whether the order matters or not:
- In permutation, different arrangements are considered and the order in which the elements are selected is important.
- Combination focuses only on the selection of items, not the order.
To see this important difference, the number of permutations for the same values of n
and r
is usually greater than the number of combinations.
Applications of permutations and combinations
These fundamental concepts of combinatorics are not just theoretical; they also have practical applications in many real-world areas:
- Cryptography: Permutations are essential in creating complex encryption algorithms, which ensure data security by arranging characters in a particular sequence.
- Statistics: Combinations are important in designing studies and experiments when selecting sample groups from a larger population.
- Computer science: Both permutations and combinations are used in algorithms related to searching and sorting techniques.
Advanced topics in permutation and combination
For undergraduate students, permutations and combinations are just a gateway to deeper topics of combinatorics. Here are some advanced aspects that can be understood in more detail:
- Restricted permutations: Exploring scenarios where certain elements should always or never appear in specific positions.
- Combinatorial recognizers: Understanding Binomial Coefficients and Pascal's Triangle for Complex Calculations.
- Generating functions: using algebraic expressions that encode information about sequences and can help solve combinatorial problems.
Conclusion
In conclusion, permutations and combinations provide a fundamental framework for counting and arranging objects in discrete mathematics. The practical applications and theoretical depth of these concepts make them essential tools in a variety of mathematical and applied fields. By exploring and mastering these ideas, you can better understand the beauty and utility of mathematics in understanding the complex systems of the world.