Combinatorial modelling is the process which lets us identify a suitable mathematical model to reformulate a problem. These combinatorial models will provide, through the combinatorics theory, the operations needed to solve the problem.
Simple combinatorial problems are the ones that can be solved by applying just one combinatorial operation (variations, permutations, combinations, …). These problems can be classified into three different models, called implicit combinatorial models.
A selection problem requires to choose a sample of k elements out of a set of n elements. It is needed to know if the order in which the objects are selected matters and whether an object can be selected more than once or not. This table shows the operations that the model provides to get the number of different samples for each of the selections:
Repetitionnot allowed | Repetitionallowed | ||
---|---|---|---|
Orderedsample | Vn,k | VRn,k | |
Non orderedsample | Cn,k | CRn,k |
1.- At a party there are 50 people. Everybody shakes everybody’s hand once. How often are hands shaken in total?What we need to do is calculate the number of all possible pairs of party guests, which means, a sample of 2 people out of the 50 guests, so
k=2
n=50
C50,2=
50! | |
2! ⋅ (50-2)! |
=1225
k=4
n=10
V10,4=
10! | |
(10-4)! |
=5040
k=20
n=3
k=20
n=3
CR3,20=C22,20=
22! | |
20! ⋅ (22-20)! |
=231
In a distribution problem it is required to place k objects into n boxes or recipients. In order to choose the right operation out of the ones that the model provides, it is necessary to know:
k\leqn
k\geqn
k=n
The following table shows the operations that the model provides to get the number of different ways of distributing the objects for each of the distributions:
Non ordered distribution | Ordered distribution | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Distinguishable objects | Indistinguishable objects | Distinguishable objects | ||||||||||||||||||||||
Distinguishable boxes | Indistinguishable boxes | Distinguishable boxes | Indistinguishable boxes | Distinguishable boxes | Indistinguishable boxes | |||||||||||||||||||
Anydistribution | VRn,k |
S(k,i) | CRn,k |
P(k,i) | k! ⋅ CRn,k |
L(k,i) | ||||||||||||||||||
Injectivedistribution | V n,k | 1 | Cn,k | 1 | V n,k | 1 | ||||||||||||||||||
Surjectivedistribution | n! ⋅ S(k,n) | S(k,n) | CRn,k-n | P(k,n) | k! ⋅ CRn,k-n |
⋅ {k-1\choosen-1} | ||||||||||||||||||
Bijectivedistribution | n! | 1 | 1 | 1 | n! | 1 |
S(k,n)=\left\{{k\atopn}\right\}:
P(k,n):
L(k,n):
1.- A maths teacher has to give 3 studentships among his students. 7 of them got an 'outstanding' grade, so they are the candidates to get them. In how many ways can he distribute the grants?Let's consider the 3 studentships are objects that have to be distributed into 7 boxes, which are the students. As the objects are identical studentships, they are indistinguishable. The boxes are distinguishable, as they are different students. Every studentship must be given to a different student, so every box must have at most 1 object. Furthermore, the order in which the objects are placed in a boxes does not matter, because there cannot be more than one on each box. So, it is a non ordered injective distribution of 3 indistinguishable objects (
k=3
n=7
C7,3=
7! | |
3! ⋅ (7-3)! |
=35
k=8
n=5
S(8,5)=\left\{{8\atop5}\right\}=
1 | |
5! |
\sum
5(-1) | |
i=0 |
i\binom{5}{i}(5-i)8=1050
k=12
n=4
12! ⋅ CR4,12=12! ⋅ C15,12=12! ⋅
15! | |
12! ⋅ (15-12)! |
=217945728000
A partition problem requires to divide a set of k elements into n subsets. This model is related to the distribution one, as we can consider the objects inside every box as subsets of the set of objects to distribute. So, each of the 24 distributions described previously has a matching kind of partition into subsets. So, a partition problem can be solved by transforming it into a distribution one and applying the correspondent operation provided by the distribution model (previous table). Following this method, we will get the number of possible ways of dividing the set. The relation between these two models is described in the following table:
Distribution | Partition | |
---|---|---|
Ordered | Subsets of ordered elements | |
Non ordered | Subsets of non ordered elements | |
Distinguishable objects | Distinguishable elements | |
Indistinguishable objects | Indistinguishable elements | |
Distinguishable boxes | Ordered partitions | |
Indistinguishable boxes | Non ordered partitions | |
Injective distribution | Subsets of 1 element or empty ones | |
Surjective distribution | No empty subsets | |
Bijective distribution | Subsets of exactly 1 element | |
No restrictions | Subsets of 1 or more elements or empty ones |
Non ordered elements | , | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Distinguishable elements | Indistinguishable elements | Distinguishable elements | ||||||||||||||||||||||
Ordered subsets | Non ordered subsets | Ordered subsets | Non ordered subsets | Ordered subsets | Non ordered subsets | |||||||||||||||||||
Any subsets | VRn,k |
S(k,i) | CRn,k |
P(k,i) | k! ⋅ CRn,k |
L(k,i) | ||||||||||||||||||
Empty or 1-element subsets | V n,k | 1 | Cn,k | 1 | V n,k | 1 | ||||||||||||||||||
No empty subsets | n! ⋅ S(k,n) | S(k,n) | CRn,k-n | P(k,n) | k! ⋅ CRn,k-n |
⋅ CRn,k-n | ||||||||||||||||||
Subsets of 1 element | n! | 1 | 1 | 1 | n! | 1 |
1.- A group of 3 classmates have to make a thesis about 8 different maths topics. In how many ways can they split the work to do?We need to divide the set of 8 topics into 3 subsets. These subsets will be the topics that each of the students will work on. The elements in the set (topics) are distinguishable. The partitions must be ordered because each one will correspond to a different student, but the topics inside every subset do not have to be ordered because each student can decide which order to follow when working on the thesis. The statement does not mention any restriction of the subsets. So, it is required to divide a set of 8 elements (
k=8
n=3
VR3,8=38=6561