Skip to main content

GATE CSE 2023Combinatory › Counting Principles & PigeonholeVerified

GATE CSE 2023 PYQ: Let U = { 1 , 2 , … , n } , U=\{1,2, \ldots, n\}, U = { 1 , 2 , … , n } , where n n n is a large positive…

Let U={1,2,…,n},U=\{1,2, \ldots, n\}, where nn is a large positive integer greater than 1000.1000. Let kk be a positive integer less than nn. Let A,BA, B be subsets of UU with ∣A∣=∣B∣=k|A|=|B|=k and A∩B=∅A \cap B=\emptyset. We say that a permutation of UU separates AA from BB if one of the following is true.

  • All members of AA appear in the permutation before any of the members of BB.
  • All members of BB appear in the permutation before any of the members of AA.

How many permutations of UU separate AA from B?B? 

  1. A
    n!n!
  2. B
    (n2k)(n−2k)\left(\begin{array}{c}n \\ 2 k\end{array}\right)(n-2 k) !
  3. C
    (n2k)(n−2k)!(k!)2\left(\begin{array}{c}n \\ 2 k\end{array}\right)(n-2 k) !(k !)^{2}
  4. D
    2(n2k)(n−2k)!(k!)22\left(\begin{array}{c}n \\ 2 k\end{array}\right)(n-2 k) !(k !)^{2}
    Correct answer

Answer

(D) 2 ( n 2 k ) ( n − 2 k ) ! ( k ! ) 2 2\left(\begin{array}{c}n \\ 2 k\end{array}\right)(n-2 k) !(k !)^{2} 2 ( n 2 k ​ ) ( n − 2 k )! ( k ! ) 2

Approach

Treat A and B as fixed, labelled subsets of U. Count permutations in which either the whole set A precedes the whole set B or the whole set B precedes the whole set A. The remaining n-2k elements not in A∪B can be placed arbitrarily.

Choose the 2k positions for A∪B, order A internally and B internally, arrange the remaining elements, and multiply by 2 because either block A can precede block B or block B can precede block A. Hence option D is correct.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.