Giter Site home page Giter Site logo

deflate's Introduction

Implementing DEFLATE in Pure Python

Deflate is a compression method that combines two compression methods: LZ77 and Huffman Coding.

This implementation was done in Python 3.

Huffman Coding( complete )

  • The huffman coding part of this implementation is complete.
  • To try it out, clone the repo: git clone https://github.com/JonathanAmenechi/deflate.git
  • To compress a file, run: python huffman-coder -c infile "INPUT_FILE" -outfile "OUTPUT_FILE"
  • To decompress the file, run: python huffman-coder -d -infile "PREVIOUSLY_COMPRESSED_FILE" -outfile "OUTPUT_FILE"
  • Tested on Charles Dickens' Oliver Twsit, a text file of 914KB. After compression, the file size was reduced to 530KB.
  • Also tested on The King James' Bible from the Canterbury Corpus. Reduced file size from around 4MB to around 2MB.

LZ77( Soon to come )

DEFLATE( Soon to come )

deflate's People

Contributors

jonathanamenechi avatar

Stargazers

Yukuan Lu avatar

Watchers

James Cloos avatar  avatar

Forkers

hertzelhalevi

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.