Question: please explain how you got answers. thanks so much Exercise-4 Consider the following pseudo code: 1- for (p=5, j = 1; js n; j++) //outer
Exercise-4 Consider the following pseudo code: 1- for (p=5, j = 1; js n; j++) //outer for loop 2- for (q = -5, k = 1; ks 10; k++){ // inner for loop 3- p = p + + k; 4-. q+= q *j: 5- } // end inner loop What is the LCV, for outer loop? What is the LCV, for inner loop? Compute no. of outer loop iterations? In every iteration of the outer for loop, compute no. of inner loop iterations? Compute T(n) for statement 3. Compute T(n) and Big Oh for above pseudo code and print values for real constant C and integer no
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
