basics pnc


  • Fundamental Principles of Counting : Multiplication Theorem

    If an operation can be performed in m different ways and following which a second operation can be performed in n different ways, then the two operations in succession can be performed in m × n different ways

  • Fundamental Principles of Counting : Addition Theorem

    If an operation can be performed in m different ways and a second independent operation can be performed in n different ways, either of the two operations can be performed in (m+n) ways.

  • Factorial

    Let n be a positive integer. Then n factorial (n!) can be defined as

    n! = n(n-1)(n-2)...1


    Examples

    1. 5! = 5 x 4 x 3 x 2 x 1 = 120


    2. 3! = 3 x 2 x 1 = 6

    Special Cases

    1. 0! = 1


    2. 1! = 1

  • Permutations

    Permutations are the different arrangements of a given number of things by taking some or all at a time

    Examples

    1. All permutations (or arrangements) formed with the letters a, b, c by taking three at a time are (abc, acb, bac, bca, cab, cba)


    2. All permutations (or arrangements) formed with the letters a, b, c by taking two at a time are (ab, ac, ba, bc, ca, cb)

  • Combinations

    Each of the different groups or selections formed by taking some or all of a number of objects is called a combination

    Examples

    1. Suppose we want to select two out of three girls P, Q, R. Then, possible combinations are PQ, QR and RP. (Note that PQ and QP represent the same selection)


    2. Suppose we want to select three out of three girls P, Q, R. Then, only possible combination is PQR

  • Difference between Permutations and Combinations and How to Address a Problem

    Sometimes, it will be clearly stated in the problem itself whether permutation or combination is to be used. However if it is not mentioned in the problem, we have to find out whether the question is related to permutation or combination.

    Consider a situation where we need to find out the total number of possible samples of two objects which can be taken from three objects P,Q , R. To understand if the question is related to permutation or combination, we need to find out if the order is important or not.

    If order is important, PQ will be different from QP , PR will be different from RP and QR will be different from RQ

    If order is not important, PQ will be same as QP, PR will be same as RP and QR will be same as RQ

    Hence,
    If the order is important, problem will be related to permutations.
    If the order is not important, problem will be related to combinations.

    For permutations, the problems can be like "What is the number of permutations the can be made", "What is the number of arrangements that can be made", "What are the different number of ways in which something can be arranged", etc

    For combinations, the problems can be like "What is the number of combinations the can be made", "What is the number of selections the can be made", "What are the different number of ways in which something can be selected", etc.

    Mostly problems related to word formation, number formation etc will be related to permutations. Similarly most problems related to selection of persons, formation of geometrical figures , distribution of items (there are exceptions for this) etc will be related to combinations.

  • Repetition

    The term repetition is very important in permutations and combinations.

    Consider the same situation described above where we need to find out the total number of possible samples of two objects which can be taken from three objects P,Q , R.

    If repetition is allowed, the same object can be taken more than once to make a sample.

    i.e., if repetition is allowed, PP, QQ, RR can also be considered as possible samples.

    If repetition is not allowed, then PP, QQ, RR cannot be considered as possible samples

    Normally repetition is not allowed unless mentioned specifically.

  • pq and qp are two different permutations ,but they represent the same combination.

  • Number of permutations of n distinct things taking r at a time

    Number of permutations of n distinct things taking r at a time can be given by

    nPr = {n!}/{(n - r)!} = n(n-1)(n-2)...(n-r+1)


    If r > n,  nPr = 0

    Special Case: nP0 = 1

    nPr is also denoted by P(n,r). nPr has importance outside combinatorics as well where it is known as the falling factorial and denoted by (n)r or nr

    Examples

    1. 8P2 = 8 x 7 = 56


    2. 5P4= 5 x 4 x 3 x 2 = 120

  • Number of permutations of n distinct things taking all at a time

    Number of permutations of n distinct things taking them all at a time = nPn = n!

  • Number of Combinations of n distinct things taking r at a time

    Number of combinations of n distinct things taking r at a time ( nCr) can be given by              

    nCr = {n!}/{(r!)(n - r)!}


    If r > n,  nCr = 0

    Special Case: nC0 = 1

    nCr is also denoted by C(n,r).

    Examples

    1. 8C2 = {8 x 7}/{2 x 1} = 28


    2. 5C4= {5 x 4 x 3 x 2}/{4 x 3 x 2 x 1}= 5


  • S-BATCH