All Packages Class Hierarchy This Package Previous Next Index
Class DataStructures.BinarySearch
java.lang.Object
|
+----DataStructures.BinarySearch
- public class BinarySearch
- extends Object
-
BinarySearch()
-
-
binarySearch(Comparable[], Comparable)
- Performs the standard binary search
using one comparison per level.
-
main(String[])
-
BinarySearch
public BinarySearch()
binarySearch
public static int binarySearch(Comparable[] a,
Comparable x) throws ItemNotFound
- Performs the standard binary search
using one comparison per level.
- Returns:
- index where item is found.
- Throws:
ItemNotFound
- if appropriate.
main
public static void main(String[] args)
All Packages Class Hierarchy This Package Previous Next Index