Question: 9 (a) Find the best running time for the following piece of pseudocode. s+-5 t+ -5 i +0 while 3i < 3. 3 s+

9 (a) Find the best running time for the following piece of


9 (a) Find the best running time for the following piece of pseudocode. s+-5 t+ -5 i +0 while 3i < 3. 3" s+ 4s + 8t 7i t+ 7s 4t + 8i iti+9 end while O A. O(n) O B. O(n?) OC. 0(n) OD. O(3") O E. O(1) (b) Find the best running time for the following piece of pseudocode. s+ -5 t+ -5 i+1 do s+ 4s + 8t 7i t+ 7s 4t + 8i i + 9i until 3* >3. 3" OA. O(3") OB. O(ln n) O C. O(2") OD. O(2"/2) O E. O(In In n)

Step by Step Solution

3.36 Rating (146 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

ANSWER A The correct option to this question is option A not your ... View full answer

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 Mathematics Questions!