Start free trial
Take Naologic for a spin today, no credit card needed and no obligations.
Start free trial

Asymptotic Computational Complexity - Is O log n faster than O n?


When dealing with bigger input sizes, O(log n) is sometimes quicker than O(n). The reason for this is in comparison to linear time complexity, logarithmic time complexity grows at a slower rate. Difference in performance between O(log n) and O(n) grows larger with increasing input size, or 'n'.