Arithmetic coding/As a generalized change of radix: Difference between revisions

m
m (→‎{{header|zkl}}: add a space)
Line 922:
cf :=cumulativeFreq(freqHash); // Create the cumulative frequency table
dict:=cf.pump(Dictionary(), // Invert/transpose cumulative table, keys are strings
fcn(kv){ kv.reverse().apply("toInt") });
// Fill the gaps in the dictionary
lchar:=Void;
Anonymous user