Optimal algorithm(optimal)

An algorithm whose cost matches a proven floor for the problem. A linear scan that must read every item cannot be improved in class. Recognising optimal stops you from wasting effort on tuning the wrong thing.

Back to the glossary