SEM-5 Analysis and Design of Algorithms (ADA) Assignments

1. Arrange following rate of growth in increasing order.
     2n, nlgn, n2, 1, n, lgn, n!, n3, nn, n!, √𝑛

        1 < lgn < √ N < N < N log N < n2 < n3 < 2n < n! < nn

Image Loding...


2. Prove that T(n) = n3 + 20n is Ω(n2)

Image Loding...


3. Prove that T(n) = n 3 + 20n + 1 is not O(n2 )

Image Loding...


4. Let f(n) and g(n) be asymptotically positive functions. Prove the following. f(n) + g(n) = Θ(max(f(n), g(n))).

Image Loding...


5. Prove that (n + a)b = Ө(nb)

Image Loding...


6. Is 2n+1 = Ο(2n) ? Explain

Image Loding...


7. Is 22n = Ο(2n) ? Explain.

Image Loding...


8. Prove that (lgn)lgn = Ω(n3/2)

Image Loding...


9. Prove that lg(n!) = Ө(nlgn)

Image Loding...
Image Loding...




No comments:

Get new posts by email:


APY Logo