Coder Social home page Coder Social logo

mrpatrek / java-improved-huffman-coding Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 203 KB

Improved (modified) Huffman coding that tries to behave as an adaptive one (this is NOT a so-called "Adaptive Huffman coding", but it would be it if this phrase hadn't already been reserved)

Java 100.00%

java-improved-huffman-coding's Introduction

Improved Huffman coding

Modified Huffman coding that tries to behave as an adaptive one (this is NOT a so-called "Adaptive Huffman coding", but it would be it if this phrase hadn't already been reserved). This is something that does not exist (at least I did not find something like this except for the above-mentioned Adaptive Huffman coding that uses different technique, so it's not the same), so it was sort of an improvisation from my side.

Results

Briefly: Unlike normal Huffman coding that works well for static letter frequencies only, Improved Huffman coding works well for both static and dynamic (!) letter frequencies. Worst-case (dynamic freq.) compression ratio for normal Huffman was around 1.06, when in case with Improved Huffman the worst-case compression ratio was around 1.18, which is better than normal Huffman. Considering that a best-case (static freq.) compression ratio differed for a negligible amount when comparing both codings (around 0.01 less for Improved Huffman), I can say that the efforts for Improved Huffman coding paid off.

A bit more detailed: see THIS.

java-improved-huffman-coding's People

Contributors

mrpatrek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.