Lesson 17 of 20
Combinatorial explosion — double perturbations and the wall of 2ⁿ
Why exhaustive enumeration becomes impossible so quickly
In lesson 15 we saw a case where you have to switch two off together for anything to happen. So double perturbations need enumerating too. How much does that cost?
Two things grow at once.
| Single | Double | |
|---|---|---|
| Combinations to test | 2n | 4 × n(n−1)/2 = 2n(n−1) |
| Cells rolled per combination | 2ⁿ (the same either way) | |
| Total work | 2n · 2ⁿ | 2n(n−1) · 2ⁿ |
In an eight-gene toy this is no trouble at all. In a realistic hundred-gene model both are impossible.
Even with doubles in the mix, the top of the table is held by single targets — the less you touch, the better.
Python
Runs in your browser
Synergy is by definition invisible to a single-target screen. That is why the expensive double search is worth it.
Python
Runs in your browser
This table is the last piece of humility in the course. What we did was the smallest possible case.
Python
Runs in your browser
🎮 Combination calculator
Change the gene count and the number of simultaneous perturbations and watch the work required.
🤔 Check yourself
With n genes, how many double-perturbation combinations are there?
Answer There are n(n−1)/2 ways to choose the pair, and four settings per pair: (0,0) (0,1) (1,0) (1,1).
🤔 Check yourself
Why can a 'synergistic pair' not be found by single-target screening?
Answer The definition is 'useless separately, effective together'. Look only at the single results and you throw both targets away.
🤔 Check yourself
As the gene count rises, what is the main reason the work becomes unmanageable?
Answer The combination count n² grows too, but that is polynomial. The exponential 2ⁿ hits the wall first — at n=30 it is already a billion.