Home » Source Code » 哈夫曼编码

哈夫曼编码

小兔兔love
2016-12-14 05:25:31
The author
View(s):
Download(s): 0
Point (s): 1 
Category Category:
数据结构数据结构 AllAll

Description

利用哈夫曼编码进行通信可以大大提高信道的利用率,缩短信息传输的时间,降低传输成本。根据哈夫曼编码的原理,编写一个程序,在用户输入结点权值的基础上求哈夫曼编码。

从键盘输入若干字符及每个字符出现的频率,将字符出现的频率作为结点的权值,建立哈夫曼树,求出各字符的哈夫曼编码。要求:

1.  输出存放哈夫曼树的数组HT的初态和终态;

2.  输出每个字符的哈夫曼编码;

3.  输入由上述若干字符组成的字符串,对电文进行编码并输出;

(选做)输入电文的哈夫曼编码,进行译码并输出
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
#U300a#U6570#U636e#U7ed3#U6784#U300b#U5b9e#U9a8c#U4e09.doc128.00 kB2016-10-24 21:34
...
Sponsored links

Comments

(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
  • 1
  • Page 1
  • Total 1

哈夫曼编码 (92.54 kB)

Need 1 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D