answersLogoWhite

0

There's more than one algorithms, the best one is the following:

F(n) = 1/sqrt(5) * (q1^n + q2^n)

where q1=(1+sqrt(5))/2, q2=(1-sqrt(5))/2

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the space complexity of the Dijkstra algorithm?

The space complexity of the Dijkstra algorithm is O(V), where V is the number of vertices in the graph.


Calculate the Time and Space complexity for the Algorithm to add 10 numbers?

The algorithm will have both a constant time complexity and a constant space complexity: O(1)


What is are the time complexity or space complexity of DES algorithm?

time complexity is 2^57..and space complexity is 2^(n+1).


What is the space complexity of quicksort algorithm?

The space complexity of the quicksort algorithm is O(log n) in the best and average cases, and O(n) in the worst case.


What are the two main measures for the efficiency of an algorithm?

Time complexity and space complexity.


What is the complexity of the algorithm in terms of time and space when solving a problem with an exponential space requirement?

The complexity of the algorithm refers to how much time and space it needs to solve a problem. When dealing with a problem that has an exponential space requirement, the algorithm's complexity will also be exponential, meaning it will take a lot of time and memory to solve the problem.


What is the space complexity of breadth first search algorithm?

The space complexity of the breadth-first search algorithm is O(V), where V is the number of vertices in the graph being traversed.


What is the space complexity of quick sort algorithm?

The space complexity of the quick sort algorithm is O(log n) in the best and average cases, and O(n) in the worst case.


What is the space complexity of the Quick Sort algorithm?

The space complexity of the Quick Sort algorithm is O(log n) in the best and average cases, and O(n) in the worst case.


What is the constant extra space complexity of the algorithm being used?

The constant extra space complexity of an algorithm refers to the amount of additional memory it requires to run, regardless of the input size. It is a measure of how much extra space the algorithm needs beyond the input data.


What is the space complexity of Breadth-First Search (BFS) algorithm?

The space complexity of the Breadth-First Search (BFS) algorithm is O(V), where V is the number of vertices in the graph being traversed.


What is the space complexity of the Breadth-First Search (BFS) algorithm?

The space complexity of the Breadth-First Search (BFS) algorithm is O(V), where V is the number of vertices in the graph being traversed.