UPSC CSAT 2023 Q4: Worst-Case Picking of Shoe Pairs — Solved

Raj has ten pairs of red, nine pairs of white and eight pairs of black shoes in a box. If he randomly picks shoes one by one (without replacement) from the box to get a red pair of shoes to wear, what is the maximum number of attempts he has to make?

  1. 27
  2. 36
  3. 44
  4. 45

Answer: (d) 45

Solution

  1. Count the shoes in the box. Each pair is 2 shoes. - Red: 10 pairs = 20 shoes (10 left, 10 right) - White: 9 pairs = 18 shoes - Black: 8 pairs = 16 shoes - Total: 20 + 18 + 16 = 54 shoes

  2. Understand the question. "Maximum number of attempts" means the worst case. We need the number of picks that guarantees a red pair, however unlucky Raj is.

  3. Decide what a wearable pair is. A pair you can wear is one left shoe and one right shoe of the same colour. Two red left shoes are not a pair you can wear.
  4. Build the unluckiest sequence. Raj picks every shoe that does not finish a red pair before he picks one that does. - First he picks every white shoe: 18 picks. - Then he picks every black shoe: 16 picks. - Running total: 18 + 16 = 34 picks, still no red shoe.

  5. Now only red shoes are left. In the worst case he picks all red shoes of one foot first, say all 10 red left shoes. That is 10 more picks, and still no wearable red pair. - Running total: 34 + 10 = 44 picks, still no red pair.

  6. Only red right shoes are left in the box. The next pick must be a red right shoe. It matches any of the 10 red left shoes he already holds. - Picks needed: 44 + 1 = 45.

  7. Check that 45 is enough and 44 is not. After 44 picks the unlucky sequence above leaves him with no red pair, so 44 does not guarantee one. On pick 45, every shoe left in the box is a red right shoe, so a pair is certain.

Answer: 45 attempts.

Option-wise explanation

  • a: incorrect — 27 is the total number of pairs (10 + 9 + 8). It counts pairs, not shoes, and ignores the worst case completely. The trap is picking the first number you can make from the data.
  • b: incorrect — 36 = 18 white + 16 black + 2 red. It treats any two red shoes as a pair and ignores left and right. Two red left shoes cannot be worn, so the worst case also has to count all 10 shoes of one foot. This is the main trap.
  • c: incorrect — 44 = 18 + 16 + 10 is the last unlucky position, where Raj holds all the white and black shoes and all 10 red shoes of one foot but still no wearable pair. It is one short. The guaranteeing pick is the next one.
  • d: correct — In the worst case Raj picks all 34 white and black shoes, then all 10 red shoes of one foot (44 picks), and the 45th pick must complete a red left–right pair.

How to eliminate

Use the worst-case template: everything you don't want + the worst case of what you do want + 1.

  • 27 counts pairs, not shoes. A worst-case answer here has to be at least 34, because there are 34 non-red shoes. Drop 27.
  • Unwanted shoes: 18 + 16 = 34. The answer is 34 + something + 1.
  • If any two red shoes made a pair, the answer would be 34 + 1 + 1 = 36. But the shoes have to be worn, so left and right matter. That adds the 10 shoes of one foot: 34 + 10 + 1 = 45.
  • 44 is the classic "forgot the +1" option. When 44 and 45 both appear, ask whether the guaranteeing pick has been counted.

About 30–45 seconds once you remember that a wearable pair needs one left and one right shoe. Attempt it in the first round. It is quick if you avoid the 36 and 44 traps.

Know more

Worst-case (pigeonhole) picking

A "maximum attempts" or "minimum picks to be sure" question asks for the number of picks that guarantees the outcome. Build the unluckiest possible sequence, then add one.

Template: picks = (all items that can never help) + (most picks of useful items without success) + 1

The middle term depends on what counts as success:

Target Worst case before success Picks
Any 1 item of colour X all non-X items non-X + 1
2 of colour X (no left/right) all non-X + 1 of X non-X + 2
Wearable pair (left + right) of X all non-X + all of one foot of X non-X + (pairs of X) + 1
Any matching pair, k colours (socks) 1 of each colour k + 1

Worked variant. A drawer has 6 pairs of brown gloves and 5 pairs of grey gloves. How many gloves must you take out to be sure of a wearable brown pair?

  • Grey gloves are useless: 5 × 2 = 10.
  • Worst case among brown: all 6 left-hand gloves, still no pair.
  • One more glove must be a brown right-hand glove.
  • Picks = 10 + 6 + 1 = 17.

If the gloves had no left and right (like socks), the answer would be 10 + 2 = 12. Read whether the items are handed (shoes, gloves) or not (socks, balls) before you choose a row.