Solved

Which of the Following Recursive Calls Enables the Fibo Function

Question 9

Multiple Choice

Which of the following recursive calls enables the fibo function to perform in linear time?
Which of the following recursive calls enables the fibo function to perform in linear time?   A)  fibo(fib_current + fib_previous, fib_current, n - 1)  B)  fibo(fib_current + fib_previous, fib_current, n - 1)  + fibo(fib_current + fib_previous, fib_current, n - 1)  C)  fibo(n -1)  + fibo (n - 2)  D)  fibo(fib_current + fib_previous, fib_current, n )


A) fibo(fib_current + fib_previous, fib_current, n - 1)
B) fibo(fib_current + fib_previous, fib_current, n - 1) + fibo(fib_current + fib_previous, fib_current, n - 1)
C) fibo(n -1) + fibo (n - 2)
D) fibo(fib_current + fib_previous, fib_current, n )

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions