3 ms·
Universal codes are used in compression file formats to store integers efficiently when most values are small, but you still want to support arbitrarily large n
by user-the-name 5y ago
Universal codes are used in compression file formats to store integers efficiently when most values are small, but you still want to support arbitrarily large numbers.
These days, they would usually be combined with an arithmetic or range coder to store each binary digit more efficiently than just writing it directly to the file.