文件名称:2
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.71mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
设计一个哈夫曼编码、译码系统。对一个ASCII编码的文本文件中的字符进行哈夫曼编码,生成编码文件;反过来,可将编码文件译码还原为一个文本文件。
(1) 从文件中读入任意一篇英文短文(文件为ASCII编码,扩展名为txt);
(2) 统计并输出不同字符在文章中出现的频率(空格、换行、标点等也按字符处理);
(3) 根据字符频率构造哈夫曼树,并给出每个字符的哈夫曼编码;
(4) 图形化输出哈夫曼树、哈夫曼编码;
(5) 将文本文件利用哈夫曼树进行编码,存储成压缩文件(编码文件后缀名.huf)
(6) 用哈夫曼编码来存储文件,并和输入文本文件大小进行比较,计算文件压缩率;
(7) 进行译码,将huf文件译码为ASCII编码的txt文件,与原txt文件进行比较。
-The design of a Huffman encoding, decoding system. On a ASCII encoded characters in text files Huffman coding, to generate an encoded document in turn, the encoded file decoding back into a text file.( 1) from the document read any English short essay ( file for the ASCII encoding, TXT extension ) ( 2) statistics and the output of different characters in the article appears in the frequency (spaces, newlines, punctuation but by character processing ) ( 3 ) according to the frequencies of characters Huffman tree structure, and gives each character of the Huffman coding ( 4) graphical output, Huffman tree Huffman coding ( 5) will be a text file using Huffman tree coding, stored as a compressed file ( coding file name suffix . HUF )( 6) the use of Huffman coding to store files, and to input text file size compared to calculate, file compression rate ( 7) decoding, the HUF file decoding for ASCII encoding txt files, and txt files are compared.
(1) 从文件中读入任意一篇英文短文(文件为ASCII编码,扩展名为txt);
(2) 统计并输出不同字符在文章中出现的频率(空格、换行、标点等也按字符处理);
(3) 根据字符频率构造哈夫曼树,并给出每个字符的哈夫曼编码;
(4) 图形化输出哈夫曼树、哈夫曼编码;
(5) 将文本文件利用哈夫曼树进行编码,存储成压缩文件(编码文件后缀名.huf)
(6) 用哈夫曼编码来存储文件,并和输入文本文件大小进行比较,计算文件压缩率;
(7) 进行译码,将huf文件译码为ASCII编码的txt文件,与原txt文件进行比较。
-The design of a Huffman encoding, decoding system. On a ASCII encoded characters in text files Huffman coding, to generate an encoded document in turn, the encoded file decoding back into a text file.( 1) from the document read any English short essay ( file for the ASCII encoding, TXT extension ) ( 2) statistics and the output of different characters in the article appears in the frequency (spaces, newlines, punctuation but by character processing ) ( 3 ) according to the frequencies of characters Huffman tree structure, and gives each character of the Huffman coding ( 4) graphical output, Huffman tree Huffman coding ( 5) will be a text file using Huffman tree coding, stored as a compressed file ( coding file name suffix . HUF )( 6) the use of Huffman coding to store files, and to input text file size compared to calculate, file compression rate ( 7) decoding, the HUF file decoding for ASCII encoding txt files, and txt files are compared.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验报告.doc
2/2.tags
2/2.workspace
2/2.workspace.session
2/2_wsp.mk
2/coder/chartable.c
2/coder/chartable.h
2/coder/coder.mk
2/coder/coder.project
2/coder/Debug/1.txt
2/coder/Debug/1.txt.huf
2/coder/Debug/1.txt.img
2/coder/Debug/1.txt.txt
2/coder/Debug/1.txts
2/coder/Debug/chartable.o
2/coder/Debug/chartable.o.d
2/coder/Debug/coder
2/coder/Debug/configure.txt
2/coder/Debug/configure.txt.huf
2/coder/Debug/configure.txt.img
2/coder/Debug/core
2/coder/Debug/input.txt
2/coder/Debug/input.txt.huf
2/coder/Debug/input.txt.img
2/coder/Debug/main.o
2/coder/Debug/main.o.d
2/coder/Debug/process.o
2/coder/Debug/process.o.d
2/coder/Debug/read.o
2/coder/Debug/read.o.d
2/coder/Debug/write.o
2/coder/Debug/write.o.d
2/coder/main.c
2/coder/process.c
2/coder/process.h
2/coder/read.c
2/coder/read.h
2/coder/types.h
2/coder/write.c
2/coder/write.h
2/decoder/chartable.c
2/decoder/chartable.h
2/decoder/Debug/1.txt.huf
2/decoder/Debug/1.txt.img
2/decoder/Debug/chartable.o
2/decoder/Debug/chartable.o.d
2/decoder/Debug/configure.txt
2/decoder/Debug/configure.txt.huf
2/decoder/Debug/configure.txt.img
2/decoder/Debug/core
2/decoder/Debug/decoder
2/decoder/Debug/input.huf
2/decoder/Debug/input.huf.txt
2/decoder/Debug/input.img
2/decoder/Debug/input.txt
2/decoder/Debug/main.o
2/decoder/Debug/main.o.d
2/decoder/Debug/process.o
2/decoder/Debug/process.o.d
2/decoder/Debug/read.o
2/decoder/Debug/read.o.d
2/decoder/Debug/tmp123.huf
2/decoder/Debug/write.o
2/decoder/Debug/write.o.d
2/decoder/decoder.mk
2/decoder/decoder.project
2/decoder/main.c
2/decoder/process.c
2/decoder/process.h
2/decoder/read.c
2/decoder/read.h
2/decoder/types.h
2/decoder/write.c
2/decoder/write.h
2/huff/chartable.cpp
2/huff/chartable.h
2/huff/huff.pro
2/huff/huff.pro.user
2/huff/huffview.cpp
2/huff/huffview.h
2/huff/main.cpp
2/huff/mainwidget.cpp
2/huff/mainwidget.h
2/huff/mainwindow.cpp
2/huff/mainwindow.h
2/huff/process.cpp
2/huff/process.h
2/huff/read.cpp
2/huff/read.h
2/huff/types.h
2/huff/write.cpp
2/huff/write.h
2/huff-build-desktop/1.txt
2/huff-build-desktop/1.txt.huf
2/huff-build-desktop/1.txt.img
2/huff-build-desktop/2.txt
2/huff-build-desktop/2.txt.huf
2/huff-build-desktop/2.txt.img
2/huff-build-desktop/243434
2/huff-build-desktop/chartable.o
2/huff-build-desktop/coder
2/huff-build-desktop/decoder
2/huff-build-desktop/dffdsdf
2/huff-build-desktop/huff
2/huff-build-desktop/huffview.o
2/huff-build-desktop/huff_folder/coder
2/huff-build-desktop/huff_folder/decoder
2/huff-build-desktop/huff_folder/huff
2/huff-build-desktop/input (copy).txt
2/huff-build-desktop/input.txt
2/huff-build-desktop/longOne.txt
2/huff-build-desktop/longOne.txt.huf
2/huff-build-desktop/longOne.txt.img
2/huff-build-desktop/main.o
2/huff-build-desktop/mainwidget.o
2/huff-build-desktop/mainwindow.o
2/huff-build-desktop/Makefile
2/huff-build-desktop/moc_huffview.cpp
2/huff-build-desktop/moc_huffview.o
2/huff-build-desktop/moc_mainwidget.cpp
2/huff-build-desktop/moc_mainwidget.o
2/huff-build-desktop/moc_mainwindow.cpp
2/huff-build-desktop/moc_mainwindow.o
2/huff-build-desktop/process.o
2/huff-build-desktop/read.o
2/huff-build-desktop/write.o
2/coder/Debug
2/decoder/Debug
2/huff-build-desktop/huff_folder
2/coder
2/decoder
2/huff
2/huff-build-desktop
2
2/2.tags
2/2.workspace
2/2.workspace.session
2/2_wsp.mk
2/coder/chartable.c
2/coder/chartable.h
2/coder/coder.mk
2/coder/coder.project
2/coder/Debug/1.txt
2/coder/Debug/1.txt.huf
2/coder/Debug/1.txt.img
2/coder/Debug/1.txt.txt
2/coder/Debug/1.txts
2/coder/Debug/chartable.o
2/coder/Debug/chartable.o.d
2/coder/Debug/coder
2/coder/Debug/configure.txt
2/coder/Debug/configure.txt.huf
2/coder/Debug/configure.txt.img
2/coder/Debug/core
2/coder/Debug/input.txt
2/coder/Debug/input.txt.huf
2/coder/Debug/input.txt.img
2/coder/Debug/main.o
2/coder/Debug/main.o.d
2/coder/Debug/process.o
2/coder/Debug/process.o.d
2/coder/Debug/read.o
2/coder/Debug/read.o.d
2/coder/Debug/write.o
2/coder/Debug/write.o.d
2/coder/main.c
2/coder/process.c
2/coder/process.h
2/coder/read.c
2/coder/read.h
2/coder/types.h
2/coder/write.c
2/coder/write.h
2/decoder/chartable.c
2/decoder/chartable.h
2/decoder/Debug/1.txt.huf
2/decoder/Debug/1.txt.img
2/decoder/Debug/chartable.o
2/decoder/Debug/chartable.o.d
2/decoder/Debug/configure.txt
2/decoder/Debug/configure.txt.huf
2/decoder/Debug/configure.txt.img
2/decoder/Debug/core
2/decoder/Debug/decoder
2/decoder/Debug/input.huf
2/decoder/Debug/input.huf.txt
2/decoder/Debug/input.img
2/decoder/Debug/input.txt
2/decoder/Debug/main.o
2/decoder/Debug/main.o.d
2/decoder/Debug/process.o
2/decoder/Debug/process.o.d
2/decoder/Debug/read.o
2/decoder/Debug/read.o.d
2/decoder/Debug/tmp123.huf
2/decoder/Debug/write.o
2/decoder/Debug/write.o.d
2/decoder/decoder.mk
2/decoder/decoder.project
2/decoder/main.c
2/decoder/process.c
2/decoder/process.h
2/decoder/read.c
2/decoder/read.h
2/decoder/types.h
2/decoder/write.c
2/decoder/write.h
2/huff/chartable.cpp
2/huff/chartable.h
2/huff/huff.pro
2/huff/huff.pro.user
2/huff/huffview.cpp
2/huff/huffview.h
2/huff/main.cpp
2/huff/mainwidget.cpp
2/huff/mainwidget.h
2/huff/mainwindow.cpp
2/huff/mainwindow.h
2/huff/process.cpp
2/huff/process.h
2/huff/read.cpp
2/huff/read.h
2/huff/types.h
2/huff/write.cpp
2/huff/write.h
2/huff-build-desktop/1.txt
2/huff-build-desktop/1.txt.huf
2/huff-build-desktop/1.txt.img
2/huff-build-desktop/2.txt
2/huff-build-desktop/2.txt.huf
2/huff-build-desktop/2.txt.img
2/huff-build-desktop/243434
2/huff-build-desktop/chartable.o
2/huff-build-desktop/coder
2/huff-build-desktop/decoder
2/huff-build-desktop/dffdsdf
2/huff-build-desktop/huff
2/huff-build-desktop/huffview.o
2/huff-build-desktop/huff_folder/coder
2/huff-build-desktop/huff_folder/decoder
2/huff-build-desktop/huff_folder/huff
2/huff-build-desktop/input (copy).txt
2/huff-build-desktop/input.txt
2/huff-build-desktop/longOne.txt
2/huff-build-desktop/longOne.txt.huf
2/huff-build-desktop/longOne.txt.img
2/huff-build-desktop/main.o
2/huff-build-desktop/mainwidget.o
2/huff-build-desktop/mainwindow.o
2/huff-build-desktop/Makefile
2/huff-build-desktop/moc_huffview.cpp
2/huff-build-desktop/moc_huffview.o
2/huff-build-desktop/moc_mainwidget.cpp
2/huff-build-desktop/moc_mainwidget.o
2/huff-build-desktop/moc_mainwindow.cpp
2/huff-build-desktop/moc_mainwindow.o
2/huff-build-desktop/process.o
2/huff-build-desktop/read.o
2/huff-build-desktop/write.o
2/coder/Debug
2/decoder/Debug
2/huff-build-desktop/huff_folder
2/coder
2/decoder
2/huff
2/huff-build-desktop
2
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.