edu.princeton.cs.algs4.growingtree.demos
Class BSTDeletion<P extends NodeProperties>

java.lang.Object
  extended by edu.princeton.cs.algs4.growingtree.demos.BSTDeletion<P>
All Implemented Interfaces:
IDeleteOperator<P>

public class BSTDeletion<P extends NodeProperties>
extends java.lang.Object
implements IDeleteOperator<P>


Constructor Summary
BSTDeletion()
           
 
Method Summary
 void doDelete(IAlgorithmNode<P> root, IDeletingNode<P> node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BSTDeletion

public BSTDeletion()
Method Detail

doDelete

public void doDelete(IAlgorithmNode<P> root,
                     IDeletingNode<P> node)
Specified by:
doDelete in interface IDeleteOperator<P extends NodeProperties>
Parameters:
root - The root of the tree
node - Node to be deleted