搜索资源列表
zhanyuduilie
- 栈的实现及应用 (1)采用链式存储实现栈的初始化、入栈、出栈操作。 (2)采用顺序存储实现栈的初始化、入栈、出栈操作。 队列的实现 (1)采用链式存储实现队列的初始化、入队、出队操作。 (2)采用顺序存储实现循环队列的初始化、入队、出队操作。 -zhan yu duilie
median1363
- pku1363,1、题目简介: 给出一个数n,1~n的所有整数会以从小到大的顺序入栈,但出栈顺序不定,同时给出几组出栈的顺序,要求判断给出出栈顺序是否可能。 2、算法实现思想: 首先建立一系列的Stack操作,入push,pop,isEmpty,top,clear等 将要判断的出栈序列存储至一个数组map中。然后从最大的n开始到1进行循环压栈和出栈处理。从出栈序列map[]的尾部开始,进栈,不断寻找最大的出栈,次大的出栈...最后若栈空则为Yes,否则为No -pku136
shunxuzhan
- 顺序栈基本操作 编写程序任意输入栈长度和栈中的元素值,构造一个顺序栈,对其进行清空、销毁、入栈、出栈以及取栈顶元素操作。-Basic operation of the stack in order to program any input stack length and stack element values, construct a sequence of stacks, its empty, destroyed, stack, stack and take the top eleme
stack
- 堆栈的基本操作,包括堆栈的初始化,入栈,还有出栈的操作,完成了堆栈实验的基本内容。-The stack of basic operations, including a stack of initialization, into the stack, and a stack of operation, completed the stack the basic content of experimental.
zhengshuzhuanhuanerjinzhima(zhanshixian)
- 任意输入一个整数,输出x得二进制码,用栈实现,其中包含出栈入栈操作-Any input an integer, the output x be a binary code, with the stack implementation, which contains a stack stack operation
stack-processing
- 此程序可实现数据结构中对堆栈的相关操作,例如入栈,出栈-This program data structure can be related to the operation of the stack, such as stack, stack, etc.
stack
- 数据结构中,基于栈的操作,包括判断空栈,入栈,出栈等操作。-Data structures, stack-based operations, including the judge empty stack, stack, stack and other operations.
pp
- 实现堆栈的操作,功能为入栈、出栈,实现先进后出的原则-to realize the stack operation , the function :push onto the stack out the stack
STACKS
- 堆栈、队列的链式实现 基本要求:所设计的程序要有简单的DOS界面,方便用户进行操作,完成以下功能: 以链式存储方式,实现堆栈的入栈、出栈、取栈顶元素功能。 以链式存储方式,实现带表头结点的循环队列的入队、出队、取队首元素、求队列长度。 查找出队列中的最大元素。 利用所实现的堆栈对队列中元素进行逆置,并将结果输出到文本文件中。 提高要求: 系统运行时能从文本文件中读取堆栈、队列元素信息,运行结束能将堆栈、队列最新元素信息保存至相应文件中。-Stack, queue ch
proj3_1
- 桟的各种操作,入栈、出栈操作,判断栈是否为空等操作-Zhan' s various operations, stack, stack operation, waited in vain to determine whether the operation of the stack
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
- 数据结构中栈操作的实现,包括出栈,入栈,判断栈是否为空等-Stack data structure operations to achieve, including the stack, the stack, the stack is waited in vain to determine
1132154564787
- 这是一个链栈,用户可以根据提示进行栈的入栈、出栈等基本操作。-This is a chain of stack, the user can be prompted to stack the stack, the stack and other basic operations.
stack
- 对顺序栈进行的一系列操作,出栈,入栈,循环队列,奇数位出栈,偶数位出栈等-On the order of a series of stack operations, stack, stack, circular queue, a stack bit odd, even bits of the stack, etc.
student-system
- 本系统是个学生成绩管理系统 有如下功能: 1.用顺序表n个学生的学号和成绩录入; 思想: 在主函数里完成学生人数限定,和定义学生的结构体指针,调用录入函数。 用结构体指针完成学生信息录入。 2.用选择排序法对n个学生的成绩按照降序排列; 思想: 定义2个学生结构体指针,用选择法完成学生成绩排序。 3.利用栈和队列的算法操作,删除不及格的学生信息,保留及格学生信息在栈或队列中; 思想: 定义一
stack
- 包含栈的相关操作,入栈、出栈、删除栈顶元素,栈元素的遍历-Contains stack the relevant operation, into the stack, the stack, delete stack elements, stack of elements of the traverse
zhan-de-ji-be-cao-zuo
- 一、 实验目的 掌握栈的基本操作:初始化栈、判栈为空、出栈、入栈等运算。 二、实验要求 1. 认真阅读和掌握本实验的算法。 2. 上机将本算法实现。 3. 保存和打印出程序的运行结果,并结合程序进行分析。 -First, the purpose of the experiment Master the basic operation of the stack: stack initialization, and sentenced to the stack is e
stackandthestackdemo
- java的入栈和出栈,在android方面,他可以有效的方便的控制入栈操作和出栈操作-java stack and the stack in the android, he can effectively facilitate the control stack operation and the stack operation
linkstack
- 链式栈,实现了出栈和入栈操作,代码简单易懂-Chain stack, the stack and stack operations, the code is easy to understand
test23
- 用顺序存储实现栈的初始化、入栈、出栈、取栈顶、判栈空操作。调用以上操作实现判断从键盘输入的括号序列是否匹配。-Stored in order to achieve the initialization of the stack, stack, stack, take the top of the stack and sentenced to the operation of the stack is empty. Call operation to achieve more than the j