How to …?
If the problem size is small, you can ignore an algorithm’s efficiency.
Compare algorithms for both style and efficiency.
Order-of-magnitude analysis focuses on large problems.
Sometimes you may have to weigh the trade-offs between an algorithm’s time requirements and its memory requirements.