资源列表
demo
- (1)输入字符序列,建立二叉链表。 (2)遍历二叉树输出。 (3)请设计一个算法,要求该算法把二叉树的叶子结点按从左到右的顺序连成一个单链表,表头指针为head。 二叉树按二叉链表方式存储,链接时用叶子结点的右指针域来存放单链表指针。请遍历该链表输出所有叶子结点,然后再先序遍历二叉树输出所有叶子结点,并对比两个输出结果,看是否相同。 (4)试写一算法判断某二叉树是否是完全二叉树。 (5)试写一算法判断某二叉树是否是二叉排序树。 (6)在主函数中设计一个简单的菜单,分别调试上
Sort
- 数据结构精品课程查找讲解(快速排序、希尔排序、堆排序、归并排序、插入排序等)-Find quality courses to explain the data structure
2d-array-Operator-overloading
- 对二维数组进行运算符+、—的重载,一个使用成员函数,另一个使用友元函数-Add and Subtraction between Two dimensional arrays,using Operator overloading.
myselfMAZE
- 一个简单的迷宫的算法,输入迷宫数组,自动计算迷宫路径-A simple maze algorithm, input array maze, maze path automatically calculated
PersistCircleQue
- 循环队列模板,数据存入在文件中,增加数据时文件大小不变,新数据会挤出旧数据。-Data stored in the file c++ circular queue template, when the file reaches a certain size, the old data out of the new data will go, but the file size remains unchanged. When the batch reading can significantly
QUICKSORT
- 本程序通过使用快速排序算法对数组进行排序。-The procedure for using quick sort algorithm to sort the array.
bag
- 本程序解决背包问题,其中有多个类型的物品,每类物品可以有任意数量。-The procedure to solve knapsack problem, in which there are multiple types of items, each class can have any number of items.
tongxunlu
- 关于通讯录的小程序,具有录入联系人信息、条件查找、排序、保存通讯录到文件的功能。-A small program of c++ ,meaning to write data of contact people ,check poeple s data with some condition ,make the data inorder ,and save these data to file.
Binary-search
- 二分查找是数据结构中的一种重要查找方法,它可以缩短查找时间-Binary search is the data structure is a kind of important search method, it can shorten find time
sort
- 数据结构中有很多排序方法,这里列举了一些简单的排序方法-In data structures have many sorting method, here are a few simple sorting method
map
- 《三国志》是一款很经典的经营策略类游戏。我们的小白同学是这款游戏的忠实玩家。现在他把游戏简化一下,地图上只有他一方势力,现在他只有一个城池,而他周边有一些无人占的空城,但是这些空城中有很多不同数量的同种财宝。我们的小白同学虎视眈眈的看着这些城池中的财宝。 按照游戏的规则,他只要指派一名武将攻占这座城池,里面的财宝就归他所有了。不过一量攻占这座城池,我们的武将就要留守,不能撤回。因为我们的小白手下有无数的武将,所以他不在乎这些。 从小白的城池派出的武将,每走一公理的距离就要消耗
01
- 利用回溯法求01背包问题,包含了很多内容-it is good
