**Solution:**

**Question No 01 Solution**

**Part A:**

for (i = 1 ; i<= n; i++)……n times

{

for (i = 1 ; i<= n^{2 }; i++)…….n^{2 }times

{

for (i = 1 ; i<= n^{3 }; i++)……n^{3}times

{

a = x+y;……. Constant c

}

}

}

T(n)=n*n^{2}*n^{3}+c

T(n)=n^{6}+c

T(n)=n^{6}

**Part B:**

for ( y = 1 ; y <= n; i++)……n times

{

for (i = 1 ; i<= n^{2 }; i++)…….n^{2 }times

{

for (i = 1 ; i<= n^{3 }; i++)……n^{3}times

{

a = x+y;……. Constant c

}

}

}

T(n)=n*n^{2}*n^{3}+c

T(n)=n^{6}+c

T(n)=n^{6}

**Question No 02 Solution**

matrix (int rows, int columns)

array matrix [rows][columns]

for i 1 to rows…….n times{

do for j 1 to columns…….n times{

do print Matrix[rows][columns]tab;

}

print endline;

T(n)=n*n=n^{2}