fibonaccihakumenetelmä
The fibonacci hakumenetelmä, commonly known as the Fibonacci search method, is a search algorithm used to locate a target value within a sorted array or list. It uses Fibonacci numbers to determine probe positions and repeatedly narrows the search interval until the key is found or the interval is exhausted.
In practice, the method starts by finding a Fibonacci number that is at least as large as
Performance-wise, the Fibonacci search has a worst-case time complexity of O(log n), similar to binary search,
Related algorithms include binary search and interpolation search. The method is a classical approach in the