Why a programmer would prefer O(N^3) instead of O(N^2)

前端 未结 7 1583
面向向阳花
面向向阳花 2021-01-07 16:57

I was studying for my final exam and there is a question in the archive that I cannot find its answer:

The order-of-growth of the running time of one

7条回答
  •  星月不相逢
    2021-01-07 17:10

    another thing is, some algorithms have a big constant factor. a O (N^2) might have a big constant factor that won't make it really practical to use ( if N is small enough as kindly noted by Thorban)

提交回复
热议问题