Big-O Notation Reference

Posted by Dustin Boston on in .

This chart matches common Big-O notations with their names and relative performance ratings. Is illustrates how an algorithm’s efficiency worsens as its computational complexity grows.

NotationNamePerformance
O(1)ConstantExcellent
O(log n)LogarithmicGood
O(n)LinearFair
O(n log n)LinearithmicBad
O(n^2)QuadraticHorrible
O(2^n)ExponentialHorrible
O(n!)FactorialHorrible
Tags: