-
数据结构
数据结构--树的常见操作及维护算法的实现-data structure-- a common tree operation and maintenance of the algorithm to achieve
- 2022-06-16 13:51:04下载
- 积分:1
-
数据结构——链表(双向循环链表)
双向循环链表节点:数据域+指针域指针域:一个指针指向前一个同类型节点,另一个指针指向后一个同类型节点(1)设计节点struct db_node{int data;struct db_node * prev;struct db_node * next;};(2)创建空链表//创建了一个只有头节点的双向循环链表,返回头节点的地址struct db_node * create_db_list(void){struct db_node * phead = (struct db_node *)malloc(sizeof(struct db_node));if(phead == NULL)exit(-1);else{phead->next = phead;phead->prev = phead;}return phead;}(3)制造新节点//制造新节点,返回新节点的地址struct db_node * make_db_node(int value){struct db_node * pnew = (struct db_node *)malloc(sizeof(struct db_node));if(pnew == NULL)printf("malloc failed!
");else{pnew->data = value;pnew->next = NULL;pnew->prev = NULL;}return pnew;}(4)插入节点//把pnew指向的节点插入到头节点的前面,也就是整个链表的末尾bo
- 2022-02-14 07:06:11下载
- 积分:1
-
旅行商问题:
某售货员要到若干城市去推销商品,已知各城市之间的路程(或旅费)。他要选定一条从驻地出发,经过每个城市一遍,最后回到驻地的路线,使总的路程(或旅...
旅行商问题:
某售货员要到若干城市去推销商品,已知各城市之间的路程(或旅费)。他要选定一条从驻地出发,经过每个城市一遍,最后回到驻地的路线,使总的路程(或旅费)最小。-traveling salesman problem : A salesman to a number of cities to sell commodities, known the distance between cities (or travel). He selected from a resident, after each city again, the last resident to return to the line, making the total distance (or travel) is the smallest.
- 2023-07-26 02:35:04下载
- 积分:1
-
(1) 用一个4*20的二维数组M,第1行存放按从小到大排序的20个所给出的ai和bi,第2行存放相应的作业序号,第3行存放1或2(1代表是来自ai,2代表是来...
(1) 用一个4*20的二维数组M,第1行存放按从小到大排序的20个所给出的ai和bi,第2行存放相应的作业序号,第3行存放1或2(1代表是来自ai,2代表是来自bi), 第4行存放0或1(0代表作业序号未进入最优调度方案;1代表作业序号已进入最优调度方案)
(2) 排序完后,按课本所述方法求一种最优调度方案,存放在S中。
-(1) with a 4* 20 two-dimensional array M, the first a line to deposit a small to large order of 20 given by ai and bi, line 2 store operation corresponding serial number, the first three lines deposited one or 2 (a representative from the ai, 2 representatives from the bi), the first four rows stored 0 or 1 (0 for job number to gain access to optimal scheduling programs a job number has been entered on behalf of the optimal scheduling scheme) ( 2) Sort exhausted, according to the methods described in textbooks, seeking the optimal scheduling of a program stored in the S in.
- 2022-05-07 13:53:40下载
- 积分:1
-
枚举lan中的所有数据库实例的d
枚举lan中的所有数据库实例的d-enumeration of all database instances d
- 2022-02-01 01:25:19下载
- 积分:1
-
This is my c just learning to use the language of a book, I feel good, so that w...
这是我刚刚学习c语言后使用的一本书籍,感觉不错,让大家借鉴一下-This is my c just learning to use the language of a book, I feel good, so that we learn from what
- 2022-03-23 01:07:54下载
- 积分:1
-
This is a java implementation of the personnel management system, examples of pe...
这是用java实现的一个人员管理系统的例子,可以实现人员管理-This is a java implementation of the personnel management system, examples of personnel management can be achieved
- 2022-01-31 18:02:47下载
- 积分:1
-
ADO操作数据库强大封装类
MySql,Access ADO操作数据库强大封装类 功能满足大家的需求 C++源码,有需要的下载吧
- 2023-01-23 09:15:04下载
- 积分:1
-
一个数据结构,其中每个元素包含指向下一个和以前的内容在列表中,形成了双向线性名单。...
一个数据结构,其中每个元素包含指向下一个和以前的内容在列表中,形成了双向线性名单。-A data structure in which each element contains pointers to the next and previous elements in the list, thus forming a bidirectional linear list.
- 2023-08-09 05:35:03下载
- 积分:1
-
Qt数据库操作
Qt对数据库操作,包括数据库打开与关闭,增加、删除、修改、查询,其中数据的展示是用自定义数据模型,是从QAbstractTableModel继承起的。
- 2022-03-03 10:17:11下载
- 积分:1