Britannica Sources used in this answer

Why do exponential-time algorithms become impractical even for moderately sized inputs?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

Exponential-time algorithms become impractical for even moderately sized inputs because their execution time grows at an extremely rapid rate as the input size (n) increases.12

In computational complexity, algorithms are categorized by how their resource requirements scale. While problems solvable in polynomial time are considered efficient and tractable, those requiring exponential time are deemed intractable. For an algorithm with a complexity of O(2n), the number of operations required increases so sharply that even a computer capable of performing 1018 operations per second would struggle; for instance, while an input of n=10 might finish in less than a second, an input of n=100 could take over 40,000 years to complete.31

Because these intractable problems cannot be solved efficiently, computer scientists often rely on heuristic algorithms or approximation methods to find solutions that are reasonably close to optimal within a practical timeframe.32