Skip to content

DomonJi/adaptive-huffman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adaptive-huffman

A simple implementation of adaptive huffman coding algorithm in Javascript

Usage (only encoding)

import HuffCoder from './dist/AdaptiveHuff'

const huffcoder = new HuffCoder()
huffcoder.encode('a') // 001100001
// NOTE:The first 0 represent that this is a new symbol not transferred yet
huffcoder.encode('a') // 1
huffcoder.encode('d') // 001100100
huffcoder.encode('c') // 001100011
huffcoder.encode('c') // 001

About

JS implementation of adaptive-huffman.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published