Opus5
Interface SearchTree
- All Superinterfaces:
- Comparable, Container, SearchableContainer, Tree
- All Known Implementing Classes:
- BinarySearchTree, MWayTree
- public interface SearchTree
- extends Tree, SearchableContainer
Encapsulates methods common to all search trees.
- Version:
- $Id: SearchTree.java,v 3.1 1998/07/28 01:32:17 brpreiss Exp $
- Author:
- Bruno R. Preiss, P.Eng.
|
Field Summary |
static java.lang.String |
copyright
|
copyright
public static final java.lang.String copyright
findMin
public Comparable findMin()
- Returns the "smallest" object in this tree.
The smallest object in this tree is the one which is less
than all the rest.
- Returns:
- The smallest object in this tree.
findMax
public Comparable findMax()
- Returns the "largest" object in this tree.
The largest object in this tree is the one which is greater
than all the rest.
- Returns:
- The largest object in this tree.