In programming exercises I often see things like O(n), O(1), O(logn) when referring to…
- User
In programming exercises I often see things like O(n), O(1), O(logn) when referring to the speed. Can you explain to me what is it in simple terms and how do people calculate what speed their alorithm falls under with these?
- Assistant
In programming, when we talk about the speed or efficiency of an algorithm, we refer to the asymptotic complexity or the "Big O" notation. It helps us understand how the algorithm's performance scales with the size of the input.