- Computer Science Engineering (CSE)
- Design and Analysis of Algorithms
- What is the time complexity of the recur...

Q. |
## What is the time complexity of the recursive implementation used to find the nth fibonacci term? |

A. | o(1) |

B. | o(n2) |

C. | o(n!) |

D. | exponential |

Answer» D. exponential | |

Explanation: the recurrence relation is given by fibo(n) = fibo(n – 1) + fibo(n – 2). so, the time complexity is given by: |

View all MCQs in:
Design and Analysis of Algorithms

- What is the space complexity of the recursive implementation used to find the nth fibonacci term?
- Which of the following recurrence relations can be used to find the nth fibonacci number?
- What is the time complexity of the above recursive implementation used to reverse a string?
- Consider the brute force implementation in which we find all the possible ways of multiplying the given set of n matrices. What is the time complexity of this implementation?
- What is the time complexity of the above recursive implementation of binary search?
- Consider the brute force implementation of the rod cutting problem in which all the possible cuts are found and the maximum value is calculated. What is the time complexity of this brute force implementation?
- You are given infinite coins of N denominations v1, v2, v3,…..,vn and a sum S. The coin change problem is to find the minimum number of coins required to get the sum S. What is the time complexity of a dynamic programming implementation used to solve the coin change problem?
- How many recursive calls are there in Recursive matrix multiplication by Strassen’s Method?
- What will be the best case time complexity of recursive selection sort?
- What is the average case time complexity of recursive selection sort?

Login to Continue

It will take less than 2 minutes

Report MCQ