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?
- (A) n!
- (B) C(n, 2k)(n-2k)!
- (C) C(n, 2k)(n-2k)! (k!)²
- (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