Exercises: Algorithm Efficiency
May 072018Before attempting these exercises, you should read the posts on dynamic analysis and static analysis.
Before attempting these exercises, you should read the posts on dynamic analysis and static analysis.
Efficiency is important; people don’t like waiting for computers to slowly do things that ought to be fast.
So far we’ve been thinking about this in vague terms; we know, for example:
Now it’s time to go into detail: how do we know how fast an algorithm is?