Question: Find the recurrence relation of the code below and find the runtime analysis of it using any method. function mult(a, b) if b = 0
Find the recurrence relation of the code below and find the runtime analysis of it using any method.

function mult(a, b) if b = 0 : return 0 else if bis odd: return (mult (2 a, (b/2) +a) else: return (mult (2a, b/2)))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
