Am I getting the math wrong here? Going from O(n) to O(log n) (with no change in constant factor) for a million items would be going from ~1000000c ops to ~20c ops, which would be a 50000x improvement?
Big O Notation omis constant factors that tend to be significantly larger for log-n algorithms.
I think he talked from personal experience.
Big O Notation omis constant factors that tend to be significantly larger for log-n algorithms.
I think he talked from personal experience.