Anonymous user
Arithmetic coding/As a generalized change of radix: Difference between revisions
Arithmetic coding/As a generalized change of radix (view source)
Revision as of 06:31, 28 February 2018
, 6 years ago→{{header|Java}}
(Added Java) |
|||
Line 487:
long total = 0;
Freq cf = new Freq();
for (int i = 0; i <
char c = (char) i;
Long v = freq.get(c);
Line 590:
public static void main(String[] args) {
long radix = 10;
String[] strings =
String fmt = "%-25s=> %19s * %d^%s\n";
for (String str : strings) {
|