•When choosing a particular algorithm there are three
things to consider:
•
1)How easy is the algorithm to understand and
implement?
2)How fast is the algorithm?
3)How much memory does the algorithm use?
4)
•Implementing an algorithm because it is easy to write
and debug, even if it is
slow is often the right choice.
•We can sometimes trade time (execution time) for space (memory) and vice versa.
•Whether time is more important than space depends on the
particular problem you have.
•
•