Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/190n/huffman-visualization
Visualization of Huffman coding
https://github.com/190n/huffman-visualization
Last synced: 3 months ago
JSON representation
Visualization of Huffman coding
- Host: GitHub
- URL: https://github.com/190n/huffman-visualization
- Owner: 190n
- License: mit
- Created: 2021-10-26T16:58:50.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-23T02:02:29.000Z (about 2 years ago)
- Last Synced: 2024-06-30T15:48:45.553Z (5 months ago)
- Language: TypeScript
- Homepage: https://190n.github.io/huffman-visualization
- Size: 338 KB
- Stars: 24
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**If you're a student in CSE 13S, don't look at or attempt to copy from any of the Zig source files. You'll be caught.** Feel free to look at the TypeScript code if you want to see how to use WebAssembly modules and make janky visualizations.
huffman-visualization
=====================This is a visualization of [Huffman coding](https://en.wikipedia.org/wiki/Huffman_coding). It builds the Huffman tree using a WASM module (compiled from Zig code) and displays it using HTML5 Canvas. It also shows the raw histogram.
## Development
Run `yarn dev` to start the development server, then open http://localhost:3000/huffman-visualization/.
To compile the WASM module, run `zig build -Drelease-small` from `src/zig`.