Question: Provide tight asymptotic bounds ( i . e . ( * ) on the worst case running times of the following two procedures. Please provide

Provide tight asymptotic bounds (i.e.(*) on the worst case running times of the following
two procedures. Please provide a very brief explanation of your answer.
(a)(7 points)
procedure BackForwardAlg (n)
if n10 then
return n
if n even then
return BackForwardAlg(n2)
else
return BackForwardAlg (n+3)
(b)(7 points)
procedure Recursive Alg(A[1dotsn])
if n==1 then
return False
mid=|~n2~|
for i=1 to mid do
for j=mid+1 to n do
if A[i]==A[j] then
return True
return (RecursiveAlg (A[1dotsmid])||RecursiveAlg(A[mid+1dotsn])
(c)(2 points) Give a one sentence description of the meaning of the output of RecursiveAlg.
 Provide tight asymptotic bounds (i.e.(*) on the worst case running times

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