Is there any way to compute the time complexity of an algorithm programatically? For example, how could I calculate the complexity of a fibonacci(n) function?
Is there any way to compute the time complexity of an algorithm programatically? For
Share
The undecidability of the halting problem says that you can’t even tell if an algorithm terminates. I’m pretty sure from this it follows that you can’t generally solve the complexity of an algorithm.