Computational complexity theory

How fast can you solve a puzzle?

Image: EU2017EE Estonian Presidency, CC BY 2.0, via Wikimedia Commons

Computational complexity theory

How fast can you solve a puzzle?

Imagine you're trying to find the quickest way to sort a deck of cards by color.

The time it takes to sort those cards depends on the sorting method you choose. Some methods are faster than others, even if the deck is the same size every time.

Example

If you use a simple method like picking cards one by one and placing them in the right color pile, it might take 100 seconds. But if you use a faster method like dividing the deck into smaller piles and sorting those first, it could take only 10 seconds.

Remember this

The sorting method's efficiency is what we call computational complexity, measuring time and space resources needed to solve a problem.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath