Combinatorics | ||
Combinatorics Defined | ||
![]() |
Here we just look at the different ways to generate combinations or variations of "things" (= elements) that belong to a certain set. | |
![]() |
The "things" or elements in a set (always denoted by { }) could be some numbers, for example: {0, 1, 2, ..., 9}. They could be some letters of the alphabet, e.g.: {a, b, c, ..., f}, the atoms of a crystal; the people on this earth, in Europe, or in your hometown - you get the drift. We generally assume that the complete set {N} has N such elements. | |
![]() |
We then define subsets {k} that contain only k elements from some given set - for example eight letters from the set {a, b, c, ..., f}, a certain number n of atoms from a set of {N} atoms - and then ask what kind of combinations, variations, or relations are possible between {N} and {k}. | |
![]() |
Note that we do not ask what you can do with the k elements after you made your choice of this subset. | |
![]() |
I need to make that very clear: If we have, for example, a set {N9} =
{0, 1, 2, ..., 9} with 9 elements, and form a subset with three members picked from {N9},
we may ask:
| |
![]() |
That forbidden question seems to be perfectly fine, so why don't we allow it? Because the set {k} = {2,4,5} has no relation anymore with its parent {N9} = {0, 1, 2, ..., 9}. It is a subset of {N9}, allright, but after it was defined it became a set of its own. How many numbers you can form with the integers 2,4,5 is completely independent of {N9}. In the disallowed question you are actually asking about subsets of {N3}. You do not have to know some {N} to answer that question. So it is not an eligible question if you want to look at relations between {N9} and some {k}. |
|
![]() |
This is a bit abstract, so let's look at examples for allowed questions: | |
![]() |
Starting with the set {N} = {0, 1, 2, ..., 9} we may ask:
| |
![]() |
It is obvious and aggravating: Even for the most simple examples, there is no end of questions you can ask concerning the formation of subsets. Some of those questions may even bear some relation to reality. For example, one of those questions for the subset {N4} may contain the answer of how man different numbers one can make with four digits. But to get a proper answer you must first ask the proper question and then find the solution! | |
![]() |
Some answers to possible questions are rather obvious, some certainly are not. For some, you might feel that you would find the answer given enough time; others you might feel are hopeless; at least for you, or possibly for everybody? | |
![]() |
Moreover, for some answers you have a feeling or some rough idea of what the result could be. It's just clear that all problems involving three digits have less than 1.000 possibilities, and that with more restrictions the number of possibilities will decrease. For other problems, however, you may not have the faintest idea of what the result might be. That is a big problem for all of us who work with combinatorics only occasionally. You might be completely wrongbut you may not notice it, in contrast to many other problems. | |
![]() |
If you are a halfway normal human being, you have by now developed a strong dislike to combinatorics. That is a sound instinct. I know nobody who actually likes it, and I do know a few rather warped scientists. Well, you don't need to be able to do combinatorics yourself, so you can stop reading right here. But if you read on you might learn an interesting thing or two that you then can forget again. | |
![]() |
While it is easy to ask combinatorial questions, combinatorics as a math discipline is rather abstract. So how to get a grasp of it? That is an easy question: Study combinatorics as mathematical discipline for quite some time, and you will get there. | |
![]() |
In particular you will find out that there is a small number of standard cases that include many of the typical questions we posed above, and that there are standard formulas for the answers. Let's summarize these standard cases in what follows. | |
Standard Cases of Combinatorics | ||
![]() |
Quite generally, we look at a situation where we have N elements in a set and ask for the number of possibilities to generate subsets with k of those elements. | |
![]() |
Some Examples:
| |
![]() |
The questions we ask, however, are not yet specific enough to allow a definite answer. We have to construct 2 × 2 = 4 general cases or groups of questions. | |
![]() |
First we have to distinguish between two basic
possibilities of selecting elements for the combinatorial task:
| |
![]() |
Second , we have to distinguish
between two basic possibilities of arranging the elements. An arrangement in this sense, simply speaking, can be anything that allows to visualize the combinations
we make with the elements selected - e.g. a string as shown above. We then have two basic possibilities:
| |
![]() |
For the following I use the natural
numbers as elements of the set {N} to give examples. We now can produce the following table for the four basic cases: | |
Case Distinction | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
We must select different elements | We may select identical elements. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Different arrangements
of the same elements count. ("Distinguishable arrangements") |
Different arrangements of the same elements do not count ("Indistinguishable arrangements") |
Different arrangements of the same elements count. | Different arrangements of the same elements do not count. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
We ask for the number of possible Variations
VD(k, N) |
We ask for the number of possible Combinations
CD(k, N) |
We ask for the number of possible Variations VI(k, N) |
We ask for the number of possible Combinations CI(k, N) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Examples | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
N = {1,3,4,5} k = 3 All 3-digit numbers with different elements CD(k, N) = 4!/1! = 24: 134, 143, 135, 153, 145, ... |
N = {1,3,4,5} k = 3 3-digit numbers with different elements and only one combination CD(k, N) = 24/k! = 24/6 = 4: 134, 135, 145, 345 |
N = {0,3, ... ,9) k = 3 All 3-digit numbers VD(k, N) = 10 3 = 1000: 000, 001, ... , 455, ... , 999 |
N = {1,3,4,} k = 2 All 2-digit numbers with only one combination CD(k, N) =4!/2! · 2! = 6: 11, 12, 22, 13, 23, 33 |
![]() |
Since the fraction marked in red comes up all the time in combinatorics, it has been given its own symbol and name. | |||||||||
![]() |
We define the binomial coefficient of N and k as | |||||||||
| ||||||||||
![]() |
Yes - it is a bit mind boggling. But it is not quite as bad as it appears. | |||||||||
![]() |
The third column gives an obvious result. How many three digit numbers can you produce if you have 0 - 9 and every possible combination is allowed (i.e,. 001 = 1 etc.) and counted. Yes - all numbers from 000, 001, 002, ..., 998, 999 - makes exactly 1000 combinations, or CD(k, N) = 103 as the formula asserts. | |||||||||
![]() |
Always ask yourself: Am I considering a variation ( all possible arrangement counts) or a combination ("indistinguishable" 1) arrangements don't count separately)? | |||||||||
![]() |
Look at it from the practical point of view, not from the formal one, and you will get into the right direction without too much trouble. | |||||||||
![]() |
The rest you have to take on faithor you really must apply yourself to combinatorics. | |||||||||
![]() |
All the more complicated questions not yet contained in the cases above - e.g. we do not allow the element "0" as the first digit, we allow one element to be picked k 1 times, a second one k2 times and so on, may be constructed by various combinations of the 4 cases (and note that I don't say " easily constructed"). | |||||||||
![]() |
OK. For the example given, the cases may be halfway transparent. But how about the arrangement of vacancies in a crystal? What are the elements of this combinatorial problem, and what is k? | |
![]() |
The elements obviously are the N atoms of the crystal. The subset k equally obviously selects k = nV = number of vacancies of these elements. | |
![]() |
This is exactly the "confusing" case mentioned above: All elements in {N} look the same; nevertheless it makes a difference if I allow identical or different elements for {k}. We can make the situation a bit more transparent if we number the atoms in our thoughts. | |
![]() |
Now what exactly is the question to ask? There are often many ways in stating the same problem, but one way might be better than others in order to see the structure of the problem. | |
![]() |
We could ask for example:
| |
![]() |
It is clear now that we have to take the "different elements" and "different arrangements of the same elements do not count" case - which indeed gives us the correct formula. | |
1) | There is a certain paradox here: In order to explain in words that certain arrangements are indistinguishable, we have to list them separately, i.e. we distinguish them. But that is not a real problem, just a problem with words. |
The Second Law and Computer Science
© H. Föll (Iron, Steel and Swords script)