Is n log n greater than N?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at the University of Tokyo, Lives in Tokyo, Japan.
Asymptotic complexities are about the behavior of the running time as the input sizes go to infinity. No, it will not always be faster. BUT, as the problem size grows larger and larger, eventually you will always reach a point where the O(log n) algorithm is faster than the O(n) one.Feb 9, 2012
2023-06-19 12:09:22
评论(499)
Helpful(122)
Helpful
Helpful(2)

Benjamin Martin
QuesHub.com delivers expert answers and knowledge to you.
Asymptotic complexities are about the behavior of the running time as the input sizes go to infinity. No, it will not always be faster. BUT, as the problem size grows larger and larger, eventually you will always reach a point where the O(log n) algorithm is faster than the O(n) one.Feb 9, 2012