搜索资源列表
mystack1008
- 包括栈的push\\pop,计数,查找等操作,简单易行,适合数据结构的初学者-including Stack push \\ pop, calculators, searching operation is simple, the data structure suitable for beginners
houzhuishi2
- \"栈顶运算符为: %c\\n\",getTop(optr)) printf(\"此时运算符为:%c\\n\",e) printf(\"栈顶运算符优先级低,%c进栈\\n\",e) push(optr,e) //e进运算符栈
Stack
- 堆栈的实现代码,实现了栈的所有功能,PUSH,POP,插入,销毁,清空等,有调试程序,可以很清楚的看到栈的运行过程
树的问题(生成)
- ADT BinaryTree 的实现及验证程序采用的主要数据结构:二叉树、栈、队算法思想:1、 先序建树、输出树、后序遍历用递归方法。性能分析:O( n )2、 先序遍历、中序遍历:性能分析:O( n )(1) 若遇到新节点非空则先入栈,然后访问其左子树。(2) 若为空则将栈顶结点出栈,访问其右子树。(3) 循环1、2直到栈为空且无节点可入栈。先序与中序的区别是:先序在入栈时访问节点,中序在出栈时访问节点。3、 层遍历:性能分析:O( n )(1) 根节点入队(2) 节点出队并访问(3) 若节点
查找向量容器中的两个字符串
- 编程实现如下功能:在主函数中,使用find()函数查找向量容器中的两个字符串,然后使用排序算法sort对查找到的两个字符串之间的所有字符串进行排序操作,最后输出排序后的向量容器中的字符串。其中函数push用于生成一个包含12个字符串的向量,函数disp用于输出向量容器中的字符串。,Programming to achieve the following functions: the main function, use the find () function to find Vector co
Stack
- 简单模拟栈的操作:包括栈的初始化,压栈,栈顶元素弹出以及取栈顶元素;采用C实现-Analog stack easy steps: including the stack initialization, push, pop elements as well as the Top-Top-check elements implementation using C
Ex1
- 自己实现的栈,包括push,pop,empty等各种算法。-my stack class.It has been compiled successfully and it has all the methods required such as push,pop and so on.
include
- 定义一个栈,并实现栈的基本操作: void Push( const T& x) // bool Pop(T& x) // bool getTop(T& x) const // ostream& operater<<(ostream& os, Stack<T>& s) //overload -The definition of a stack, and to achieve the basic operation of the stack: void P
main
- 用最小推排序算法实现作业的优先级调度问题-Minimum push sorting algorithm
basicoperation_forstack
- 包括数据结构中栈的一些基本操作如 push,pop,同时包括了栈的一些常用 经典算法,如表达式求值等,还有一些构建栈的常用算法,如构建字符栈,表达式栈-Including data structures some of the basic operation of the stack, such as push, pop, also include a stack of some commonly used classical algorithms, such as expression
12
- 以堆栈为例说明算法设计,队列的算法与堆栈类似。 在这里先说明一下“第一可见对象”这个词,在本报告中指的是在堆栈或队列中第一个可以输出或者弹出的的对象。在堆栈中自然是指栈顶的对象,队列中自然是指队头的对象。 (1) 堆栈中的每个对象都包含 数据元素element和指向本类型的一个指针变量link。element用来存储新压入的元素(在本实验中,为简化代码,直接将其设为int型),在每一对象中link用来指向下一个可见对象。如第一可见对象中的link指向第二可见对象,第二可见对象的link指
paixu
- 程序可以使用七种排序算法,包括快速,希尔,推,简单选择等。对生成的随机数进行排列,并比较各种排序算法时间优劣-Program can use the seven ranking algorithms, including fast, Hill, push, simple choice. On the generated random numbers to be ranked, and compare the merits of time sorting algorithm
push
- 提供一个数据结构中常用的堆栈函数,非常有用,对于初学数据结构的人非常有帮助。-Provide a common data structure stack function, very useful data structure for the beginner who is very helpful.
mars_rover_bits.tar
- Provides a complete bit-manipulation class including binary and non-binary operators, mask patterns, set/clear/toggle function, push/pop of arbitrary data and more
StackOperations
- 实现简单的栈操作。数据的操作按先进后出的顺序。成员函数为pop push size full empty print等等。 -Simple stack operations. After the operation the data out by advanced order. Member function for the pop push size full empty print and so on.
erchashu
- 数据结构 二叉树的基本操作实现 遍历文件夹并建成目录树,一个较好的遍历程序,对系统所有的文件获取做了比较详细的说明。程序在2000下通过。-Bi tree typedef struct bitree char data struct bitree*left,*right basic use of tree create init queue push queue empyt. hope you like it.
lianbiao
- 一个模拟简单进栈出栈的单向链表,先进后出,调用一次压栈函数压栈一次,调用删除,删除一次-A simple simulation of the stack into the stack of one-way linked list, first-out, a stack function push a call, call delete, delete a
s
- 假设以整数序列1,2,3,…,n作为栈S的输入,利用Pop(出栈)和Push(入栈)操作,编写算法以输出所有可能的输出序列-Assuming a sequence of integers 1,2,3, ..., n as the input stack S, the use of Pop (stack) and Push (stack) operation, write algorithm to output all possible output sequences
stack
- 栈是限制仅在表的一端插入和删除的线性表,是生活中某些过程的抽象。插入和删除操作的一端称为栈顶,插入操作称作入栈(Push),删除操作称作出栈(Pop)。栈顶元素总是最后进栈的,和最先出栈的;而栈底元素是最先进栈,最后出栈。栈具有后进先出(LIFO)的特性。顺序栈是栈的顺序存储结构的实现。链栈是栈的链式存储结构的实现。-Stack is limited only to one end of the table insert and remove a linear form, is the life
push-relabel
- (push-relabel)预流推进重标签算法的C语言详细描述-(Push-relabel) Preflow promote weight label algorithm C language described in detail