All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class DataStructures.BinarySearch

java.lang.Object
   |
   +----DataStructures.BinarySearch

public class BinarySearch
extends java.lang.Object

Constructor Index

 o BinarySearch()

Method Index

 o binarySearch(Comparable[], Comparable)
Performs the standard binary search using one comparison per level.
 o main(String[])

Constructors

 o BinarySearch
 public BinarySearch()

Methods

 o 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.
 o main
 public static void main(java.lang.String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index