这里给出的源代码huffman.zip用8种不同的方式实现了Huffman编码算法。这些代码意在演示不同Huffman算法的实现原理,比较算法执行效率的差别,但并没有针对实际应用环境的需求,做更多的空间或效率优化。所有代码以C++语言编写,为了更容易地实现各种数据结构,代码中大量应用了标准C++库和模板技术。——总之,这些代码的作用在于示例和演示;如果大家想把这些代码应用在实际应用中,可能还需要做进一步的调整和优化。
上传时间: 2013-12-26
上传用户:zm7516678
ACE程序员指南,ACE(自适应的网络编程环境),用C++类来封装Unix的Socket库,进程库,线程库
上传时间: 2015-04-11
上传用户:sz_hjbf
这个只有90多行的源代码, 示意了在linux平台下, 开发图形程序的原理。由C语言写成,采用了GTK+和GDK库。在Federa 4下调试通过。
上传时间: 2013-12-14
上传用户:jackgao
数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no
上传时间: 2015-05-21
上传用户:daguda
运动图象检测,运用IDMA规范综合JPEG编码和解码库,了解使用XDIAS接口实现与算术库的协调工作。
上传时间: 2014-10-10
上传用户:sdq_123
本书系统地介绍了计算机与网络安全的基本原理,讨论了在IP堆栈的每一层实施安全保障的策略。介绍了IPSec的结构和组件;身份验证和保密性机制;验证头和封装安全载荷的用法;VPN通道传输以及Internet密钥交换(IKE)。最后,本书展望了IPSec的未来,包括最新的压缩、多点传送、机动运算和PKIX技术。 本书是一本既权威又全面的IPSec指南,无论你是网络或Web专家、软件开发者、还是安全专家,都必须掌握IPSec—而通过本书,你可以做到!
上传时间: 2015-06-03
上传用户:ynwbosss
该文件包括几篇比较关于LDPC编码核心的基础读物,还有关于LDPC开发的MATLAB仿真库和运用该库所进行的一些仿真源码
上传时间: 2015-06-06
上传用户:waitingfy
包括 TI公司的常用例程,经典的DSP的C程序和汇编程序库
标签: TI公司
上传时间: 2015-06-07
上传用户:1101055045
The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition
标签: government streamline important alphabet
上传时间: 2015-06-09
上传用户:weixiao99
这不是源码,这是Protel99SE版本的 通用器件封装库,很多朋友在寻找
标签: 源码
上传时间: 2015-06-29
上传用户:电子世界