Visual Stack Applet

No Java 2 SDK, Standard Edition v 1.4 support for APPLET!!

This applet provides (a) a framework for building visual demonstrations of data structures, and (b) a demonstration of the Stack data structure in particular.

Here is a sample sequence of commands that can be pasted into the Input text area.

PUSH Aaron
PUSH Barbara
PUSH Carl
PUSH Dave
POP
PUSH Donna
PUSH Evan
DELAY 1000 ; change speed to 1000 ms per operation
PUSH Francesca
PUSH Gertrude
POP
PUSH Gary
SIZE
STATS
Another command is RESET, which empties the stack and resets the operation counts.

Notable features of the framework include (a) automatically scrolled drawing area for the data structure, (b) simple textual language to control the operation, (c) timing control for updates, (d) history window for displaying what has been done, status, etc., and (e) operation as an applet on the web. Here is the source code.

Written by S. Tanimoto for use in CSE 373, April 3, 2004. Dept. of Computer Science and Engineering, University of Washington. (C) 2004.