GATE / CS ARCHIVE

GATE CSE 2021 SET 1 / QUESTION 19

GATE CSE 2021 Set 1 Q19

Discrete Mathematics · Combinatorics & Counting · Full GATE CSE 2021 Set 1 paper

GATE 2021 Set 1, Q19 1 mark · NAT
Report issue

Combinatorics & Counting

Question 19, GATE 2021: Assign six distinct jobs of distinct difficulty to three distinct computers of distinct speeds. The fastest must get the toughest job, the slowest the easiest, and each computer must receive at least one job. How many assignments are possible?
Tap to enlarge
Answer & solution

Official answer: 65

Fix the toughest job on the fastest computer and the easiest on the slowest. Each of the four remaining distinct jobs has 3 destination choices, giving 3⁴. Subtract assignments that leave the middle-speed computer empty: all four then go to the other two computers, giving 2⁴. Thus3⁴−2⁴=81−16=65.

The extreme jobs are fixed, leaving four labeled jobs, not four indistinguishable units. The fastest and slowest computers are already nonempty, so only the middle computer requires an inclusion-exclusion correction. For a second count, assign exactly k of the four remaining jobs to the middle computer: Σ_(k=1)4 binom(4,k)24−k=32+24+8+1=65.

Original paper, page 20 · Answer key