Giter Club home page Giter Club logo

huffman-coding-website's Introduction

Title: Huffman Online Coding
This project consists of an interactive web tool to learn about Huffman Coding, backed with theory to understand its key concepts.

The website is live and hosted at: https://huffman-coding-online.vercel.app/

How does it work?

To encode a text using the Huffman algorithm, follow these steps:

  1. Type the text to encode on the left input
  2. Click 'Encode'
  3. The text will be analyzed and the frequency table of the symbols will be generated.
  4. The Huffman tree is created from the frequency table
  5. The code alphabet is generated from the tree (to learn how, go to the theory section of the website).
  6. The input text gets encoded using the alphabet, showing the result in the right text area.
  7. Aditional calculations and statistics are computed.

Technology

This is a Next.js project bootstrapped with create-next-app. It is deployed with the Vercel Platform. The following libraries have been used:

Run it locally

Download the repository, and install the dependencies npm install. Afterward, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the project.

Design

You can find a hi-fi mockup design using Figma here.

As a curiosity, David A. Huffman, the author of the algorithm with his name, was also a pioneer in mathematical origami. The decorations of this page are inspired by the diagrams of his models.

Huffman origami diagrams

References

Typography: Inria Sans & Inria Serif

This website was developed as part of the Audio Codification Systems course of the Audiovisual Systems Engineering Degree at Universitat Pompeu Fabra, Barcelona.

License: MIT

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.