Algorithm A uses 20n·log(n) operations, while algorithm B uses n^3 .
Determine
the value n0 such that A is better than B for all n>=n0.
(”log” is log-base 2. You should solve this numerically)
20n·log(n)<=n^3
simplify
20 log(n)<=n^2
What should be done next?
Determine
the value n0 such that A is better than B for all n>=n0.
(”log” is log-base 2. You should solve this numerically)
20n·log(n)<=n^3
simplify
20 log(n)<=n^2
What should be done next?