资源列表
zhan
- 1) 建立栈并进行一些元素入栈,实现链栈的建立及入栈的基本操作; (2)实现某些元素的出栈,实现链栈的出栈的操作;(1) set up the stack and carry out some elements into the stack, to achieve the establishment of the chain stack and the basic operation of the stack; (2) the stack of some elements can be re
数据结构
- (1)建立链队列,并实现一些元素入队,实现链队列的建立和入队的基本操作; (2)实现某些元素出队,实现链队列的出队的基本操作((1) the establishment of the chain queue, and realize some basic elements into the team, and the team operation to achieve the establishment of the chain queue; (2) to realize some elem
tingchechang
- 问题描述: 设停车场是一个可停放n 辆汽车的狭长通道,且只有一个大门可供汽车进出。汽车在停车场内按车辆达到时间的先后顺序,依次由北向南排列(大门在最南端,最先达到的第一辆车停放在车场的最北端),若车场内已停满n辆汽车,则后来的汽车只能在门外的便道上等候,一旦有车开走,则排在便道上的第一辆车即可开入;当停车场内某辆车要离开时,在它之后进入的车辆必须先退车车场为它让路,待赶辆车开出大门外,其它车辆在按原次序进入车场,每辆停放在车场的车在它离开停车场时必须按它停留的时间长短叫纳费用。试为停
shu
- 大学软件工程数据结构课程设计二叉树实验三种遍历方法(curriculum design,structure data)
linkQueue
- doc版本的链表模版 可以用来进行数据结构编程(doc version of linked list template)
0000
- 编写一个程序读入一个字符串,统计该字符串中出现的字符及其次数,然后输出结果。要求用一个二叉树来保存处理结果,字符串中的每个不同的字符用树描述,每个结点包含4个域()
Bubblesort
- 冒泡排序,汇编语言,基于c,实现了对数组由小到大的排列,利用if条件判断(bubble sort is a easy method for sort)
实验四
- 用于拉格朗日插值法的计算方法,便于理解的(method for chu xue zhe shiyong ok ok ok ok ok)
BTree
- 实现C++版数据结构中二叉树的建立以及前序,中序和后序遍历(To achieve the C++ version of the data structure in the establishment of the two fork tree, as well as preorder, preorder and post traversal)
利用栈进行括号匹配检验
- 检验一条信息中括号各个匹配与否。比如输入(){}会提示错误,输入({})会提示正确。 另外附录了线性表基本操作的对应代码(Check whether parentheses match each other in a message. In addition, the corresponding code of the basic operation of the linear table is attached)
binary tree
- 二叉树的创建和非递归遍历,包括先序遍历,中序遍历,后序遍历(the creation and non-recursive traversal of binary tree)
猴子选大王
- 猴子选大王,有N只猴子,从1~N进行编号。它们按照编号的顺时针方向,排成一个圆圈,然后从第一只猴子开始报数。第一只猴子报1,以后每只猴子报的数字都是它前面猴子所报数字加1。如果一只猴子报的数字是M,则该猴子出列,下一只猴子重新从1开始报数。剩下的猴子继续排成一个圆圈报数,直到全部的猴子都出列为止。最后一个出列的猴子胜出。按照上述规则,编写程序选出排成一圈的猴子中的大王。(Monkey King, N monkeys, numbered from 1 to N. They are in accor