Skip to main content

Permutations and Combination

Permutations and Combination

Permutations and Combination is one section of the CAT Quantitative Aptitude which needs the least number of formulae and the maximum amount of logic. This topic is asked in almost every competitive exam, so don’t take the risk of avoiding it.  After reading this article you will be familiar with Permutation and Combination.

Definition of Permutation: Permutation is defined as the arrangement of r things that can be done out of total n things.
Formula of Permutation
Permutation is denoted by  nPr   it is equal to  n!/(n-r)!
Defination of Combination: Combination is defined as selection of r things that can be done out of total n things.
Formula of Combination
Combination is denoted  nCr it is equal to n!/r!(n-r)!

Fundamental principle of counting

Product Rule:
If an activity A can be done in “m” ways and an another activity “B” can be done in “n” ways, A and B together can be done in “m x n” ways
Example:
How many ways a person can go from A to C via B?

Solution:
A to B in 3 ways
B to C in 2 ways
A to B and B to C in 3 x 2 = 6 ways
Addition Rule:
If an activity A can be done in “m” ways and an another activity “B” can be done in “n” ways, then A or B together can be done in “m + n” ways
Example:
If the person is at B, how many ways he can go to A or C?

Solution:

  • B to A in 3 ways
  • B to C in 2 ways
  • B to A OR
  • B to C in 3 + 2 = 5 ways

KEYWORDS

  • AND➜ MULTIPLICATION (Product rule)
  • OR➜ ADDITION (Sum Rule)

Illustrations:

Question 1 From a pack of cards in how many ways can you select-
  • A king and a queen
  • A king or a queen
Solution:
There are 52 cards in a pack, with 4 kings and 4 queens.
A king can be selected in 4 ways and a queen can be selected in 4 ways. Number of ways of selection of a king AND a queen is 4×4=16 (Product rule)
Number of ways of selection of a king OR a queen 4+4=8 (Addition rule)
The fundamental principle of counting (FPC) is the basic concept of permutation and combination.
2)  In how many ways can 3 people A, B, C be arranged in 2 places?
Solution:
Manually solving we will get 6 cases as given below.
AB BA
AC CA
BC CB
This can be explained using FPC like this
There are two seats __ __. In the first seat A,B or C can sit. i.e., 3 possibilities.
Let A sit in the first place. Thus, in second place either B or C can sit.
The second seat can hence be taken up in 2 ways Together A,B ‘AND’ C can be seated in 3 x 2 = 6 ways.
Thus, the number of arrangement of 3 things at 2 places can be done in 3×2 ways.
3) In how many ways can 4 people be seated in 3 chairs?
Solution:
First seat can be filled in 4 ways.
Second seat can be filled in 3 ways.
Third seat can be filled in 2 ways.
So all together 4 people can be arranged in 3 seats in 4x3x2 = 24 ways.
Generalizing; arrangement of n things at r places can be done in [n(n-1)(n-2)…(n-r+1)] ways.
This arrangement of n things at r places is denoted by nPr .
∴ nPr = n(n-1)(n-2)…(n-r+1) = n!/(n-r)!
It should be noted that in all these examples, the order of arrangement is important.
In other words, AB and BA are counted as 2 different cases. An arrangement where the order is important is called permutation
Now let us see one case where the order is not important.
Example:
4) How many doubles teams can be selected from 3 persons A, B, C?
Solution:
Let’s take a doubles team AB. Change the order, i.e. to BA. Notice that both the teams are one and the same.
So here the order is not important. Hence, it’s a case of combination. Here one can select the team in 3 ways
AB
AC
BC
If the order is important, then the total number of arrangements can be done in nPr = 3P2 ways.
We will get the 6 cases as:
AB BA
AC CA
BC CB
But in this particular question every 2! (because A,B can be arranged in 2! Ways) cases will be counted as only one
case, i.e AB and BA is one and the same team.
So the number of selections of 2 things from 3 things can be done in = 3(P2 )/2!
Similarly, the number of selections of 3 things from 4 things can be done in =4P3/3!
Generalizing: the number of selections of r things from n things can be done in = nPr/r! ways.
The number of selections of r things from n different things is denoted by nCr,
which is what we learn as “Combination”.
∴ nCr = nPr/r!=n!/[(n-r)! r!]
Thus, you can understand now, that wherever the arrangement is necessary apart from selection,
we used Permutation and when we just need to select without arranging, we use Combination.
To make the point even clearer.
Let us look at one more example:
5) In how many ways can you select a President and a Vice-President from 3 people?
Is it a case of permutation or combination?
In the above question, since the word “select” appears, it may tempt you to consider combination.
So let’s take a case where A is the President and B is the Vice-President. Now change the order,
i.e. B is President and A Vice-President. Are both the cases same? No, they are not! We see that both the cases are different.
The order is important. Hence it is a case of permutation.
Difference between Permutation and Combination:

