There are plenty of questions around O(log n)
and what it actually means, not trying to open that up again.
However on this particular answer https://stackoverflow.com/a/36877205/10894153, this image makes no sense to me:
That being said, seeing as that answer has over 100 up votes votes and has been up for more than 2 years and no comments to indicate anything might be wrong, I assume I am misunderstanding something, hence asking here for clarification (and I can't post comments because of low reputation).
Mainly, I don't understand why O(log(n))
is 10
when n == 1024
. Shouldn't this be 32
, seeing as 32^2 = 1024
?
Clearly this has an effect on O(n * log(n))
as well, but just need to understand why O(log(1024)) = 10