BST Applet Parameters

Okay, I'll admit that the applet's optional parameters are not entirely self-explanatory at this point, hence we've gone to no trouble describing the configuration here. In particular: the syntax for specifiying the sequences of operations to be performed in canned demos is rather cryptic at this point, and should be improved. (Currently documented only in Parser.java.) The same goes for parameters that control layout options, i.e. whether to include certain menus, captions, color schemes, and so forth. (Documented in Graph.java.)

Finally, the parameters that control the "physics" of the trees - drag, spring constants for edges, accelerations and impact (as the small ball impacts nodes) - should also be configurable. At the moment, all but drag (viscosity) is hardcoded into the applet. This is reset via the flag "-V = x", where x is a float between 0 and 1.

By the way, we've intentionally assigned different values to this parameter on different demos; this explains why there's more "bounce" on some than on others.) For fun, here are two extreme examples illustrating how the "viscosity" parameter affects the animation.

viscosity = 0.2 viscosity = 0.85

Back.