-
Page
页式管理缺页中断优化FIFO LRU OPT.rar 三种算法-Page-style management page fault FIFO LRU OPT.rar three kinds of optimization algorithms
- 2022-09-15 20:05:03下载
- 积分:1
-
K-均值在 C 编程
// kmeans.c//伊桑·布罗德斯基2011年//月#include#include#include#定义SQR(X)((X)*(X))#定义MAX_CLUSTERS16#定义MAX_ITERATIONS100#定义BIG_double(INFINITY)无效失败(字符*海峡){的printf(STR);出口(-1);}双calc_distance(INT暗淡,双* P1,双* P2){双distance_sq_sum= 0;对于(INT II=0;二
- 2023-07-21 00:35:03下载
- 积分:1
-
用O(nlogn)的算法对Cograph进行识别
用O(nlogn)的算法对Cograph进行识别-O (nlogn) algorithm for the identification of Cograph
- 2022-07-21 17:12:57下载
- 积分:1
-
Apriori算法实现频繁项集和关联规则
一共建6个表:
1) 购物表Trade_List(Trade_ID,Product)
2) 频繁一项集Apri
- 2022-05-08 00:30:06下载
- 积分:1
-
traverse the depth map, using binary tree realize that the importation of binary...
图的深度遍历,用二叉树实现,输入时要遵循二叉树的顶点和边数的对应关系-traverse the depth map, using binary tree realize that the importation of binary tree to be followed when the number of vertices and edges of the relationship
- 2022-04-25 12:17:04下载
- 积分:1
-
float型而二叉树的创建及遍历
#include
#include
struct BiTNode //定义二叉树结构体
{
float data;
struct BiTNode *lchild;
struct BiTNode *rchild;
};
//二叉树创建函数
struct BiTNode *CreateTree(float *preorder,float *inorder,int lenth)
{
float *p,*q;
- 2022-12-24 11:10:03下载
- 积分:1
-
2.[问题描述]
编写递归算法,在二叉树中求位于先序序列中第K个位置的结点
[输入]
按照先序序列的顺序输入该结点的内容。其输入abd eh...
2.[问题描述]
编写递归算法,在二叉树中求位于先序序列中第K个位置的结点
[输入]
按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g 。输入要求的位置
[输出]
若二叉树不空,按先序序列输出,求出所求位置的结点
[存储结构]
采用二叉表存储
[算法的基本思想]
采用递归方法建立和遍历二叉树。首先建立二叉树的根结点,然后建立其左右子树,直到空子树为止,先序遍历二叉树时,先遍厉左子树,后遍厉右子树,最后访问根结点并计算出二叉树中叶子结点的数目和第K个位置的结点
#include
#include
struct node{
char info
struct node*llink,*rlink
}
typedef struct node NODE
-2. [Description of the issue] to prepare recursive algorithm, Binary for the first sequence sequence in the first position of the K-node [imported] in accordance with the first order input sequence in the order of the nodes content. Input abd eh i g cf. Import requirements of the position [output] if the binary tree is not empty, the first sequence by sequence output obtained by seeking the location of nodes [storage structure] Table 2 forks storage [algorithm for the basic idea] recursive method and Traversing binary tree. First established binary tree root node, and then to build t
- 2022-06-02 16:30:44下载
- 积分:1
-
mysql 3.22源码
mysql 3.22源码-mysql 3.22 sources codes
- 2022-02-04 09:14:36下载
- 积分:1
-
数据结构文件检索
数据结构实验六
统计若干个大型英文txt文件(如英文小说)中所有单词出现的次数,并输出出现次数最多的前10个单词及其出现次数。假设单词字符定义为大小写字母、数字和下划线,其他字符均看作单词分隔符。
要求:
(1)自行设计合适的数据结构及相关算法;
(2)程序运行结束时将txt文件名以及统计结果写入磁盘;
(3)每次程序启动时(除了首次运行)将上次的结果读入内存、显示;
(4)能根据用户选择实现重新初始化、查找某单词出现次数、追加统计、退出等功能。
- 2022-01-26 00:14:54下载
- 积分:1
-
C++ 控制MYSQL数据库 源码
利用C++对MYSQL进行数据读,写,及修改. 需要有mysql.h 头文件
数据库结名为person, 表名为 mm, 表结构如下:
字段 类型
device_id int
sav_value int
sav_date datetime
- 2022-04-11 07:39:31下载
- 积分:1