GATE CS 2023 · Question 48 · Engineering Mathematics · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Let U = {1, 2, …, n}, where n is a large positive integer greater than 1000. Let k be a positive integer less than n. Let A, B be subsets of U with |A| = |B| = k and A ∩ B = ∅. We say that a permutation of U separates A from B if one of the following is true.
All members of A appear in the permutation before any of the members of B.
All members of B appear in the permutation before any of the members of A.
How many permutations of U separate A from B?

  1. (A) n!
  2. (B) C(n, 2k)(n-2k)!
  3. (C) C(n, 2k)(n-2k)! (k!)²
  4. (D) 2C(n, 2k)(n-2k)! (k!)²
Answer

Answer (D)

Answer from the official GATE CS 2023 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes