数据结构——栈(Stacks)
栈遵循LIFO ( last in first out) 即后入先出原则
栈结构类似于叠盘子 后叠上去的要先拿走 才能拿到下面的盘子
因此stack是一种访问受限的线性存储结构
用单向链表的结构来存储
stack类
class stack
{
stack();
bool empty() const;
void pop(); //移除栈顶元素
void push()(const T&item);//增加元素至栈顶
int size() const;
T &top() const;//返回栈顶元素
}
栈的两个常见应用:
&&Run-time Stack 运行时间栈
顺序执行活动,运行栈顶的活动,运行完毕弹出。
&&RPN or Postfix Notation
将中缀表达式转化为后缀表达式压入栈中,顺序弹出进行运算。
如:a*b+c -> ab*c+
a*(b+c) -> abc+*
a-(b-(c-d)) -> abcd---
压入栈中时分为 数字栈 和 符号栈
符号栈:进栈与栈顶元素比较优先级。
同级则先弹出栈顶元素再新元素进栈,
优先级低则先弹出栈顶元素再与新的栈顶元素比较,
优先级高则直接入栈。
‘(’ 直接入栈,碰到 ‘)’ 则将直至 ‘(’ 的符号全部弹出。
举例:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgoAAAFJCAIAAAB1h5JdAAAbJElEQVR4nO3dP3biPhfGcZ+TDWQp1NkD28jJIlKwAArq2QD9FOmoaafNSUWZLjvwW/D+HGNfycKS7Efo+ynmZIwxV1d/rnAS0rQAAIw0awcAAFBEeQAAGCgPAAAD5QEAYKA8AAAMlAcAgIHyAAAwUB4AAAbKA2q32WwaVZvNZu30rINOUUB5QO2aRncWKMeWlXLDlWNLq5Z2Ai7Ks105tqyUG64cW1q1tBNwUZ7tyrFlpdxw5djSqqWdgIvybFeOLSvlhivHllYt7QRclGe7cmxZKTdcOba0amkn4KI825Vjy0q54cqxpVVLOwEX5dmuHFtWyg1Xji2tWtoJuCjPduXYslJuuHJsadXSTsBFebYrx5aVcsOVY0urlnYCLsqzXTm2rJQbrhxbWrW0E3BRnu3KsWWl3HDl2NKqpZ2Ai/JsV44tK+WGK8eWVi3tBFyUZ7tybFkpN1w5trRqaSfgojzblWPLSrnhyrGlVUs7ARfl2a4cW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yQDJ4y2SjBOw8KNxnCu3hcJ1wnm910bwwA0lqhPAw2m67T/BfxHJ88ErQScecBQN0SlIfBEu/ZvA/W5fH7Bs+qzdYSAJaUeCXlzgMAPAZWUgCAgfIAADBQHgAABsoDAMDwP42mmxaQgsm/AAAAAElFTkSuQmCC" alt="" />
数据结构——栈(Stacks)的更多相关文章
- 数据结构——栈(C语言实现)
#include <stdio.h> #include <stdlib.h> #include<string.h> #include<malloc.h> ...
- C++ 泛型 编写的 数据结构 栈
平时编程里经常需要用到数据结构,比如 栈和队列 等, 为了避免每次用到都需要重新编写的麻烦现将 C++ 编写的 数据结构 栈 记录下来,以备后用. 将 数据结构 栈 用头文件的形式 ...
- C语言数据结构-栈的实现-初始化、销毁、长度、取栈顶元素、查找、入栈、出栈、显示操作
1.数据结构-栈的实现-C语言 #define MAXSIZE 100 //栈的存储结构 typedef struct { int* base; //栈底指针 int* top; //栈顶指针 int ...
- 数据结构——栈的实现(数组、Java)
巩固数据结构 栈是一种有限制的线性表 只能对表尾进行操作 package com.shine.test.datastruct; import java.util.Arrays; public clas ...
- PHP SPL标准库之数据结构栈(SplStack)介绍(基础array已经可以解决很多问题了,现在开始解决问题)
PHP SPL标准库之数据结构栈(SplStack)介绍(基础array已经可以解决很多问题了,现在开始解决问题) 一.总结 SplStack就是继承双链表(SplDoublyLinkedList)实 ...
- java数据结构——栈(Stack)
学习数据结构与算法是枯燥的,但只有坚持不懈的积累,才会有硕果累累的明天. /** * 继续学习Java数据结构 ————栈 * 栈的实现其实还是使用数组,只不过我们不能直接访问数组下标,而是通过一个指 ...
- (js描述的)数据结构[栈结构](2)
(js描述的)数据结构[栈结构](2) 一.什么是栈结构 1.一种受限制的线性结构,这种结构可以基于数组来实现. 2.可以抽象成一个容器,上面的是栈顶,底下的是栈底.所以仅允许对栈顶进行操作, 二.栈 ...
- 数据结构和算法(Golang实现)(14)常见数据结构-栈和队列
栈和队列 一.栈 Stack 和队列 Queue 我们日常生活中,都需要将物品排列,或者安排事情的先后顺序.更通俗地讲,我们买东西时,人太多的情况下,我们要排队,排队也有先后顺序,有些人早了点来,排完 ...
- openssl stack 数据结构栈基本操作
堆栈是两种不同的数据结构: 堆:数据先进先出: 栈:数据先进后观: 在stack.h 中 openssl 为我们提供了一个通用的栈,利用提供的接口我们可以方便的用此栈来存放开发中的任意数据. open ...
随机推荐
- ASP.NET Web编程
runat="server"直接回交服务器,处理数据,又以数据加密后的hidden属性的input控件插入回去,实现表单的状态保存 ruant="server" ...
- SqlServer 2015修改表时出现“save changes is not permitted…”的解决方法
使用SqlServer 2015的过程中,会出现如下情况: 在修改完表字段名或是类型后点击保存时会弹出一个对话框,且无法保存已做的修改.对话框内容大致如下: Saving changes is not ...
- Android核心基础
第三代移动通讯技术(3rd Generation) ,支持高速数据传输的蜂窝移动通讯技术.3G与2G的主要区别是传输数据的速度. 1987年,第一台模拟制式手机(1G)问世,只能进行语音通话,型号:摩 ...
- iOS实践02
第二天了,上了一天课,软件测试.数据挖掘.概率论,晚上了才有时间捣鼓捣鼓程序. 今天只是简单的做了一点.觉得自己思考的写不出来,只能简单的写一个过程,不像第一次写这个,少了很多思考的. 1.完善tab ...
- C#连接Oracle数据库基本类
C#用来连接oracle数据库的基本类: using System; using System.Collections.Generic; using System.Linq; using System ...
- Linux 中 java 访问 windows共享目录
有两个方案: 1.将windows共享目录,挂载到linux系统下,通过使用本地目录访问windows共享目录 2.通过samba的java实现包,不过需要开个windows共享目录的账户 http ...
- 图片剪切之Croppic插件
前几天做图片上传时需要进行图片的剪切和缩放,上网查找时找到了这个插件.样式很好看,功能也很OK.但是网上都是php进行后台处理图片的例子,然后只好慢慢琢磨C#的处理.插件地址是:http://www. ...
- CSS样式的优先机制
链接:http://www.cnblogs.com/xugang/archive/2010/09/24/1833760.html 又抓到虫子了:IE中奇怪的应用CSS的BUG:http://www.c ...
- jquery初学笔记
官方网站:http://jquery.com/ 一个简单的JQuery实例: <!DOCTYPE html> <html lang="en" xmlns=&quo ...
- elasticsearch-5.0.0初见
基础概念 Elasticsearch有几个核心概念.从一开始理解这些概念会对整个学习过程有莫大的帮助. 接近实时(NRT) Elasticsearch是一个接近实时的搜索平台.这意味着,从索引一个文档 ...