-
矩阵连乘算法,实现几个矩阵相乘的最优顺序,并计算出复杂度...
矩阵连乘算法,实现几个矩阵相乘的最优顺序,并计算出复杂度-matrix continually multiply algorithm, achieving several matrix multiplication, the optimal sequence and calculated complexity
- 2022-01-25 18:04:43下载
- 积分:1
-
Prim algorithm using minimum spanning tree of the experimental procedures used i...
用prim算法实验最小生成树
本程序中用到函数adjg( ),此函数作用是通过接受输入的点数和边数,建立无向图。函数prg( )用于计算并输出无向图的邻接矩阵。函数prim( )则用PRIM算法来寻找无向图的最小生成树
定义了两个数组lowcost[max],closest[max],若顶点k加入U中,则令lowcost[k]=0。
定义二维数组g[ ][ ]来建立无向图的邻接矩阵。
-Prim algorithm using minimum spanning tree of the experimental procedures used in function adjg (), this function is through the acceptance of input points and edges, the establishment of a directed graph. Function of prg () used to calculate and output undirected graph of adjacency matrix. Function prim () is used PRIM Algorithm to find the undirected graph of the minimum spanning tree array defines two lowcost [max], closest [max], if it joined the U of k vertices, then the lowcost [k] = 0. The definition of two-dimensional array g [] [] to create a undirected graph of adjacency matrix.
- 2022-03-16 20:21:07下载
- 积分:1
-
假设一个文件中出现了8种符号S0,SQ,S2,S3,S4,S5,S6,S7,那么每种符号要编码,至少需要3bit。假设编码成000,001, 010,011,1...
假设一个文件中出现了8种符号S0,SQ,S2,S3,S4,S5,S6,S7,那么每种符号要编码,至少需要3bit。假设编码成000,001, 010,011,100,101,110,111。那么符号序列S0S1S7S0S1S6S2S2S3S4S5S0S0S1编码后变成 000001111000001110010010011100101000000001,共用了42bit。我们发现S0,S1,S2这3个符号出现的频率比较大,其它符号出现的频率比较小,我们采用这样的编码方案:S0到S7的码辽分别01,11,101,0000,0001,0010,0011, 100,那么上述符号序列变成011110001110011101101000000010010010111,共用了39bit。尽管有些码字如 S3,S4,S5,S6变长了(由3位变成4位),但使用频繁的几个码字如S0,S1变短了,所以实现了压缩。对于上述的编码可能导致解码出现非单值性:比如说,如果S0的码字为01,S2的码字为011,那么当序列中出现011时,你不知道是S0的码字后面跟了个1,还是完整的一个S2的码字。因此,编码必须保证较短的编码决不能是较长编码的前缀。符合这种要求的编码称之为前缀编码。要构造符合这样的二进制编码体系,可以通过二叉树来实现。-Suppose a file appears in eight kinds of symbols S0, SQ, S2, S3, S4, S5, S6, S7, then each symbol to be encoded, at least 3bit. Suppose encoding 000,001, 010,011,100,101,110,111. Then the symbolic sequence S0S1S7S0S1S6S2S2S3S4S5S0S0S1 encoded into 000001111000001110010010011100101000000001, sharing a 42bit. We found that S0, S1, S2 these three symbols the frequency of relatively large, the other symbols the frequency is relatively smal
- 2022-04-27 21:17:34下载
- 积分:1
-
航空公司管理信息系统
航空公司管理信息系统-airline management information system
- 2022-07-14 06:47:43下载
- 积分:1
-
这是数据结构中图的全部实现代码,对学习数据结构的同学很有帮助...
这是数据结构中图的全部实现代码,对学习数据结构的同学很有帮助-this is a code of data structure
- 2022-05-23 07:02:24下载
- 积分:1
-
Gray code code code Gray can choose the number, written in VB, good interface
格雷码的代码,能选择格雷码的个数,用VB写的,界面良好-Gray code code code Gray can choose the number, written in VB, good interface
- 2022-07-21 03:33:12下载
- 积分:1
-
source database.
数据库源码-source database.
- 2022-02-01 04:19:22下载
- 积分:1
-
c实现的常用几个算法
c实现的常用几个算法-c achieve several commonly used algorithms
- 2023-02-19 07:10:03下载
- 积分:1
-
一个数据库连接池的完整代码,根据网上找来的代码改写。在jbuilder下测试完全通过 使用时注意修改properties文件。用于商业用途请与原开发者联系。原则...
一个数据库连接池的完整代码,根据网上找来的代码改写。在jbuilder下测试完全通过 使用时注意修改properties文件。用于商业用途请与原开发者联系。原则上只用于学习目的-a database connection pool integrity code, according to the Internet brought the code rewritten. In JBuilder fully tested through the use of properties when changes to documents. For commercial purposes, please contact the original developers. In principle, only for the purpose of learning
- 2022-05-13 01:17:31下载
- 积分:1
-
上传几个数据结构源代码,比较简单。用标准c++写的。
上传几个数据结构源代码,比较简单。用标准c++写的。-upload a few data source code structure, relatively simple. Standard c writes.
- 2022-01-30 14:19:15下载
- 积分:1