Assignment1 Asymptotic Notation
Assignment1 Asymptotic Notation
Assignment1 Asymptotic Notation
Assignment-2
Subject: Data Structure Code:CSE3001
1. For the functions, nk and cn, what is the asymptotic relationship between these functions?
Assume that k>- 1 and c> 1 are constants. Explain your answer in brief .
2. If f(n) = Θ(g(n)) and g(n) = Θ(h(n)), then h(n) = Θ(f(n)), then proof that Θ is transitive.
3. Proof n/100 = Ω(n).
4. The running time of for/while loop is number of iterations * running time of statement
Sum=0
for (j=0;j<i*i;j++)
for(k=0;k<j;k++)
sum++;
Gate-2007
5. If f(n) = O(g(n)) and g(n) = O(f(n)) then f(n) = g(n). Is this statements are True or False.
You must briefly justify your answer.