-
八皇后问题:用回溯算法做的
八皇后问题:用回溯算法做的
-8 Queens : The backtracking algorithm
- 2023-05-20 18:50:03下载
- 积分: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
-
学习数据结构写的排序代码,有冒泡排序、直接插入、希尔排序、简单选择排序、快速排序、堆排序...
学习数据结构写的排序代码,有冒泡排序、直接插入、希尔排序、简单选择排序、快速排序、堆排序-study data structure was sort of code, Bubble Sort directly inserted, Hill, in order of simple choice, in order of Quick Sort, Heap Sort
- 2022-06-27 11:18:18下载
- 积分:1
-
通过builder实现的数据结构各种算法 由于本人编程技术还没成熟,不足之处还请见谅...
通过builder实现的数据结构各种算法 由于本人编程技术还没成熟,不足之处还请见谅-builder achieve through the data structure algorithms as I mature programming No shortage Department also requested forgiven
- 2022-03-14 09:40:53下载
- 积分:1
-
用VB编写的汉诺塔演示程序创建图形界面的汉诺塔问题,..
汉诺塔演示程序,用VB做成的图形界面,能够实现汉诺塔问题,也即是把N个盘子从一根棍上移到另一根上面,通过中转的棍,但是必须保证在每根棍上都是下面的盘子大于上面的盘子。-HANOR demo program using VB create graphical interface to HANOR problems, that is, N dishes from one club to another on the above-through the interchange stick, but it must be guaranteed in each stick-on the following dishes are greater than the above dishes.
- 2022-05-08 05:57:47下载
- 积分:1
-
Bbd 示例软件访问
Bbd 示例软件访问-ADO 查询-在 DBGrid 显示按字母顺序排列的结果-添加、 删除和更改对编辑、 备忘录、 组合框和复选框,编辑搜索中按 Enter 键截潜-对话框,以确认删除,......
- 2022-03-24 06:56:07下载
- 积分:1
-
二叉树排序实现二叉树的前序、中序、后序排列,以菜单形式出现,代码简洁、易懂易用...
二叉树排序实现二叉树的前序、中序、后序排列,以菜单形式出现,代码简洁、易懂易用-Binary Tree Binary Tree Sort realize the first order, in sequence, after the sequence order to the menu form, the code is simple and easy to understand and use
- 2022-05-12 23:53:53下载
- 积分:1
-
Nearest neighbor search algorithm, k_tree algorithm for most of the Chinese lite...
最近邻搜索算法,k_tree算法的大部分中文文献-Nearest neighbor search algorithm, k_tree algorithm for most of the Chinese literature
- 2022-01-26 06:16:31下载
- 积分:1
-
此程序为求两个数的约数,将他们输出,将这两个数的最大公约数输出...
此程序为求两个数的约数,将他们输出,将这两个数的最大公约数输出
-procedure for the sake of a few two about a few of their exports, the number of these two majors output
- 2022-01-22 08:30:59下载
- 积分:1
-
使用递归 - 汉诺塔游戏
这个程序使用递归解决汉诺塔游戏的问题。 这个程序将所有盘从嘴左边的指针处移动到最右边,并满足以下要求1) 一次仅移动一个盘子.2)移除的盘子必须放到一个指针下面 3)大盘子不能放在小盘子上面
- 2022-08-11 12:59:27下载
- 积分:1