Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
user-the-name
· 5y ago · 0 comments
Arithmetic coding can be implemented in as little as maybe ten lines of code. It is far simpler than Huffman coding.
Comments
[–]
hexxagone
5y ago
The Huffman encoding loop is 2 lines and decoding loop is 4 lines of branchless code. Do you have an example of branchless arithmetic encoder or decoder ?