搜索资源列表
双向链表实现
- 有关双向链表的实现
实现哈希表,链表,与数据结构无关
- 因工作原因,需要实现数据的快速查找与维护,因为是用C语言实现,所以写了一个通用的算法,实现了与数据结构无关。当时这一部分用在了一个实时交通信息上。 有问题与我联系 sulongvc@163.com
用链表求两集合的交集
- 已知递增有序链表A、B分别表示一个集合,设计算法以实现C=A∩B,要求求解结果以相同的方式存储,并且所用时间尽可能的少。
链表做学生成绩管理系统
- 链表做学生成绩管理系统 用数据结构的知识解决一些小的问题
不带头结点的单向链表逆置
- 给定程序中,函数fun的功能是将不带头结点的单向链表逆置,即若原链表中从头到尾结点数据域依次为:2、4、6、8、10,逆置后,从头至尾结点数据域依次为:10、8、6、4、2。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的结果。 -A given program, function fun is the function of the node will not take the lead against the home one-way linked list,
在NACHOS上实现了双向链表
- 在NACHOS上实现了双向链表,演示了大部分并发错误,完整实验报告与关键文件。-To achieve a two-way in the NACHOS list, shows most of the concurrency errors, complete test reports and key documents.
合并两个升序排列的链表
- 合并两个升序排列的链表,主要是数据结构中链表的排序问题-Merge two linked list in ascending order, mainly linked list data structure in the scheduling problem
list 创建链表,遍历一次输出
- 创建链表,遍历一次输出,然后分字母,数字,其他字符分别创建链表,分别输出。-Create a linked list, traversing one output, and then sub-letters, numbers, other characters were created linked list, respectively, output.
CirHDoublyLinkedList 用C++编写的头结点的循环双链表操作
- 用C++编写的头结点的循环双链表操作,含头文件和源文件。-Written in C++ node of the first cycle of double-linked list operations, including the header files and source files.
设A与B分别为两个带有头结点的有序循环链表
- 设A与B分别为两个带有头结点的有序循环链表(所谓有序是指链接点按数据域值大小链接,本题不妨设按数据域值从小到大排列),list1和list2分别为指向两个链表的指针。请写出将这两个链表合并为一个带头结点的有序循环链表的算法,Set up A and B respectively with the first two nodes in an orderly circulation list (so-called orderly means the link click data link thre
include.rar
- 1. 输入字符序列,建立二叉链表。 2. 中序遍历二叉树:递归算法。 3. 中序遍历二叉树:非递归算法。 4. 求二叉树的高度。 5. 球二叉树的叶子个数。 6. 将二叉链表视为森林的孩子兄弟链表,计算森林中叶子个数。 7. 建立中序线索二叉树,并实现中序遍历。 8. 借助队列实现线索二叉树的层次遍历。 ,tree
反向输出一个链表,连接两个链表
- 包括反向输出一个链表,连接两个链表。以及一些例子。,Including the reverse output of a linked list, connecting the two lists. As well as some examples.
A0_001 链表编程
- N只猴子要选大王,所有猴子按1,2,3...M报数,凡报到M的退出圈外,如此循环,直到圈内只剩一只,就是大王了. 分析:建立一个环形链表,每个猴子就是链表中的一个结点,那么猴子出圈就是对环形链表中的结点的删除,只到最后剩下的一个结点为止.-N monkeys to elect king, all the monkeys reported by a number 1,2,3 ... M, where M to report the withdrawal of outsiders, a
bak
- 数据结构中链表算法的PPT,包括伪代码和基本原理,内容很详细-Data structure linked list algorithm PPT, including pseudo-code and the basic principles of the content in detail
lian
- 链表操作,包括创建,销毁,定位元素,插入,删除,判空,显示-List operations, including create, find, and merging
link_quicksort
- 链表的快速排序法-List`s quick sort
利用尾插法建立一个双向链表
- 1. 利用尾插法建立一个双向链表,并遍历双向链表。 2. 实现双向链表中删除一个指定元素。 3. 在非递减有序双向链表中实现插入元素e仍有序算法。 4. 判断双向链表中元素是否对称,若对称返回1,否则返回0。 5. 设元素为正整型,实现算法所有奇数排列在偶数之前。 6. 在主函数中设计一个简单的菜单调试上述算法。 -table
dxxhlb
- 已知有一个单向循环链表,其每一个结点中含三个域:pre,data和next,其中data为数据域,next为指向后继结点的指针域,pre也为指针域,但它的值为空(NULL),试编写算法将此单向循环链表改为双向循环链表,即使pre成为指向前驱结点的指针域。-Known to have a one-way circulation list, which each node contains three domains: pre, data and next, in which data for th
list
- 程序实现了带表头单链表的最基本操作,包括创建链表,查询数值,插入结点,删除结点,链表分解,将单链表变为循环链表。并附有详细的注释和实验报告。-Procedures to achieve a single-list header with the most basic operation, including the creation of list, query value, insert node, delete node, chain decomposition, into a single
以二叉链表作存储结构
- 以二叉链表作存储结构,编写一个算法将二叉树左、右子树进行交换的算法。-Write an algorithm to binary trees left and right subtree exchange algorithm for binary list storage structure.