文件名称:hafuman
-
所属分类:
- 标签属性:
- 上传时间:2013-03-16
-
文件大小:192.79kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
【问题描述】已知输入一串正整数,正整数之间用空格键分开,请建立一个哈夫曼树,以输入的数字为叶节点,求这棵哈夫曼树的带权路径长度。
【输入形式】首先输入正整数的个数,然后接下来为接下来的正整数,正整数个数不超过10个
【输出形式】输出相应的权值
【样例输入】5 4 5 6 7 8
【样例输出】69
-The length of the descr iption of the problem is known to enter a positive integer, a positive integer with a separate spacebar create a Huffman tree, digital input leaf node, find tree Huffman tree with the right path . Input form] First enter the number of positive integers, then the next for the next positive integer, is the integer number of not more than 10 [output in the form] output corresponding weights sample input] 545,678 【sample output】 69.
【输入形式】首先输入正整数的个数,然后接下来为接下来的正整数,正整数个数不超过10个
【输出形式】输出相应的权值
【样例输入】5 4 5 6 7 8
【样例输出】69
-The length of the descr iption of the problem is known to enter a positive integer, a positive integer with a separate spacebar create a Huffman tree, digital input leaf node, find tree Huffman tree with the right path . Input form] First enter the number of positive integers, then the next for the next positive integer, is the integer number of not more than 10 [output in the form] output corresponding weights sample input] 545,678 【sample output】 69.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
0303/
0303/0303.c
0303/0303.dsp
0303/0303.dsw
0303/0303.ncb
0303/0303.opt
0303/0303.plg
0303/Debug/
0303/Debug/0303.exe
0303/Debug/0303.ilk
0303/Debug/0303.obj
0303/Debug/0303.pch
0303/Debug/0303.pdb
0303/Debug/vc60.idb
0303/Debug/vc60.pdb
0303/0303.c
0303/0303.dsp
0303/0303.dsw
0303/0303.ncb
0303/0303.opt
0303/0303.plg
0303/Debug/
0303/Debug/0303.exe
0303/Debug/0303.ilk
0303/Debug/0303.obj
0303/Debug/0303.pch
0303/Debug/0303.pdb
0303/Debug/vc60.idb
0303/Debug/vc60.pdb
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
