仅将数字和字母字符串编码为dash 和 dot,并计算所占长度(以 dot 为例 ). 信息论编程作业1.原要求如下: Write a computer program to encode a string of characters and numbers into the Morse code, and calculate the length of the resulting coded string. Any programming language (for example, C
Tunstall编码原理详见 Prof. Jim Massey’s notes 。仅考虑K=2的情况。详情见ReadMe。 Based on Prof. Jim Massey’s notes on Tunstall codes, implement (in whichever programming language you find comfortable with) a binary Tunstall codec (encoder/decoder) and test its perform