All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class DataStructures.BinarySearch

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

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index