f1 = n3n1/2
and f6 =n3
both are of O(n3) order but f1 have some extra multiplying factor so relation between these will be f6<f1
f2 = 3n that is exponential function and it is most costly ever so it is largenst among all.
f3 = n + lg ( n3 ) it can be solved like n + 3 * lg(n) and if there exist n already in expression then it will be order of n without any second thought so here O(n)
f4 = (1/3)n + 54 it is almost comutatble and it is order of O(1) i.e. the lowest costly in given set.
f5 = n lg n that is itself cost without any second step solution and it is O(n log n and) more than O(n)
so by these all analysis we found that
O(1) < O (n) < O(n lg n) < O( n3 ) < O(
n3n1/2 ) < O ( 3n)
and in term of function
f4 < f3 < f5 < f6 < f1 < f2
so
| a | f4 |
| b | f3 |
| c | f5 |
| d | f6 |
| e | f1 |
| f | f2 |
Hope this helps!
You can ask your doubts in comment section.
Kindly appreciate the help by upvoting the answer. Thank you!
Arrange the following functions in ascending order of growth rate. That is, if function g(n) immediately...
Arrange the following functions in ascending order of asymptotic growth rate; that is if function g(n) immediately follows function f(n) in your list, then it should be the case that f(n) is O(g(n)): 2 Squareroot log n, 2^n, n^4/3, n(log n)^3, n log n, 2 2^n, 2^n^2. Justify your answer.
1. Take the following list of functions and arrange them in ascending order of growth rate. That is, if function g(n) immediately follows function f(n) in your list, then it should be the case that f(n) is (g(n)). fi(n) = 10”, fz(n) = n3, f3(n) =n", fa(n) = log2 n, f5(n) = 2V1082 n
Order of Growth Rate Order the following functions by asymptotic growth: (i) fi(n) 3" (ii) f2(n) ni (iii) fa(n) 12 (iv) fa(n) 2log2 n (v) fs(n) Vn (vi) f6(n) 2" (vii) fr(n) log2 n (viii) fs(n) 2V (ix) fo(n) n3
76. Arrange the following functions in ascending or- der of growth rate: 4000 log n, 2n2 + 13n - 8, 1,036, 3n log n, 2" - n2, 2n! - n, n2 – 4n.
1. Asymptotic Bounds la) Rank the following functions at ascending order; that is, find an arrangement fi, f2,..., fg of the functions satisfying f1 = O(f2), fz = O(fz), ...,f7= O(fy). Briefly show your work for this problem. (2pts) Ign n n n? (lg n) len 21gn n? +n nlgign 1b) Partition your list into equivalence classes such that f(n) and g(n) are in the same class if and only if f(n) = (g(n)). (2pts)
Introduction to Algorithms course
Arrange the following in increasing order of asymptotic growth rate. For full credit it is enough to just give the order. (a) fi(n) = n4/100 (b) f2(n) = n3/20 (c) f3(n) = 23vn (d) f4(n) = n(log n) 1000 (e) f5(n) = 2n log n (f) f6(n) = 2(log n)0.9
Matching A function fin) is of higher order than gin) if f (n) E 2 (9 (n)) In other words, f(n) is of higher order than gín) if g(n) is an asymptotic lower bound to fín) Match the following functions based on their order. Assign the number 1 to the function with the lowest order. Assign the same number to functions with the same order I Choose ] 2A(n-1) I Choose Square Root (n) I Choose l 1000lg 2(n) I...
Order the following functions by asymptotic growth rate: 4n, 2^log(n), 4nlog(n)+2n, 2^10, 3n+100log(n), 2^n, n^2+10n, n^3, nlog(n) You should state the asymptotic growth rate for each function in terms of Big-Oh and also explicitly order those functions that have the same asymptotic growth rate among themselves.
16. Order the following functions from lowest to highest 0-class. fs= 4n /n+2n2 - fonlg (n')-lg (n'3) f2- 3n -lg (lg (n)) + n°.5 fs=3n3- 2n2 +4n - 5 f, 31459 + 1.5n lg (n) f=1.2" - 0.8" +2n2
16. Order the following functions from lowest to highest 0-class. fs= 4n /n+2n2 - fonlg (n')-lg (n'3) f2- 3n -lg (lg (n)) + n°.5 fs=3n3- 2n2 +4n - 5 f, 31459 + 1.5n lg (n) f=1.2" - 0.8" +2n2
3-3 Ordering by asymptotic growth rates a. Rank the following functions by order of growth; that is, find an arrangement 81,82, 830 of the functions satisfying gi = Ω(82), g2 Ω(83), , g29 = Ω(g30). Partition your list into equivalence classes such that functions f(n) and g(n) are in the same class if and only if f(n) = Θ(g(n)) Chaptr3 Growth of Functions 1n In Inn lg* g nn-2" n'ln Ig nIn n 2" nlgn 22+1 b. Give an example...