TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Interpolation search algorithm More...
#include <iostream>
Go to the source code of this file.
Functions | |
int | InterpolationSearch (int A[], int n, int x) |
int | main () |
Interpolation search algorithm
Definition in file interpolation_search2.cpp.
int InterpolationSearch | ( | int | A[], |
int | n, | ||
int | x ) |
function to search the value in an array using interpolation search
[in] | arr | array to search in |
[in] | value | value to search for |
[in] | len | length of array |
Definition at line 15 of file interpolation_search2.cpp.
int main | ( | void | ) |
main function
< passed array A inside the InterpolationSearch function
Definition at line 32 of file interpolation_search2.cpp.