All Packages Class Hierarchy This Package Previous Next Index
Class DataStructures.BinarySearch
java.lang.Object
|
+----DataStructures.BinarySearch
- public class BinarySearch
- extends java.lang.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(Supporting.Comparable a[],
Supporting.Comparable x) throws Exceptions.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(java.lang.String args[])
All Packages Class Hierarchy This Package Previous Next Index