资源列表
stackoperation
- 一个关于数据结构的小程序,压站,弹站,对编程很有用的-A small program on the data structure, pressure points, playing the station, very useful for programming
joseph
- 约瑟夫问题如下:已知n个人(n>=1)围坐一圆桌周围,从1开始顺序编号。从序号为1的人开始报数,顺时针数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规则重复下去,直到所有人全部出列。请问最后一个出列的人的编号。 -Joseph questions are as follows: Given n individuals (n> = 1) sitting around a round table, numbered sequentially startin
qipao
- 起泡排序是数据结构中的重要排序方法,本程序是起泡排序的Visual C++代码实现。-The bubble sort is the sort method in the data structure, This is the Visual C++ source code of bubble sort。
homework_2.22
- 对单链表实现就地逆置,即利用原表的存储空间将线性表(a1,a2,…,an)逆置为(an,an-1,…,a1)。输入数据:文本文件input.txt 文件分2行: 第1行是单链表的数据元素个数n,n<20。如果n<1或n>19则视为输入数据出错。 第2行是单链表的n个数据元素,每个元素都是-999~999之间的十进制整数,元素之间用空格分开。 输出数据:文件output.txt 文件只有1行: 第1行是完成逆置之后的单链表n个元素的十进制整数,每个元素
Prim.rar
- 用普里姆(Prim)算法求用邻接矩阵存储结构表示的图或网的最小生成树,With the prim algorithm is seeking to use adjacency matrix storage structure, said the plan or network, minimum spanning tree
vectoralist
- 练习vector和list的使用 定义一个空的vector,元素类型int,生成10个随机数插入到vector中,用迭代器遍历vector并输出其中的元素值。在vector头部插入一个随机数,用迭代器遍历vector并输出其中的元素值。用泛型算法find查找某个随机数,如果找到便输出,否则将此数插入vector尾部。用泛型算法sort将vector排序,用迭代器遍历vector并输出其中的元素值。将vector清空。 定义一个list,并重复上述实验,并注意观察结果。 -Exerc
binarytreesearch
- 包含中序遍历二叉树的递归和非递归算法的源代码-Included in the sequence of recursive binary tree traversal and non-recursive algorithm source code
park
- 以栈模拟停车场,以队列模拟车场外的便道,按照从终端读入的数据序列进行模拟管理。每一组输入数据包括三个数据项:汽车“到达”或“离去”信息、汽车牌照号码以及到达或离去的时刻。对每一组输入数据进行操作后的输出信息为:若是车辆到达,则输出汽车在停车场内或便道上的停车位置;若是车辆离去,则输出汽车在停车场内停留的时间和应交纳的费用(在便道上停留的时间不收费)。栈以顺序结构实现,队列以链表结构实现。-park solution
3261
- zoj3261 Connections in Galaxy War 的源码,主要考察并查集,并要从后往前建图-source code of zoj3261 :Connections in Galaxy War ,mainly about union-find,and need to build graph from end to the beginning
GAIJINMAOPAOFA
- 冒泡法是数据排序的一种基本算法,它的基本方法是:相邻两元素进行比较,如有需要则进行交换,每完成一次循环就将最小元素排在最后(如从大到小排序),下一次循环是将其他的数进行类似操作?如将N 个数按从大到小排序-Bubble method is a basic algorithm for sorting data, which is the basic method: Comparison of two adjacent elements, then if necessary, be exchange
binary-tree-program
- 二叉树是常用的数据结构,本程序式基于二叉树的数据结构C++程序-binary tree program
1052TianJiTheHorseRacing
- ACM HDOJ http://acm.hdu.edu.cn/showproblem.php?pid=1052-ACM HDOJ http :// acm.hdu.edu.cn/showproblem.php pid = 1052