What is Fibonacci search?

Searching Algorithms Questions



24 Short 58 Medium 71 Long Answer Questions Question Index

What is Fibonacci search?

Fibonacci search is a searching algorithm that uses the Fibonacci sequence to divide the search space into smaller intervals. It is an efficient search algorithm for sorted arrays, similar to binary search. The algorithm calculates the Fibonacci numbers until it finds a number that is greater than or equal to the size of the array. It then uses these Fibonacci numbers to determine the two intervals to search in, reducing the search space by dividing it into smaller intervals. This process continues until the desired element is found or the search space is empty. Fibonacci search has a time complexity of O(log n) and is considered more efficient than binary search for large arrays.