GATE / CS ARCHIVE

GATE CSE 1991 / QUESTION 2(iv)

Matching combinatorial counts

Discrete Mathematics · Combinatorics & Counting · Full GATE CSE 1991 paper

GATE 1991, Q2(iv) 2 marks · Other
Report issue

Combinatorics & Counting

Question 2(iv), GATE 1991: Match A binary trees with n nodes; B length 2n binary strings with n zeros; C even permutations of n objects; D length 6n palindromes with exactly 2n zeros. Choices P=n!/2, Q=C(3n, n), R=C(2n, n), S=C(2n, n)/(n+1).
Question 2(iv), GATE 1991: Match A binary trees with n nodes; B length 2n binary strings with n zeros; C even permutations of n objects; D length 6n palindromes with exactly 2n zeros. Choices P=n!/2, Q=C(3n, n), R=C(2n, n), S=C(2n, n)/(n+1).
Tap to enlarge
Answer & solution

Answer: A–S; B–R; C–P; D–Q under ordered binary-tree and n≥2 conventions (no official key was published)

Ordered binary trees with n nodes satisfy the Catalan recurrence from choosing left and right subtree sizes; its solution is C(2n, n)/(n+1). For B, choose the n zero positions among 2n positions. For C, composing with a fixed transposition pairs even and odd permutations, so each class has n!/2 members when n≥2. An even-length palindrome is determined by its first half. Exactly 2n zeros in length 6n requires n zeros among the first 3n positions, giving C(3n, n). Unordered-tree counting and n=0 or 1 permutation cases require separate conventions.

Original paper, page 2