搜索资源列表
数据结构的文件读写
- 结构数据的读写是指从\"流\"文件中读取数据存入结构,或将结构数据写入\"流\"文件。我们可以用以下两种方法进行结构数据的文件读写-read and write data structure is defined as "the flow" paper read data are stored in the structure or structures to write data "flow" document. We can use the follo
200430481
- 赫夫曼编译码器: 用哈夫曼编码进行通信可以大大提高信道利用率,缩短信息传输时间,降低传输成本。但是,这要求在发送端通过一个编码系统对待传数据预先编码,在接收端将传来的数据进行译码(复原)。对于双工信道(即可以双向传输信息的信道),每端都需要一个完整的编/译码系统。试为这样的信息收发站写一个哈夫曼码的编/译码系统。 [基本要求]一个完整的系统应具有以下功能: (1)I:初始化(Initialization)。从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,并将它存于文件h
Normal
- 模拟正态分布随机变量 将结果写入文件 算法是从一本数学书上改编而来
taosheng
- 1)I:初始化(Initialization)。从终端读入电文,写到tobetrans文件中,统计电文的字符集合和对应的权值集合,建立哈夫曼树,并将哈夫曼树存于文件hfmtree中。 (2)C:编码(Coding )。利用已建好的哈夫曼树(如不在内存,则从文件hfmtree中读入),对文件tobetrans中的正文进行编码,然后将结果存入文件codefile中。 (3)D:译码(Decoding)。利用已建好的哈夫曼树将文件codefile中的代码进行译码,结果存入文件textfile中
Huffman
- 根据ascii码文件中各ascii字符出现的频率情况创建Haffman树,再将各字符对应的哈夫曼编码写入文件中,实现文件压缩。-In accordance with ascii code ascii characters in the document the frequency of the situation created Haffman tree, and then the character of the Huffman code corresponding to write docu
huffman(VC)
- 控件台应用程序。 采用哈夫曼编码对文件进行压缩解压。先将文件各字节读出,统计频率。进行哈夫曼编码,将编码重新写入文件。 编码命令:c <input file> <output file> 解码命令:d <input file> <output file> 对于编码的output file和解码的input file可以省略后缀,则默认采用.hfm。-huffman
compress
- 文本文件的压缩和解压程序 1. 先统计文件中出现的每个字符的出现次数; 2. 根据上述的统计结果设计huffman编码; 3. 为在文件编码时提高查询字符对应huffman编码的查询速度,以每个字符为结点内容构造一棵二叉排序树; 4. 压缩。即将文本文件中的每个字符用huffman编码代替,并写入二进制文件中。也就是说,压缩文件是一个记录文件内容的二进制流; 5. 解压。即将二进制文件还原为文本文件。 6.程序运行后应该有一个菜单,菜单 包含:打开文本文件、压缩、解压
insert-line
- 线性的插值算法,内涵读取文件,算法实现和写入文件。读取的文件为PARCHG,写入的文件为INSERT_DATA-Linear interpolation algorithm, meaning to read documents, algorithm implementation and write to a file. Read documents PARCHG, written documents INSERT_DATA
insert-lagrange
- 拉格朗日差值算法,内涵读取文件,插值,写入文件,读取文件为PARCHG,写入文件为INSERT_DATA-Lagrangian difference algorithm, meaning to read the file, interpolation, write files, read the file PARCHG, write documents INSERT_DATA
shiyan6
- 创建文件和目录 创建一个顺序文件,将用户从键盘输入的字符写入文件中,并回显在屏幕上,要求用字节流和字符流两种方式。-getpath
polyn
- C语言中用链表实现两个多项式的相加,相减,相乘,并要求从文件中读出数据和将操作后的数据写入文件中,运用到文件的相关知识。
HuffmanCoding
- 用哈夫曼编码实现文件压缩。压缩模块是通过构造哈夫曼树,以文件中字符出现的次数作为权值,得到哈夫曼编码对文件进行压缩。首先扫描文件统计字符出现次数,存入链表中。再将链表中的weight依次赋予权值,然后创建对应的哈夫曼树。最后将生成的哈夫曼树的长度写入文件,再将生成的哈夫曼树写入压缩文件。 解压缩模块是要将压缩文件还原为原文件。先读取一个4字节的哈夫曼树长度,根据读取的长度分配对应大小的哈夫曼树存储空间,然后读取哈夫曼树。-File compression with Huffman Codin
Freay
- 输出法雷序列。将结果写入文件中保存。采用的新算法,效率高。-The programme can output the Farley sequence。
random
- double类型随机数生成并写入文件,每次生成十组,每组2个double类型随机数-double type of random number generator and write files, each generated ten groups, each two types of random numbers double
sofm
- matlab做sofm网络的程序:Sofm网络处理程序,包含网络训练和仿真,同时将结果写入文件-matlab program to do sofm Network: Sofm network processing procedures, including network training and simulation, and the results written to the file
distance
- 一个计算矩阵距离的小程序,最后将结果写入文件中,供数学建模参考-A small distance matrix calculation procedure, the final results written to the file reference for mathematical modeling
fwen
- 1)手工输入几个学生信息,并将结果存入文件f1中 2)找出f1中学生分数最高的那个人,(有可能多个并列第一),将这个人的信息写入文件f2.-1) The manual input of several student information, and will result in the file f1, 2) to identify students with the highest score f1 person, (there may be more tied for first),
file
- 将图的数据写入文件并构造邻接矩阵,求出单源点到其他顶点的最短路径(The data of the graph is written into the file and the adjacency matrix is constructed, and the shortest path from the single source point to the other vertex is found)
文件读写入链表
- C++语言编写,可实现基于链表的文件读写入链表,数据结构源程序(C++ language is written to achieve chain table based file reading and writing chain table, data structure source program)
wo
- 可以对气象站点批量读取,可以对气象数据进行筛选鉴别,批量写入文件,并且是按站点按照月份读取每年的数据。(It can read the meteorological stations in batches, identify meteorological data, write files in batches, and read yearly data according to month.)
