What does O(log n) mean exactly?

后端 未结 30 2371
执念已碎
执念已碎 2020-11-22 01:19

I am learning about Big O Notation running times and amortized times. I understand the notion of O(n) linear time, meaning that the size of the input affects the g

30条回答
  •  温柔的废话
    2020-11-22 02:02

    Simply put: At each step of your algorithm you can cut the work in half. (Asymptotically equivalent to third, fourth, ...)

提交回复
热议问题