Question: 3. Func8 (n) 1 s 0; 2 i + n; 3 while (i < 4n) do 4 j n; 5 6 7 while (

3. Func8 (n) 1 s 0; 2 i + n; 3 while

3. Func8 (n) 1 s 0; 2 i + n; 3 while (i < 4n) do 4 j n; 5 6 7 while ( 10) do s+ s +i-j; j [j/4]; end i 2 * i; 8 9 10 end 11 return (s); T(n) = (log4n) (log, 4n log n) = (lg n) time of inner loop #iterations of outer loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!