Skip to content
Official PYQ · 2006

GATE CS 2006 Q24 — Sets, Relations and Functions

Explain with AI

Given a set of elements N=1,2,...,nN = {1, 2, ..., n} and two arbitrary subsets A⊆NA⊆N and B⊆NB⊆N, how many of the n! permutations π\pi from NN to NN satisfy min⁡(π(A))=min⁡(π(B))\min(\pi(A)) = \min(\pi(B)), where min⁡(S)\min(S) is the smallest integer in the set of integers SS, and π\pi(S) is the set of integers obtained by applying permutation π\pi to each element of SS?

Choose one option
View worked solution

Answer: C

To find the number of permutations π\pi that satisfy min⁡(π(A))=min⁡(π(B))\min(\pi(A)) = \min(\pi(B)), let us analyze the behavior of the minimum value over the union of the two sets, A∪BA \cup B.

Let S=A∪BS = A \cup B. For any permutation π\pi, the minimum value of the image of SS is given by: min⁡(π(S))=min⁡(π(A∪B))=min⁡(min⁡(π(A)),min⁡(π(B)))\min(\pi(S)) = \min(\pi(A \cup B)) = \min\big(\min(\pi(A)), \min(\pi(B))\big)

Let x∈Sx \in S be the unique element that maps to this minimum value, i.e., π(x)=min⁡(π(S))\pi(x) = \min(\pi(S)).

  • If x∈Ax \in A but x∉Bx \notin B, then min⁡(π(A))=π(x)<min⁡(π(B))\min(\pi(A)) = \pi(x) < \min(\pi(B)).
  • If x∈Bx \in B but x∉Ax \notin A, then min⁡(π(B))=π(x)<min⁡(π(A))\min(\pi(B)) = \pi(x) < \min(\pi(A)).
  • If x∈A∩Bx \in A \cap B, then min⁡(π(A))=π(x)=min⁡(π(B))\min(\pi(A)) = \pi(x) = \min(\pi(B)).
Therefore, the condition min⁡(π(A))=min⁡(π(B))\min(\pi(A)) = \min(\pi(B)) holds if and only if the element of A∪BA \cup B that maps to the minimum value under π\pi belongs to A∩BA \cap B.

Probability/Symmetry Argument:

By symmetry, each of the ∣A∪B∣|A \cup B| elements in the union has an equal probability of being mapped to the minimum value among all elements in π(A∪B)\pi(A \cup B).

The number of favorable elements is ∣A∩B∣|A \cap B|. Thus, the probability that a randomly chosen permutation satisfies the condition is: P=∣A∩B∣∣A∪B∣P = \frac{|A \cap B|}{|A \cup B|}

Since there are n!n! total permutations of the set NN, the number of permutations satisfying the condition is: Number of permutations=n!×∣A∩B∣∣A∪B∣\text{Number of permutations} = n! \times \frac{|A \cap B|}{|A \cup B|}

Hence, the correct option is C.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Sets, Relations and Functions questions