PQ Tree Demo

This applet graphically demonstrates reduction operations applied to a PQTree.

Here is a 'Java executable' version of this applet (Must provide command line arguments)
Here is the source code
Here is the report [pdf] describing this project


This applet requires Java 1.4 or later to run.
The Java RunTime Environment (JRE) 1.4.1 can be downloaded here:
http://java.sun.com/j2se/1.4.1/download.html


Legend

P Nodes are drawn as Circles
Q Nodes are drawn as Rectangles
Full Nodes are filled in Black
Partial Nodes are filled in Grey
Empty Nodes are filled in White
Pseudonodes are filled in Green
Nodes with valid parent pointers are drawn in Black
Nodes without valid parent pointers are drawn in Red
Nodes whose parent pointer is a Pseudonode are drawn in Green

To Select Elements for Reduction:

Hold down the Control key and Select elements from the list on the left
(The Shift key may be used in place of the Control key to select ranges)

To Perform a Reduction on the PQTree:

Click the Reduce button (After selecting elements)

To Perform a Reduction on the PQTree step by step:

Click the Step button (After selecting elements)
Note: Click the Reduce button to complete the Reduction normally.

To Animate a Reduction on the PQTree:

Select the Show All Steps check box
Enter a value in the Pause In Seconds field
Click the Reduce button (After selecting elements)

To Stop Animation of a Reduction on the PQTree:

Click the Reduce (without Show All Steps selected) to complete the Reduction normally
Click the Step button to complete the Reduction step by step
Click the Reset button to reset the PQTree

To Reset the PQTree:

Click the Reset button




Back To Jon Harris' Portfolio     Back To Jon Harris' Website