r/AskComputerScience • • Apr 10 '26

What is average case complexity?

the average-case complexity of an algorithm is the amount of some computational resource (typically time) used by the algorithm, averaged over all possible inputs.

Aren't there infinite possible inputs? How does that make sense?

4 Upvotes

17 comments sorted by