New answers tagged compression
2
votes
A Java program for compressing/decompressing files via Huffman algorithms (version 1.1.1)
random findings:
final classes - what is the advantage?
repeated code (contributes to an overall impression of verbose)
"...
5
votes
A Java program for compressing/decompressing files via Huffman algorithms (version 1.0.0)
Multiple aspects of this implementation of a Huffman encoder and decoder are inefficient.
At the top level, a bit-by-bit tree-walking decoder is inherently slow. Almost every practical decoder uses ...
3
votes
Huffman code builder in Java - computing prefix codes for arbitrary (generic) alphabets - Take II
The HuffmanEncoder is not an encoder. It's a builder that constructs the code table for the symbols based on the weights. An encoder would take input and encode it ...
3
votes
HuffmannEncoder.java - computing prefix codes for arbitrary (generic) alphabets
Minor but, Huffman only has a single n in the name.
But let's move on to how the code words are built, the meat of the algorithm after all.
...
3
votes
HuffmannEncoder.java - computing prefix codes for arbitrary (generic) alphabets
Style
When I look at your formatting in the following snippet, for some reason you have a newline after the first argument to Double.compare, but this line would be ...
3
votes
A simple method for compressing white space in text (Java) - Take II
Just some remarks.
By providing a capacity: new StringBuilder(textLength) - here a bit extra room, you prevent internal array resizing inside StringBuilder. For ...
Top 50 recent answers are included
Related Tags
compression × 200python × 42
performance × 41
c++ × 33
java × 31
c × 26
algorithm × 25
strings × 24
c# × 22
beginner × 14
python-3.x × 12
file × 12
javascript × 11
file-system × 7
bitwise × 7
programming-challenge × 6
haskell × 6
interview-questions × 6
tree × 6
console × 6
image × 6
serialization × 6
python-2.x × 5
rust × 5
io × 5