java吧 关注:1,240,824贴子:12,712,754
  • 18回复贴,共1

一个关于三元哈弗曼算法的实现,求大神

只看楼主收藏回复

1. Based on the frequency table derived, a ternary Huffman encoding scheme is implemented in your program that produces as output a codebook (in tabular format) that encodes the symbols in the frequency table costing the minimum bandwidth while using these for codes: {0, 1, 2}, e.g. symbol ‘e’ is encoded as ‘0’, ‘a’ as ‘12’, ‘b’ as ‘112’, etc. The encoding program also accepts input from the user, encodes whatever input text specified by the user, and encodes it into the ternary symbols using the codebook derived.
2. A corresponding ternary Huffman decoding scheme is also implemented that carries out the decoding task for ternary codes sent and received based upon the codebook designed from 1.


IP属地:辽宁1楼2015-05-14 15:06回复
    没人吗


    IP属地:辽宁来自Android客户端2楼2015-05-14 15:16
    回复
      吊炸天


      IP属地:广东来自Android客户端3楼2015-05-14 15:23
      回复
        那就要构建三叉树???然后左0中1又2???然后往上数求霍夫曼编码???


        IP属地:上海来自Android客户端4楼2015-05-14 15:35
        收起回复
          求大神


          IP属地:辽宁来自Android客户端5楼2015-05-14 15:46
          回复
            楼主能推荐一本java的入门书吗?要自学


            IP属地:四川来自Android客户端6楼2015-05-14 15:50
            回复
              掉渣天~~~~~~
              对我等不会数据结构的人来说 你就是掉渣天


              IP属地:湖南7楼2015-05-14 15:55
              收起回复
                不会这个算法。


                来自Android客户端8楼2015-05-14 17:17
                回复
                  .人工置顶。同XJTLU 。。具体可以参考二元


                  9楼2015-05-17 13:37
                  收起回复
                    正在看算导,看到哈夫曼再来讨论,先占坑


                    IP属地:北京来自iPhone客户端10楼2015-05-18 01:50
                    回复
                      高调求代码啊~~~~~~~LZ搞定了吗?


                      IP属地:广东11楼2015-05-21 22:54
                      回复