Binary Heap Demo Applet

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

Sample command sequence

FINDMIN ; report the minimum key and value (note, however,
 ; that the heap is empty so this would normally raise an exception)
INSERT e 5 ; put the data item "e" into the heap with key value 5.
INSERT i 7
INSERT a 4
INSERT s 3
INSERT n 3
INSERT r 2
INSERT t 2
INSERT p 2
INSERT k 1
INSERT m 1
FINDMIN
DELAY 1000  ; from here wait only 1000 ms between updates
DELETEMIN ; remove the minimum key and its data item.
DELETEMIN
FINDMIN
STATS ; report on numbers of operations performed.

S. Tanimoto, Dept. of Computer Science and Engineering, University of Washington. (C) 2004.