GATE / CS ARCHIVE

GATE CSE 2003 / QUESTION 4

Splitting a sorted sequence before merging

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

GATE 2003, Q4 1 mark · MCQ
Report issue

Combinatorics & Counting

Question 4, GATE 2003: A contains eight distinct integers sorted in increasing order. How many ordered pairs of increasing sequences (B,C), with five elements in B and three in C, merge to A? A. 2; B. 30; C. 56; D. 256.
Question 4, GATE 2003: A contains eight distinct integers sorted in increasing order. How many ordered pairs of increasing sequences (B,C), with five elements in B and three in C, merge to A? A. 2; B. 30; C. 56; D. 256.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. There is no additional permutation factor: once B’s five members are selected, sorting fixes their order, and the remaining three fix C. Compute 8!/(5!3!)=(8·7·6)/(3·2·1)=56. Choosing C first gives the same count binomial(8,3).

2. Choose which 5 of the 8 distinct elements belong to B; the other 3 belong to C. Their increasing orders are then forced, and merging reconstructs A. Hence binomial(8,5)=56 pairs, C.

Original paper, page 1