Tunstall编码原理详见Prof.JimMassey’snotes。仅考虑K=2的情况。详情见ReadMe。BasedonProf.JimMassey’snotesonTunstallcodes,implement(inwhicheverprogramminglanguageyoufindcomfortablewith)abinaryTunstallcodec(encoder/decoder)andtestitsperformanceusingrandomlygeneratedsourcesymbolstrings.