题目:利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示。 1.程序分析:(a>b)?a:b这是条件运算符的基本例子。
上传时间: 2015-01-08
上传用户:lifangyuan12
Hamming(7/4,8/4)纠错码的编解码器
标签: Hamming
上传时间: 2013-12-21
上传用户:tianjinfan
RSA算法 :首先, 找出三个数, p, q, r, 其中 p, q 是两个相异的质数, r 是与 (p-1)(q-1) 互质的数...... p, q, r 这三个数便是 person_key,接著, 找出 m, 使得 r^m == 1 mod (p-1)(q-1)..... 这个 m 一定存在, 因为 r 与 (p-1)(q-1) 互质, 用辗转相除法就可以得到了..... 再来, 计算 n = pq....... m, n 这两个数便是 public_key ,编码过程是, 若资料为 a, 将其看成是一个大整数, 假设 a < n.... 如果 a >= n 的话, 就将 a 表成 s 进位 (s
标签: person_key RSA 算法
上传时间: 2013-12-14
上传用户:zhuyibin
利用哈夫曼编码进行通信可以大大提高通信信道利用率,缩短信息传输时间,降低传输成本。这要求在发送端通过一个编码系统将传输数据预先编码;在接收端将传来的数据进行译码(复原)。对于双工信道(即可以双工传输信息的信道),每端都需要一个完整的编/译码系统。为这样的信息收发站设计的一个哈夫曼编/译码系统。
上传时间: 2014-01-21
上传用户:lps11188
利用哈夫曼编码进行通信可以大大提高通信信道利用率,缩短信息传输时间,降低传输成本。这要求在发送端通过一个编码系统将传输数据预先编码;在接收端将传来的数据进行译码(复原)。对于双工信道(即可以双工传输信息的信道),每端都需要一个完整的编/译码系统。为这样的信息收发站设计的一个哈夫曼编/译码系统。 (2
上传时间: 2015-04-01
上传用户:hustfanenze
4位电子密码锁,带键盘扫描、按键防抖动、LCD驱动编译码
标签: 电子密码锁
上传时间: 2015-04-13
上传用户:bakdesec
数据结构中关于十字链表的实现,十字链表可以很好的对稀疏矩阵进行效率很高的存储和计算。比如在通信纠错编码的ldpc编译码中就要用到这种数据结构
标签: 数据结构
上传时间: 2014-01-12
上传用户:Pzj
卷积码的C源程序,包括编码器和译码器。 还有一个是循环荣誉校验的vhdl]源码。
上传时间: 2015-04-15
上传用户:qq21508895
根据TCH/FS信道的技术标准,用MATLAB语言编写程序模块,实现编译码模块功能,仿真TCH/FS信道各模块,检验与测试它们的性能,对TCH/FS信道的纠错性能进行仿真及分析。
上传时间: 2014-01-11
上传用户:fredguo
数字运算,判断一个数是否接近素数 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