Question: Question 3 ( 2 0 . 0 marks ) Your lecturer is a funny guy; given an unsorted list of integer numbers of n elements,
Question marks Your lecturer is a funny guy; given an unsorted list of integer numbers of n elements, and to find the sum of all the numbers in the list, he will use the following algorithms. function SumA left, right if left right: return else if left right: return Aleft mid floorleftright Isum SumA left, mid rsum SumA mid right return Isum rsum Amid function myMethodA N B new Array of length B SumA N return B a Analyse the asymptotic runtime complexity of the method myMethods. Give the worstcase and the bestcase running time in terms of o notation. Justify your answer. marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
