Order the functions below by increasing growth rates (no justification required): n^n,…
- User
Order the functions below by increasing growth rates (no justification required): n^n, n, nln n, 𝑛^1/2, 2^lgn , ln n, 10, n^1/n,√2^𝑙g𝑛, n!, lg(n^10), 2^n Let gi(n) be the ith function from the left after the ordering (the leftmost function has the slowest growth rate). In the order, gi(n) should satisfy gi(n) belongs to O(gi+1(n)). If two or more functions are equivalent (in terms of Θ), put them in [ ] separated by comma (e.g., [n^2, 5n^2]).
- Assistant
To order the functions by increasing growth rates, we'll place them in order starting with the smallest growth rate and ending with the largest growth rate. As per your requirements, I'm not providing justifications. Here is the ordered list:
10, ln n, √2^lg n, 2^lgn, lg(n^10), n^1/2, n, nln n, n^1/n, 2^n, n!, n^n
For gi(n), the ordered list would be:
g1(n) = 10, g2(n) = ln n, g3(n) = √2^lg n, g4(n) = 2^lgn, g5(n) = lg(n^10), g6(n) = n^1/2, g7(n) = n, g8(n) = nln n, g9(n) = n^1/n, g10(n) = 2^n, g11(n) = n!, g12(n) = n^n
Note that g3(n) = √2^lg n and g4(n) = 2^lgn are both equal to n^(1/2). Similarly, g5(n) = lg(n^10) is equivalent to 10·lg n. These functions could be grouped in brackets if you are considering their Θ classes:
[√2^lg n, 2^lgn], [lg(n^10)].