wssgcg1213 / homework-huffman

多媒体课小作业2 - huffman 编码

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

多媒体技术基础课 小作业2 哈弗曼编码

this is a (fake) private repo

startup

git clone https://github.com/wssgcg1213/homework-huffman
cd homework-huffman
npm i
npm start

you can get following

编码字符串: chongqinguniversityofpostsandtelecommunications
编码方案: { s: '000',
  f: '00100',
  y: '00101',
  c: '0011',
  i: '010',
  o: '011',
  l: '10000',
  g: '10001',
  e: '1001',
  n: '101',
  m: '11000',
  r: '110010',
  d: '110011',
  t: '1101',
  v: '111000',
  p: '111001',
  a: '11101',
  q: '111100',
  h: '111101',
  u: '11111' }
编码结果: 00111111010111011000111110001010110001111111010101110001001110010000010110100101011001001110010110001101000111011011100111101100110000100100110111100011000111111010100011111011101010011101000

you can fork the source and edit it directly, no apply permission from me.

交作业用的, 如果要用就直接拿去改吧

About

多媒体课小作业2 - huffman 编码


Languages

Language:JavaScript 100.0%