Skip to content

Select team under if-then constraints

5 lessons · 35 questions · 24 PYQs · ~90 s per question

The idea

A team is picked from a pool under rules of the form "A and B not together", "if A then B", "exactly one of X and Y". The set has only a handful of valid teams, and the skill is to list them.

Textbook vs exam method

Exam method

  1. Fixed pairs first. "Arpit iff Amal" joins two people into one unit.
  2. Exactly-one rules. they give a two-way split at once (Ashwani branch or Arpit branch).
  3. Kill branches fast. a branch that cannot fill the team size is dead.
  4. Budget sets. list all triples within the limit, tick off the barred pairs, then read the maximum.

Worked examples

Example 1Easy

Four are chosen from eight. Exactly one of Ashwani and Arpit is in; Ashwani rules out Abhishek and Anand; Arpit comes with Amal only; Avinash excludes Arpit and Ankit. Is Ashwani ever chosen?

Example 2Easy

A committee of three from P (cost 5), Q (3), T (2) and U (1) may cost at most 8, and Q and T cannot both be in. Which committees fit?

Traps

  • Converse error: "If A then B" does not say "If B then A".
  • Condition leakage: an "if" in one question applies only there.
  • Team size: a branch that cannot reach the size is not a valid branch.

Formulas

If P⇒Q then ¬Q⇒¬P (contrapositive); P⇔Q means both in or both out\text{If } P \Rightarrow Q \text{ then } \neg Q \Rightarrow \neg P \text{ (contrapositive); } P \Leftrightarrow Q \text{ means both in or both out}

Teams of size k from n: (nk), reduced by each barred pair\text{Teams of size } k \text{ from } n \text{: } \binom{n}{k}, \text{ reduced by each barred pair}

In the exam

Shortcuts
  • Split on the person who appears in the most clues (the case split usually kills one branch).
  • Rewrite 'exactly one of X and Y' as X xor Y, and 'X iff Y' as one block.
  • Write the surviving teams out in full once, then every question is a look-up.
  • 'Must be in' means in every surviving team; 'cannot be in' means in none.
~90 s per question at exam speed
When to skip: Sets with 5 or 6 rules and 8 candidates: attempt if a branch dies quickly (4 minutes). Budget or scoring sets: attempt, they are a list of 10-15 triples.
Next sub-topicGrouping into teams

Practise this free. Every mistake is saved and comes back until you fix it.

Start free