Class BST

java.lang.Object
  extended by BST

public class BST
extends java.lang.Object


Constructor Summary
BST()
           
 
Method Summary
 void balance()
           
 BTNode find(java.lang.Comparable key)
           
 int height()
           
 java.util.List<BTNode> inOrderTraversal()
           
 void insert(BTNode node)
           
 boolean isBalanced()
           
 boolean isBST()
           
 boolean isEmpty()
           
 BTNode remove(java.lang.Comparable key)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BST

public BST()
Method Detail

isBST

public boolean isBST()

balance

public void balance()

find

public BTNode find(java.lang.Comparable key)

isBalanced

public boolean isBalanced()

height

public int height()

size

public int size()

insert

public void insert(BTNode node)

remove

public BTNode remove(java.lang.Comparable key)

isEmpty

public boolean isEmpty()

inOrderTraversal

public java.util.List<BTNode> inOrderTraversal()