Author: Stan Eisenstat
Subject: Re: [Cs323] putBits
Date: Sunday, 01 Nov 2020, 08:02:39
> Message Posted By: Unknown
>
> How do we use the function putBits if we have a string of integer code?
> What value should we use for nBits?
As stated in the specification:
encode writes each code using the smallest number of bits required to specify
valid codes at the time (e.g., 9 bits when there are 512 valid codes, but 10
bits once the next code is assigned), up to a maximum of 12 bits (or MAXBITS if
the -m MAXBITS option is specified). ...
NBITS is that smallest number of bits.
--Stan-
PREV
INDEX
NEXT