Frontline Lookup
Also called sequential lookup, it is searched from the first element of the array until it finds the location of the element to find until the result is found.
The best time is 1, the first is the long shot to be looked for, the worst look is O (n), and the last is the element to be found.
20 percent semi-search
Binary find is to look for the array elements are divided into two parts, each elimination of one-second, but there is a major premise is that the elements must be ordered, if the order is unordered, and then to sort operations, the search method, similar to the English Dictionary of Java, we can find the letter J, and then carefully find.
The best situation time is 1, that is, the first time to separate the search found, the worst lookup status is O (n), is the data to be found in the last time.
Tri-Interpolation Lookup
Interpolation lookup is a search method similar to binary lookup, where the interpolation lookup is the concept of a scale, finding the possible location of the data to be looked up, and then comparing it, if the value is smaller than what is being looked for, it means that the value to be looked for may appear in the range before the value, thus narrowing the scope to determine the final goal.
42 Fork Find Tree
A binary lookup tree is a spanning tree that treats the found data first, making sure that the value of the left branch of the tree is less than the value of the right branch, and then compares the size of the row and the parent node of each node to find the most appropriate range.
This algorithm is very efficient to find, but if you use this lookup method, you first create the tree.
Find algorithms related blogs: http://www.open-open.com/solution/view/1410494404789