资源列表
[数据结构常用算法] eightqueens
说明:算法中的经典问题:八皇后问题,回溯法的重要应用-eightqueens in C language<linmeng> 在 2025-06-12 上传 | 大小:161kb | 下载:0
[数据结构常用算法] trees
说明:二叉树也是递归定义的,其结点有左右子树之分,逻辑上二叉树有五种基本形态: (1)空二叉树——(a); (2)只有一个根结点的二叉树——(b); (3)右子树为空的二叉树——(c); (4)左子树为空的二叉树——(d); (5)完全二叉树——(e)注意:尽管二叉树与树有许多相似之处,但二叉树不是树的特殊情形。 -Binary tree is recursively defined, and its sub-tree nodes are so divided, there are five ba<zn> 在 2025-06-12 上传 | 大小:1kb | 下载:0
[数据结构常用算法] hufmtree
说明:给定n个权值作为n个叶子结点,构造一棵二叉树,若带权路径长度达到最小,称这样的二叉树为最优二叉树,也称为哈夫曼树(Huffman tree)。 -Given the right value as the n-n-leaf node, a binary tree structure, if the minimum weighted path length, saying such a binary tree for the optimal binary tree, also called Hu<zn> 在 2025-06-12 上传 | 大小:1kb | 下载:0
[数据结构常用算法] link
说明:单链表是一种顺序存取的结构,为找第 i 个数据元素,必须先找到第 i-1 个数据元素。因此,查找第 i 个数据元素的基本操作为:移动指针,比较 j 和 i -Linked list structure is a sequential access for the data elements to find the first i must first find the first i-1 data elements. Therefore, the first i find the basic o<zn> 在 2025-06-12 上传 | 大小:4kb | 下载:0
[数据结构常用算法] finding
说明:折半查找的算法思想是将数列按有序化(递增或递减)排列,查找过程中采用跳跃式方式查找,即先以有序数列的中点位置为比较对象,如果要找的元素值小于该中点元素,则将待查序列缩小为左半部分,否则为右半部分。通过一次比较,将查找区间缩小一半。 折半查找是一种高效的查找方法。它可以明显减少比较次数,提高查找效率。但是,折半查找的先决条件是查找表中的数据元素必须有序。 -Binary search algorithm idea is to sequence by ordering (ascending or<zn> 在 2025-06-12 上传 | 大小:1kb | 下载:0
[数据结构常用算法] yuesefuhuana
说明:约瑟夫环的实现。。功能比较完整,用户界面比较友好,能够成功的进行环的循环。-Joseph Ring implementation. . Features more complete, the user interface is friendly to the success of the ring cycle.<刘立鹏> 在 2025-06-12 上传 | 大小:1kb | 下载:0