-
a)需求分析:
任务 :对一篇英文文章,统计各字符出现的次数,实现Huffman编码;
要求:输出每个字符出现的次数和编码,其中求最小权值要求用堆实现;...
a)需求分析:
任务 :对一篇英文文章,统计各字符出现的次数,实现Huffman编码;
要求:输出每个字符出现的次数和编码,其中求最小权值要求用堆实现;
b)概要设计:
本程序所使用的数据结构是树和线性表,所使用的算法主要有堆排序、赫夫曼算法。
-a) Requirements Analysis : Mandate : an article in English, statistics of the number of characters to achieve Huffman coding; Requirements : Every character in the output of the number and the code for which the minimum requirement of the right to use Heap; B) Summary of design : the procedures used by the data nodes the tree structure and linear form, the algorithm used by the main sculpture, in order Huffman algorithm.
- 2022-03-06 12:21:16下载
- 积分:1
-
c++调用WPRD
调用word和进行word表格的填写 一个类型库是一个提供COM对象功能信息的文件或文件的一部分,而且类型库包含了有关类的信息。注意,类型库并不存储实际的对象,而只是存储有关这些对象的信息。类型库详细说明了一个自动化客户机为对象需要调用的方法和属性的信息,比如说它详细的描述了接受或返回的值。每一个Microsoft Office应用程序都在一个dll文件中提供了多种类型库资源,这种dll文件叫做目标库(*.olb)。下面的表列出了Microsoft Office 97 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-12-09 03:20:03下载
- 积分:1
-
ADC模块程序,通过配置ADC模块寄存器,设置不同的转换模式。...
ADC模块程序,通过配置ADC模块寄存器,设置不同的转换模式。-ADC module procedures, through the ADC module configuration register, setting a different conversion mode.
- 2022-05-23 20:32:07下载
- 积分:1
-
java的数据流
3.11 流
知道流的分类
掌握IO常用操作
Java中的流代表程序中数据的流通,是以先进先出方式发送信息的通道。
图3- 11 输入流和输出流
流可以分为不同的类型,按照不同的分类方式,从不同的角度来观察,概念上会有重叠。
按照流的方向,可以将流分为输入流和输出流:
输入流(InputStream):只能从中读取数据,而不能向其写入数据。
输出流(OutputStream):只能向其写入数据,而不能从中读取数据。
按照处理流的基本单位可以将流分为字节流和字符流:
字节流:在流中处理的基本单位为字节(8位的byte)的流。
字符流:在流中处理的基本单位为字符(16位的Unicode)的流。
按照流的角色分,可以将流分为节点流和过滤流:
节点流:可以从/向一个特定的IO设备(如磁盘或网络)读/写数据的流,节点流又常被称为低级流(Low Level Stream),节点通常是指文件、内存和管道。
过滤流:实现对一个已经存在的流的连接和封装,通过所封装的流的功能调用实现数据读/写功能的流。这种对流进行处理的流称为过滤流。
字节流中存放的是字节序列,无论是输入还是输出,都是直接对字节进行处理。InputStream和OutputStream为字节输入/输出流类的顶层父类。字符流中存放的是字符序列,无论是输入还是输出,都是直接对字符处理。字符流的顶层父类是Reader和Writer。节点流通常直接对特定的IO设备(如磁盘或网络)进行读写,而过滤流通常对已存在的流进行连接和封装,从而对已有的流进行特殊处理。
对象的序列化就是把对象写到一个输出流中,对象的反序列化是指从一个输入流中读取一个对象。
总结:
字节流:
输入流 输出流
FileInputStream FileOut
- 2022-01-25 23:22:03下载
- 积分:1
-
本文档详细的介绍了在windowsce下的编程方法以及示例。对学习CE的人有帮助。...
本文档详细的介绍了在windowsce下的编程方法以及示例。对学习CE的人有帮助。-this document described in detail in the windowsce programming methods and examples. On learning of CE help.
- 2022-07-14 02:04:04下载
- 积分:1
-
This procedure is mainly developed in the WinCE environment SQLCE database progr...
这个程序主要是在WinCE环境下开发访问SQLCE数据库程序的例子程序,其中有对相关功能进行了组件封装,采用套间线程模型。其中ALTCOMM项目是封装的组件,WinMain项目是调用程序。-This procedure is mainly developed in the WinCE environment SQLCE database program to visit examples of the procedure, which has the relevant functions of the component package, the use of threading model suites. One project is ALTCOMM package components, WinMain is the procedure call.
- 2022-07-19 04:51:00下载
- 积分:1
-
A Java Gobang game, one can make, and determine winners and losers, a few button...
一个Java五子棋游戏,可以下了,判断输赢,几个按钮的功能实现界面的处理,等等就是功能完善-A Java Gobang game, one can make, and determine winners and losers, a few button function realization interface processing, and so is a fully functional Hehe
- 2022-01-25 21:06:54下载
- 积分:1
-
Multi
多元树的层次遍历、先根遍历、后根遍历
问题的描述:
函数填空:层次遍历多元树(在文件tree.cpp中3个空)、先根遍历、后根遍历的递归函数(在文件tree.h中2个空);
多元树的输入:在主程序中调用多元树的函数(定位根、找大儿子、找下一个兄弟等),输入某棵多元树。
-Multi-level tree traversal, the first traversal the root, root traversal issues Description: function to fill in the blank: multi-level tree traversal (tree.cpp in the document in three space), the first traversal the root, root ergodic recursive function (in the document in two empty tree.h) multiple input tree: In the main program to call multi-tree function (positioning root, look for the eldest son, to find a brother, etc.), enter a multi-tree tree.
- 2022-01-26 03:50:14下载
- 积分:1
-
文档中详细的介绍了wince编程,对嵌入式开发有很大的帮助!
文档中详细的介绍了wince编程,对嵌入式开发有很大的帮助!-Document describes in detail the wince programming, embedded development has a lot of help!
- 2022-06-17 15:33:07下载
- 积分:1
-
奥莱理
OReilly - COM and .NET Component Services Source Code-OReilly- COM and. NET Component Services Source Code
- 2022-05-13 03:11:23下载
- 积分:1