Help - Search - Members - Calendar
Full Version: LBE possible replacement for Huffman encoding?
Hydrogenaudio Forums > Hydrogenaudio Forum > Scientific Discussion
detokaal
Just wondering if this has been tried in AV compression and if it has any practical application for current projects. The main and obvious advantage of LBE is the sheer speed. LBE can immediately generate the codes for characters without being given the file to be compressed. This is in sharp contrast with Huffman in which a binary tree has to be constructed every time a new file is to be compressed:

LBE
MuMart
Almost all huffman based compressors use dynamic-huffman algorithms which modify the tree as characters are encoutered, so that's not really an issue. Huffman is also well understood and close to optimal.

The optimal statistical compressors use variations on "arithmetic encoding" but that algorithm is slow and patent-encumbered.
Pinky's brain
Adaptive huffman can be close to optimal for stationary signals (as long as probabilities dont get get too large). For non stationary signals you are better off with Golomb-Rice codes, which is a set of very easy to encode Huffman codes, if your distribution is close to a geometric/exponential distribution (usually the case with predictive coders). They can adapt far faster than an adaptive huffman based approach (because they can make a guess at the global distribution based on a small set of samples, whereas adaptive huffman can only determine the individual probabilities of symbols based on their individual frequencies ... which will need a far larger history to be accurate).


LBE is a little like the Golomb-Rice codes, in that it is only optimal for certain distributions (after reordering according to frequency in the case of LBE). Unlike Golomb-Rice coding it only has speed as it's single upside though, it always compresses worse than huffman codes. The small speed advantage in encoding compared to huffman isnt worth the loss of optimality IMO.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.