The Java applet below draws f_i and w_i, mentioned in the ACM-format description
(see acm.txt or acm_ru.txt
file).
To use this applet, you need a JDK 1.1 compatible browser (Netscape
4+ and IE 4+ are such browsers).
Applet controls elements:
'Levels' parameter is the number of recursion level (it is called "packAttrs"
in the description). This value must lie between 1 and 9.
'Blocks' parameter represents the number of blocks in buffer ("packAttrs2"
in the description). The value must be between 3 and 8. Actually,
Blocks = 3 is far enough.
To perform the increment, used in the real algorithm, you can check the
'Do increment' checkbox. In this case the output values are absolutely
the same, as if the "unpackValues" function were applied.
In the 'Change items' edit box you can specify which items of buffer are
to be changed before processing. There are two ways you can specify such
a change:
'i=v'. Tells the applet to place the value v in the i-th item of buffer.
i must lie between 0 and someSize2-1, where someSize2 = blocks * (2^levels).
v can have any value, but remember that this value determines the amplitude
of the graph, and as such the dimensions of a control element, used to
output this graph. So it takes a lot of system resources, when you specify
a large value of v.
'i~v'. Places v into all (i + k*someSize) items of buffer, where someSize
= 2^levels. i must be between 0 and someSize-1.
An 'i=v' command results in a f_i, and 'i~v' produces a w_i (see the format
description).
You can use more than one change-command, just separate the commands
with a comma (","). Such commands are applied in left to right order.
Examples:
Command(s)
Description
0=1
buffer[0] = 1
0=1, 1=-1
buffer[0] = 1, buffer[1] = -1
1~1, 129=0
buffer[1]=buffer[ss+1]=...=1, buffer[129] = 0
'Y-Autoscale' checkbox specifies, if the graph sould be scaled to fit in
the window vertically. If it is unchecked, no scale is performed, so the
graph can be rather large in vertical direction.
'Copy' button and associated text area can be used to drop obtained values
into the system clipboard.