GithubHelp home page GithubHelp logo

subzer0811 / huffman Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 347 KB

This repo is an implementation of both constant and variable huffman encoding.

Makefile 2.77% C++ 97.23%
compression huffman-coding huffman huffman-compressor huffman-tree huffman-algorithm huffman-compression-algorithm huffman-encoder-decoder

huffman's People

Contributors

subzer0811 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

huffman's Issues

How do you solve the problem of variable length encoding storage and decoding?

After the implementation of character encoding, you need to encode each character and write it to a file. I saw your code. You write the code table to the file first and end with #, and then read each character in the test file. But I don't understand why you save the character encoding in a byte, It can also accurately extract the corresponding characters from the encoded binary file.
For example, a is encoded as 110, B is encoded as 01001, C is encoded as 1001010101, how do you do when ABC is stored in a file? At this time, the encoding of C has exceeded 8 bits. How do you restore these bits to the original ABC in the decoding process.

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.