Exponential time
When an algorithm's work doubles every time 1 item is added: O(2ⁿ). It grows so fast that with little data it's already unusable.
Example
Trying every combination of 30 objects is 2³⁰: over 1 billion. With 31 objects, twice that.
Test yourself: Exponential time
Time complexity
In O(2ⁿ), adding 1 to n ___ the work.
With n = 20 it's about 1 million steps; with n = 21, about 2 million. Each extra item doubles everything.
0/1
▶ Play