Git Product home page Git Product logo

zero-compression's Introduction

Zero Compression

This is a C# implementation of the zero compression encoder algorithm. It takes a stream of bytes. Each byte contains either a 0 or a 1. The output is the same as the input except for consecutive 0's or 1's. They are compressed into a single byte, whose first bit indicates if 1's or 0's were compressed and the rest of the byte (7 bits) indicate how many times it was repeated consecutively. The following diagram illustrates how the encoder works.

Zero Compression Encoder Illustration

Project Setup

Dependencies

This project was developed on Visual Studio 2010 and uses NUnit for unit testing.

Project Files

  • README.md: This file. It contains information about the project.
  • LICENSE.txt: GNU GPL v3.0 License file.
  • zeroCompression.sln: Visual Studio Solution file.
  • Unit Tests: The unit tests project folder.
  • zeroCompression: The encoder project folder.
  • Diagram.png: A diagram illustrating how the encoder works.

To Run the Program

  1. Load the solution file into Visual Studio.
  2. Build the solution.
  3. Run the unit tests using NUnit.

Contributors

  • Ahmad Al-Kashef: Initial implementation.

License

This is an open source free program provided under Version 3 of the GNU GENERAL PUBLIC LICENSE. A copy of the license is available in LICENSE.txt at the root of the source code. If not, please see http://www.gnu.org/licenses/.

zero-compression's People

Contributors

alkashef 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.