Assignment 1
Assignment 1
22
1. What do you mean by asymptotic notations. Describe every notation with examples.
2. With an example explain the time complexity of iterative and recursive procedures.
3. A()
{ i=1,s=1;
while( s<=n)
{
I++;
s=s+i;
printf(“ A”);
}
}---find time complexity.