Britannica AI Icon

Quick Summary

An exponential-time algorithm is a type of algorithm whose runtime grows exponentially with the size of the input. This means that as the input size (n) increases, the time required to run the algorithm increases dramatically, making it impractical for large inputs.123

For example, an algorithm with a time complexity of O(2n) would take a very long time to complete even for moderately sized inputs. While an input of n=10 might run in under a second, an input of n=100 could take thousands of years. Problems solvable in polynomial time are considered efficient, while those requiring exponential time are often deemed intractable. The P versus NP problem explores whether all problems solvable in exponential time (NP problems) can also be solved in polynomial time (P problems).124

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

Ask Britannica AI about this topic

Britannica doesn't have a full article on this topic, so we've curated a list of our relevant coverage.