Skip to content

GATE CS 2021 Set 1 Q19 — Combinatorics: Counting, Recurrence Relations, Generating Functions

Explain with AI

There are 66 jobs with distinct difficulty levels, and 33 computers with distinct processing speeds. Each job is assigned to a computer such that:

  • The fastest computer gets the toughest job and the slowest computer gets the easiest job.
  • Every computer gets at least one job.

The number of ways in which this can be done is ___________.

View worked solution

Answer: 65 : 65

Let the 66 jobs ordered by increasing difficulty be J1,J2,J3,J4,J5,J6J_1, J_2, J_3, J_4, J_5, J_6, where J1J_1 is the easiest and J6J_6 is the toughest.

Let the 33 computers ordered by increasing speed be Cextslow,Cextmed,CextfastC_{ ext{slow}}, C_{ ext{med}}, C_{ ext{fast}}.

According to the given conditions:

  1. The fastest computer (CextfastC_{ ext{fast}}) must get the toughest job (J6J_6).
  2. The slowest computer (CextslowC_{ ext{slow}}) must get the easiest job (J1J_1).

This pre-assigns J1J_1 to CextslowC_{ ext{slow}} and J6J_6 to CextfastC_{ ext{fast}}. Now, both CextslowC_{ ext{slow}} and CextfastC_{ ext{fast}} already have at least one job assigned to them.

We have 44 remaining jobs (J2,J3,J4,J5J_2, J_3, J_4, J_5) to be distributed among the 33 computers such that the remaining condition is satisfied: Every computer gets at least one job.

Since CextslowC_{ ext{slow}} and CextfastC_{ ext{fast}} already have jobs, this condition is satisfied as long as the medium computer (CextmedC_{ ext{med}}) gets at least one of the remaining 44 jobs.

We can calculate this using the subtraction principle:

  • Total ways to assign the 44 remaining jobs to the 33 computers without restriction: 34=813^4 = 81
  • Invalid ways where CextmedC_{ ext{med}} gets 00 jobs (i.e., the 44 jobs are distributed only between CextslowC_{ ext{slow}} and CextfastC_{ ext{fast}}): 24=162^4 = 16

Therefore, the number of valid ways is:

81−16=6581 - 16 = 65

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Combinatorics: Counting, Recurrence Relations, Generating Functions questions