The relation between permutation and combination
∴ nPr = nCr x r!
The permutation of ‘n’ things taking ‘r’ at a time will involve the following steps:
i) Select ‘r’ things out of total ‘n’ things, which can be done in nCr ways.
ii) Arrange those ‘r’ things among themselves which can be done in r! ways.
nPr is nothing but, selecting r things out of n things (in nCr ways) and then arranging it among themselves.
This is why every permutation is selection followed by the arrangement of the selected things among themselves.
If it is only selection where the arrangement is not important, then we use the combination (nCr) only.











Comments

Post a Comment

Popular posts from this blog

Install Virtual Environment

VIRTUAL ENV Virtualenv is a tool to create an isolated Python environment. In this post, we will learn how to setup virtualenv on ubuntu. Prerequisite pip Install Virtualenv If you have pip3  sudo pip3 install virtualenv if you have pip sudo pip install virtualenv Create a Virtualenv virtualenv venv venv is a directory in which virtual environment will be created. Working with Virtualenv source venv/bin/activate Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Equations

In general we frame real life problems into some mathematical formula called equations in which we use constant and some variables(unknown) Example: Ram is 12 years old.Ram 's age is 3/5 of Shyam's age what is Shyam's age. Let Shyam's age is x then 3/5 of sham's age is 3*x/5 x*3/5=12 x=60/3=20 so Shyam's age is 20. Linear equations When there is a linear combination of unknown variables is there then eqn is linear Example: 3x+ 2y+ 4z=9 Non Linear Equations: Equations in which non linear combination of the variable is there then eqn is non linear. When any 2 unknown variable multiplication present in the equation then it is the nonlinear equation. Example: 2x+5yz=98 is a nonlinear equation because yz multiplication is there: Quadratic equation in one variable: x^2 + 4*x + 2=0 is non linear because unknown variable x is being multiplied in term x^2 Quadratic equation in many variable: x^2 + y^2 +z^2 + w=0 cubic equati...

How Machine Learning (ML) Work

How Machine Learning (ML) Work In this post, We will learn how machine learning work. What is machine learning (ML) ? Machine learning is a study of model that compute use to progressively improve their performance on a specific task. What is Machine learning models ? Machine learning model contains a set of instruction or mathematical formula or in simple word it contain a piece of code in which we provide some data as input and model return some output. We learn more about model and how use a machine leaning model latter. How Machine Learning (ML) Work  ? This part we will understand with an example. Suppose want to have a simple application which will take a picture and banana or apple and application will tell us either it is banana or apple or picture is neither banana nor apple. To solve this problem first we provide a set of banana picture to our model and we will tell our model that this is a banana picture similarly we will provide a set of apple...

How to install certificates for command line

Install Certificates In this post, We will learn how to install the certificate on Ubuntu with the command line. Open your terminal and execute the following sequence of command. Here mycert.cer is the certificate that you want to install. $ sudo cp mycert.cer /usr/share/ca-certificates/mycert.pem $ sudo dpkg-reconfigure ca-certificates $ sudo update-ca-certificates $ git config --global http.sslCAInfo /usr/share/ca-certificates/mycert.pem Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.