-
C language data structures Several structures, including Critical Path procedure...
用C语言实现数据结构的几种常用结构,还包括关键路径的程序。-C language data structures Several structures, including Critical Path procedures.
- 2022-03-14 20:17:49下载
- 积分: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
-
该源代码为数据库设计的报刊订阅,和报告,挺详细的,适合初学者...
该源代码为数据库设计的报刊订阅,和报告,挺详细的,适合初学者-The source code for the database design of newspapers and periodicals subscriptions, and reports quite detailed, suitable for beginners
- 2022-03-24 16:55:24下载
- 积分:1
-
插入排序的直接改进算法
插入排序的直接改进算法--希尔排序算法.将用户输入的一列数按递增顺序排好并输出.以及直接插入冒泡选择排序算法的实现-inserted directly improve the ranking algorithm-- Hill sorting algorithms. Users input a few in increasing order to arrange and output. Bubble and direct insertion Selection Sorting Algorithm Implementation
- 2023-05-28 04:05:04下载
- 积分:1
-
广义表的反序
逆置广义表的递归模型如下:
F(LS) = null 若 LS 为空
F(LS) = LS ...
广义表的反序
逆置广义表的递归模型如下:
F(LS) = null 若 LS 为空
F(LS) = LS 若 LS 为原子,且 tail(LS) 为空
F(LS) = append( F(tail(LS)), head(LS) ) 若 LS->tag=0 ,且 LS->tp!=null
F(LS) = append( F(tail(LS), F(head(LS)) ) 若 LS->tag=1
其中 append(a,b) 的功能是将广义表 a 和 b 作为元素的广义表连接起来。-Generalized table set against the broad anti-order recursive model of the table is as follows: F (LS) = null if the LS is empty F (LS) = LS if LS for the atoms, and the tail (LS) is empty F (LS) = append (F (tail (LS)), head (LS)) if the LS-> tag = 0, and the LS-> tp! = null F (LS) = append (F (tail (LS), F (head (LS))) If the LS-> tag = 1 where append (a, b) function is a generalized form, and b as elements of generalized tables connected.
- 2022-03-01 20:55:59下载
- 积分:1
-
网吧的所有经营活动都能操作(包括时间管理、客户机管理、食品出售等),方便易用
网吧的所有经营活动都能操作(包括时间管理、客户机管理、食品出售等),方便易用-Internet cafes can operate all the business activities (including time management, client management, food for sale, etc.), user-friendly
- 2022-06-26 05:24:37下载
- 积分:1
-
设计一个O(n2)时间的算法,找出由n个数组成的序列的最长单调递增子序列。...
设计一个O(n2)时间的算法,找出由n个数组成的序列的最长单调递增子序列。-design an O (n2) time algorithm to identify by the number n of the longest sequence monotonically increasing sequences.
- 2022-04-24 15:50:28下载
- 积分:1
-
我写的数据结构小程序是关于排序算法的,功能比较全
我写的数据结构小程序是关于排序算法的,功能比较全-The little procedure of data structure that I wrote is about arranging in an order the algorithm, the function is more complete
- 2022-02-14 18:01:22下载
- 积分:1
-
本科时参加小竞赛设计的一个代数运算器
1. 能对常用的四则运算,三角, 乘方,开方运行2. 支持变量赋值和运算 3. 增加批处理执行功能(批处理脚本文件)...
本科时参加小竞赛设计的一个代数运算器
1. 能对常用的四则运算,三角, 乘方,开方运行2. 支持变量赋值和运算 3. 增加批处理执行功能(批处理脚本文件)
4. 增加对向量或矩阵运算的支持,如输入
-Undergraduate to participate in the design a little contest an algebraic calculator. Can commonly used four arithmetic, trigonometry, involution, prescribing run 2. Supports variable assignments and operations 3. Increase the batch executive function (a batch script file) 4. increase support for vector or matrix operations, such as the input
- 2022-07-17 11:32:14下载
- 积分:1
-
电位器控制电机转速
电位器控制电机转速。此代码由 proteus 8 仿真原理和 PIC C 组成pic16f877a 的编译器代码。
- 2023-08-09 06:25:03下载
- 积分:1