Matrix exponentiation offers a method to compute Fibonacci numbers with _______ time complexity, making it highly efficient for large values of n.

  • O(2^n)
  • O(log n)
  • O(n)
  • O(n^2)
Matrix exponentiation provides a method to compute Fibonacci numbers with O(log n) time complexity. This efficient algorithm is especially advantageous for large values of n compared to the traditional recursive approach with higher time complexity.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *