Class mjr.pstree.PSTree
All Packages Class Hierarchy This Package Previous Next Index
Class mjr.pstree.PSTree
java.lang.Object
|
+----leda.ps_tree
|
+----mjr.pstree.PSTree
- public class PSTree
- extends ps_tree
Augmented priority search tree for the java demo
-
PSTree()
-
-
enumerate(int, int, int, ps_item, Vector, Vector)
- mjr: returns success and failure vectors for range queries
-
inorder(PSTCommand, PSTCommand)
- mjr: traverse the tree inorder using these silly command objects.
-
inorder(PSTCommand, PSTCommand, ps_item)
-
-
mjr()
-
-
postorder(PSTCommand, PSTCommand)
- mjr: traverse the tree postorder using these silly command objects.
-
postorder(PSTCommand, PSTCommand, ps_item)
-
-
preorder(PSTCommand, PSTCommand)
- mjr: traverse the tree preorder using these silly command objects.
-
preorder(PSTCommand, PSTCommand, ps_item)
-
-
range_query(int, int, int)
- mjr: just like enumerate, but returns a vector of results.
PSTree
public PSTree()
enumerate
protected void enumerate(int x1,
int x2,
int y0,
ps_item p,
Vector success,
Vector failure)
- mjr: returns success and failure vectors for range queries
range_query
public Vector[] range_query(int x1,
int x2,
int y0)
- mjr: just like enumerate, but returns a vector of results.
The first element is found nodes, the second is nodes
that were visited by the search but not found
preorder
public void preorder(PSTCommand nodeCommand,
PSTCommand leafCommand) throws Throwable
- mjr: traverse the tree preorder using these silly command objects.
preorder
protected void preorder(PSTCommand nodeCommand,
PSTCommand leafCommand,
ps_item p) throws Throwable
postorder
public void postorder(PSTCommand nodeCommand,
PSTCommand leafCommand) throws Throwable
- mjr: traverse the tree postorder using these silly command objects.
postorder
protected void postorder(PSTCommand nodeCommand,
PSTCommand leafCommand,
ps_item p) throws Throwable
inorder
public void inorder(PSTCommand nodeCommand,
PSTCommand leafCommand) throws Throwable
- mjr: traverse the tree inorder using these silly command objects.
inorder
protected void inorder(PSTCommand nodeCommand,
PSTCommand leafCommand,
ps_item p) throws Throwable
mjr
public static void mjr()
All Packages Class Hierarchy This Package Previous Next Index