UPSC CSAT 2023 Q68: Task Assignment with Restrictions — Solved

There are five persons P, Q, R, S and T each one of whom has to be assigned one task. Neither P nor Q can be assigned Task-1. Task-2 must be assigned to either R or S. In how many ways can the assignment be done?

  1. 6
  2. 12
  3. 18
  4. 24

Answer: (d) 24

Solution

  1. Read the set-up. There are 5 persons (P, Q, R, S, T) and each gets exactly one task. The question implies 5 tasks, Task-1 to Task-5, so every task goes to exactly one person. This is an arrangement of 5 people in 5 slots, with two restrictions.
  2. List the restrictions. - Task-1 cannot go to P or Q. So Task-1 can only go to R, S or T. - Task-2 must go to R or S.

  3. Fill the most restricted slot first. Task-2 has only 2 choices (R or S). Assign it first: 2 ways.

  4. Now fill Task-1. Its allowed people are R, S and T. One of R or S is already doing Task-2, so that person is not available. Task-1 has 3 − 1 = 2 choices left. - If Task-2 = R, Task-1 can be S or T. - If Task-2 = S, Task-1 can be R or T. So Task-1: 2 ways for each choice of Task-2.

  5. Fill the remaining 3 tasks (Task-3, Task-4, Task-5). There are 3 persons left and no restrictions on these tasks. They can be arranged in 3! = 3 × 2 × 1 = 6 ways.

  6. Multiply: 2 × 2 × 6 = 24.
  7. Check by cases on Task-1 instead: - Task-1 = T: Task-2 can be R or S (2 ways). The other 3 persons take the other 3 tasks in 3! = 6 ways. Total 2 × 6 = 12. - Task-1 = R: Task-2 must be S (1 way). The rest: 6 ways. Total 6. - Task-1 = S: Task-2 must be R (1 way). The rest: 6 ways. Total 6. - Sum: 12 + 6 + 6 = 24. Both methods agree.

  8. Answer: 24 ways.

Option-wise explanation

  • a: incorrect — 6 is only 3!, the number of ways to fill the three unrestricted tasks. It leaves out the 4 valid ways to fill Task-1 and Task-2 together. It is also the count for just one case, such as Task-1 = R.
  • b: incorrect — 12 counts only the case where T takes Task-1 (2 × 3! = 12). It misses the cases where R or S takes Task-1 and the other one takes Task-2, which add 6 + 6 more.
  • c: incorrect — 18 comes from 3 × 3!: three choices for Task-1 (R, S, T) times the arrangements of the rest. This forgets that Task-2 is then forced or has two choices, depending on who took Task-1. The cases are not equal, so one 'average' multiplier does not work.
  • d: correct — Task-2 has 2 choices (R or S). Task-1 then has 2 choices (the other of R/S, or T). The last 3 tasks can be filled in 3! = 6 ways. 2 × 2 × 6 = 24.

How to eliminate

Every option is a multiple of 6 = 3!, so the last three free tasks always give a factor of 6. The question comes down to one thing: how many valid (Task-1, Task-2) pairs are there? List them directly: (S, R), (T, R), (R, S), (T, S). That is 4 pairs. 4 × 6 = 24. Listing these four pairs is quicker and safer than a formula. It also guards against the two usual slips: giving Task-1 three choices without removing the Task-2 person (gives 18 or 36), and counting only the T-does-Task-1 case (gives 12). About 30–45 seconds. Attempt it in the first pass: it is a short, sure question.

Know more

Counting assignments with restricted slots

When n people fill n distinct tasks with no rules, the count is n!. When some tasks have rules, use this order:

  1. Fill the most restricted slot first. It has the fewest choices.
  2. Then the next restricted slot. Remove anyone already used. Two restricted slots can share people, as Task-1 and Task-2 share R and S here.
  3. Fill the free slots with k!, where k is the number of people left.
  4. Multiply. If the number of choices for a later slot depends on who took an earlier one, split into cases and add.
Situation Method
No restrictions n!
One slot limited to m people m × (n − 1)!
Two slots with overlapping allowed sets Count valid pairs by listing, then × (n − 2)!
"X must not do task k" n! − (n − 1)!

Worked variant. Four persons A, B, C, D get four tasks. A cannot do Task-1. Task-2 must go to A or B.

  • Valid (Task-1, Task-2) pairs: Task-1 can be B, C or D. Pairs: (B, A), (C, A), (C, B), (D, A), (D, B). That is 5 pairs.
  • The remaining 2 persons take 2 tasks: 2! = 2.
  • Total = 5 × 2 = 10.

Check: by the 'one slot' rule, the count with only the Task-1 rule is 3 × 3! = 18. The Task-2 rule then removes some of these. A quick listing of the restricted pair is the safest check.