文件名称:200430481
介绍说明--下载内容来自于网络,使用问题请自行百度
赫夫曼编译码器:
用哈夫曼编码进行通信可以大大提高信道利用率,缩短信息传输时间,降低传输成本。但是,这要求在发送端通过一个编码系统对待传数据预先编码,在接收端将传来的数据进行译码(复原)。对于双工信道(即可以双向传输信息的信道),每端都需要一个完整的编/译码系统。试为这样的信息收发站写一个哈夫曼码的编/译码系统。
[基本要求]一个完整的系统应具有以下功能:
(1)I:初始化(Initialization)。从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,并将它存于文件hfmTree中。
(2)E:编码(Encoding)。利用已建好的哈夫曼树(如不在内存,则从文件hfmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件CodeFile中。
(3)D:译码(Decoding)。利用已建好的哈夫曼树将文件CodeFile中的代码进行译码,结果存入文件TextFile中。
(4)P:印代码文件(Print)。将文件CodeFile以紧凑格式显示在终端上,每行50个代码。同时将此字符形式的编码文件写入文件CodePrin中。
(5)T:印哈夫曼树(Tree printing)。将已在内存中的哈夫曼树以直观的方式(树或凹入表形式)显示出,同时将此字符形式的哈夫曼树写入文件TreePrint中。
用哈夫曼编码进行通信可以大大提高信道利用率,缩短信息传输时间,降低传输成本。但是,这要求在发送端通过一个编码系统对待传数据预先编码,在接收端将传来的数据进行译码(复原)。对于双工信道(即可以双向传输信息的信道),每端都需要一个完整的编/译码系统。试为这样的信息收发站写一个哈夫曼码的编/译码系统。
[基本要求]一个完整的系统应具有以下功能:
(1)I:初始化(Initialization)。从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,并将它存于文件hfmTree中。
(2)E:编码(Encoding)。利用已建好的哈夫曼树(如不在内存,则从文件hfmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件CodeFile中。
(3)D:译码(Decoding)。利用已建好的哈夫曼树将文件CodeFile中的代码进行译码,结果存入文件TextFile中。
(4)P:印代码文件(Print)。将文件CodeFile以紧凑格式显示在终端上,每行50个代码。同时将此字符形式的编码文件写入文件CodePrin中。
(5)T:印哈夫曼树(Tree printing)。将已在内存中的哈夫曼树以直观的方式(树或凹入表形式)显示出,同时将此字符形式的哈夫曼树写入文件TreePrint中。
(系统自动生成,下载前可以参看下载内容)
下载文件列表
200430481/cdnlog.txt
200430481/cmd.txt
200430481/CodeFile.txt
200430481/Codeprint.txt
200430481/hffgui$1.class
200430481/hffgui$ButtonListener.class
200430481/hffgui.class
200430481/hffgui.java
200430481/hfmTree.txt
200430481/huffgui$1.class
200430481/huffgui$ButtonListener.class
200430481/huffgui$MyCanvas.class
200430481/huffgui.class
200430481/huffgui.java
200430481/Huffman.class
200430481/Huffman.java
200430481/huffmanTree.class
200430481/leaf.class
200430481/MyCanvas.class
200430481/Rehuffman.class
200430481/Rehuffman.java
200430481/structure/AbstractIterator.class
200430481/structure/AbstractIterator.java
200430481/structure/AbstractLinear.class
200430481/structure/AbstractLinear.java
200430481/structure/AbstractList.class
200430481/structure/AbstractList.java
200430481/structure/AbstractListIterator.java
200430481/structure/AbstractMap.java
200430481/structure/AbstractQueue.class
200430481/structure/AbstractQueue.java
200430481/structure/AbstractSet.java
200430481/structure/AbstractStack.class
200430481/structure/AbstractStack.java
200430481/structure/AbstractStructure.class
200430481/structure/AbstractStructure.java
200430481/structure/AppendableList.java
200430481/structure/ArrayIterator.java
200430481/structure/Assert.class
200430481/structure/Assert.java
200430481/structure/Association.java
200430481/structure/BinarySearchTree.java
200430481/structure/BinaryTree.class
200430481/structure/BinaryTree.java
200430481/structure/BitSet.java
200430481/structure/BTInorderIterator.class
200430481/structure/BTInorderIterator.java
200430481/structure/BTLevelorderIterator.class
200430481/structure/BTLevelorderIterator.java
200430481/structure/BTPostorderIterator.class
200430481/structure/BTPostorderIterator.java
200430481/structure/BTPreorderIterator.class
200430481/structure/BTPreorderIterator.java
200430481/structure/ChainedHashtable.java
200430481/structure/ChainedHashtableIterator.java
200430481/structure/CharSet.java
200430481/structure/CircularList.class
200430481/structure/CircularList.java
200430481/structure/CircularListIterator.class
200430481/structure/CircularListIterator.java
200430481/structure/Clock.java
200430481/structure/ComparableAssociation.java
200430481/structure/ComparableEdge.java
200430481/structure/copyright.html
200430481/structure/DoublyLinkedList.java
200430481/structure/DoublyLinkedListElement.java
200430481/structure/DoublyLinkedListIterator.java
200430481/structure/Edge.java
200430481/structure/Entry.java
200430481/structure/FailedAssertion.class
200430481/structure/FailedAssertion.java
200430481/structure/FailedInvariant.class
200430481/structure/FailedInvariant.java
200430481/structure/FailedPostcondition.class
200430481/structure/FailedPostcondition.java
200430481/structure/FailedPrecondition.class
200430481/structure/FailedPrecondition.java
200430481/structure/Graph.java
200430481/structure/GraphList.java
200430481/structure/GraphListAIterator.java
200430481/structure/GraphListDirected.java
200430481/structure/GraphListEIterator.java
200430481/structure/GraphListUndirected.java
200430481/structure/GraphListVertex.java
200430481/structure/GraphMatrix.java
200430481/structure/GraphMatrixDirected.java
200430481/structure/GraphMatrixUndirected.java
200430481/structure/GraphMatrixVertex.java
200430481/structure/Hashtable.java
200430481/structure/HashtableIterator.java
200430481/structure/index.html
200430481/structure/KeyIterator.java
200430481/structure/Linear.class
200430481/structure/Linear.java
200430481/structure/List.class
200430481/structure/List.java
200430481/structure/Map.java
200430481/structure/MapList.java
200430481/structure/Matrix.java
200430481/structure/MergeableHeap.java
200430481/structure/NaturalComparator.class
200430481/structure/NaturalComparator.java
200430481/structure/OrderedList.class
200430481/structure/OrderedList.java
200430481/structure/OrderedMap.java
200430481/structure/OrderedStructure.class
200430481/structure/OrderedStructure.java
200430481/structure/OrderedVector.java
200430481/structure/package.html
200430481/structure/PriorityQueue.java
200430481/structure/PriorityVector.java
200430481/structure/Queue.class
200430481/structure/Queue.java
200430481/structure/QueueArray.java
200430481/structure/QueueList.class
200430481/structure/QueueList.java
200430481/structure/QueueVector.java
200430481/structure/ReadStream.class
200430481/structure/ReadStream.java
200430481/structure/RedBlackIterator.java
200430481/structure/RedBlackSearchTree.java
200430481/structure/RedBlackTree.java
200430481/structure/ReverseComparator.java
200430481/structure/Set.java
200430481/structure/SetList.java
200430481/structure/SetVector.java
200430481/structure/SinglyLinkedList.class
200430481/structure/SinglyLinkedList.java
200430481/structure/SinglyLinkedListElement.class
200430481/structure/SinglyLinkedListElement.java
200430481/structure/SinglyLinkedListIterator.class
200430481/structure/SinglyLinkedListIterator.java
200430481/structure/SkewHeap.java
200430481/structure/SplayTree.java
200430481/structure/SplayTreeIterator.java
200430481/structure/Stack.class
200430481/structure/Stack.ja
200430481/cmd.txt
200430481/CodeFile.txt
200430481/Codeprint.txt
200430481/hffgui$1.class
200430481/hffgui$ButtonListener.class
200430481/hffgui.class
200430481/hffgui.java
200430481/hfmTree.txt
200430481/huffgui$1.class
200430481/huffgui$ButtonListener.class
200430481/huffgui$MyCanvas.class
200430481/huffgui.class
200430481/huffgui.java
200430481/Huffman.class
200430481/Huffman.java
200430481/huffmanTree.class
200430481/leaf.class
200430481/MyCanvas.class
200430481/Rehuffman.class
200430481/Rehuffman.java
200430481/structure/AbstractIterator.class
200430481/structure/AbstractIterator.java
200430481/structure/AbstractLinear.class
200430481/structure/AbstractLinear.java
200430481/structure/AbstractList.class
200430481/structure/AbstractList.java
200430481/structure/AbstractListIterator.java
200430481/structure/AbstractMap.java
200430481/structure/AbstractQueue.class
200430481/structure/AbstractQueue.java
200430481/structure/AbstractSet.java
200430481/structure/AbstractStack.class
200430481/structure/AbstractStack.java
200430481/structure/AbstractStructure.class
200430481/structure/AbstractStructure.java
200430481/structure/AppendableList.java
200430481/structure/ArrayIterator.java
200430481/structure/Assert.class
200430481/structure/Assert.java
200430481/structure/Association.java
200430481/structure/BinarySearchTree.java
200430481/structure/BinaryTree.class
200430481/structure/BinaryTree.java
200430481/structure/BitSet.java
200430481/structure/BTInorderIterator.class
200430481/structure/BTInorderIterator.java
200430481/structure/BTLevelorderIterator.class
200430481/structure/BTLevelorderIterator.java
200430481/structure/BTPostorderIterator.class
200430481/structure/BTPostorderIterator.java
200430481/structure/BTPreorderIterator.class
200430481/structure/BTPreorderIterator.java
200430481/structure/ChainedHashtable.java
200430481/structure/ChainedHashtableIterator.java
200430481/structure/CharSet.java
200430481/structure/CircularList.class
200430481/structure/CircularList.java
200430481/structure/CircularListIterator.class
200430481/structure/CircularListIterator.java
200430481/structure/Clock.java
200430481/structure/ComparableAssociation.java
200430481/structure/ComparableEdge.java
200430481/structure/copyright.html
200430481/structure/DoublyLinkedList.java
200430481/structure/DoublyLinkedListElement.java
200430481/structure/DoublyLinkedListIterator.java
200430481/structure/Edge.java
200430481/structure/Entry.java
200430481/structure/FailedAssertion.class
200430481/structure/FailedAssertion.java
200430481/structure/FailedInvariant.class
200430481/structure/FailedInvariant.java
200430481/structure/FailedPostcondition.class
200430481/structure/FailedPostcondition.java
200430481/structure/FailedPrecondition.class
200430481/structure/FailedPrecondition.java
200430481/structure/Graph.java
200430481/structure/GraphList.java
200430481/structure/GraphListAIterator.java
200430481/structure/GraphListDirected.java
200430481/structure/GraphListEIterator.java
200430481/structure/GraphListUndirected.java
200430481/structure/GraphListVertex.java
200430481/structure/GraphMatrix.java
200430481/structure/GraphMatrixDirected.java
200430481/structure/GraphMatrixUndirected.java
200430481/structure/GraphMatrixVertex.java
200430481/structure/Hashtable.java
200430481/structure/HashtableIterator.java
200430481/structure/index.html
200430481/structure/KeyIterator.java
200430481/structure/Linear.class
200430481/structure/Linear.java
200430481/structure/List.class
200430481/structure/List.java
200430481/structure/Map.java
200430481/structure/MapList.java
200430481/structure/Matrix.java
200430481/structure/MergeableHeap.java
200430481/structure/NaturalComparator.class
200430481/structure/NaturalComparator.java
200430481/structure/OrderedList.class
200430481/structure/OrderedList.java
200430481/structure/OrderedMap.java
200430481/structure/OrderedStructure.class
200430481/structure/OrderedStructure.java
200430481/structure/OrderedVector.java
200430481/structure/package.html
200430481/structure/PriorityQueue.java
200430481/structure/PriorityVector.java
200430481/structure/Queue.class
200430481/structure/Queue.java
200430481/structure/QueueArray.java
200430481/structure/QueueList.class
200430481/structure/QueueList.java
200430481/structure/QueueVector.java
200430481/structure/ReadStream.class
200430481/structure/ReadStream.java
200430481/structure/RedBlackIterator.java
200430481/structure/RedBlackSearchTree.java
200430481/structure/RedBlackTree.java
200430481/structure/ReverseComparator.java
200430481/structure/Set.java
200430481/structure/SetList.java
200430481/structure/SetVector.java
200430481/structure/SinglyLinkedList.class
200430481/structure/SinglyLinkedList.java
200430481/structure/SinglyLinkedListElement.class
200430481/structure/SinglyLinkedListElement.java
200430481/structure/SinglyLinkedListIterator.class
200430481/structure/SinglyLinkedListIterator.java
200430481/structure/SkewHeap.java
200430481/structure/SplayTree.java
200430481/structure/SplayTreeIterator.java
200430481/structure/Stack.class
200430481/structure/Stack.ja
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.