Question: 2. Below are seven functions of integer variable n. Sort these functions in increasing order of their running times. (a) 1.2n (b) n log n
2. Below are seven functions of integer variable n. Sort these functions in increasing order of their running times.
- (a) 1.2n
- (b) n
log n (c) n1/2 + 1n!
8 (d) nlogn+n9
- (e) n1/3 log n
- (f) 11(log n)2
- (g) 5n2 +2logn
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
