- 1、本文档共24页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Applied machine learning 神经网络
Stacks and Queues CSC220 Data Structure Winter 2004-5 Abstract Data Type Abstract Data Type as a design tool Concerns only on the important concept or model No concern on implementation details. Stack Queue is an example of ADT An array is not ADT. What is the difference? Stack Queue vs. Array Arrays are data storage structures while stacks and queues are specialized DS and used as programmer’s tools. Stack – a container that allows push and pop Queue - a container that allows enqueue and dequeue No concern on implementation details. In an array any item can be accessed, while in these data structures access is restricted. They are more abstract than arrays. Questions? Array is not ADT Is Linked list ADT? Is Binary-tree ADT? Is Hash table ADT? What about graph? Stacks Allows access to only the last item inserted. An item is inserted or removed from the stack from one end called the “top” of the stack. This mechanism is called Last-In-First-Out (LIFO). A Stack Applet example Stack operations Placing a data item on the top is called “pushing”, while removing an item from the top is called “popping” it. push and pop are the primary stack operations. Some of the applications are : microprocessors, some older calculators etc. Example of Stack codes First example stack ADT and implementation C:\Documents and Settings\box\My Documents\CS\CSC\220\ReaderPrograms\ReaderFiles\Chap04\Stack\stack.java push and pop operations are performed in O(1) time. Example of Stack codes Reversed word What is it? ABC - CBA C:\Documents and Settings\box\My Documents\CS\CSC\220\ReaderPrograms\ReaderFiles\Chap04\Reverse\reverse.java Example of Stack codes BracketChecker (balancer) A syntax checker (compiler) that understands a language containing any strings with balanced brackets ‘{‘ ‘[‘ ‘(‘ and ‘)’, ‘]’, ‘}’ S - Bl S1 Br S1 - Bl string Br Bl - ‘{‘ | ‘[‘ | ‘(‘ Br - ‘)’, | ‘]’, | ‘}’ C:\Documents and Settings\box\My Documents\CS\CSC\220\ReaderPrograms\ReaderFiles\Chap
您可能关注的文档
- America .ppt
- AMS讲义-第九章.ppt
- AMT咨询人员的成熟度分析.ppt
- An Introduction toDatabase Systems 资料库系统.ppt
- ancientjapansamin很不错的、日本风俗人情风景等详尽介绍.pptx
- android和linux的关系.ppt
- Android可能性.ppt
- Android的兩層框架.ppt
- android讲义_xuexi.ppt
- Android程式设计.ppt
- 中证央企创新指数投资价值分析:中证央企创新,业绩韧性与长期成长,稳中求进的核心资产.docx
- 24年策略展望系列1:宽财政如何拉动企业盈利?.pdf
- 中巴合作新篇章:共筑发展桥梁,携手共创未来.docx
- 软件与服务行业美股科技股观察|24Q3业绩跟踪:英伟达,业绩延续强劲增势,新产品已全面投产,供不应求持续至25年.docx
- IP文创行业“谷子经济”正盛,千亿市场崛起.pdf
- 保险行业深度·2025年投资策略报告:资产负债联动下的转型之年.pdf
- 北交所策略华为硅基负极技术突破,贝特瑞出货量领先,本周科技新产业市值整体下降.pdf
- 2025海外年度策略:从预期,跌落现实.pdf
- 国家数据局印发《行动计划》,将进一步加快我国数据要素产业发展.pdf
- 策略定期报告:倒也跌出了空间.pdf
最近下载
- 履带吊拆卸安装方案.doc
- 如何拍摄公务活动.ppt
- 2024届高三化学一轮复习 说题比赛—2023年高考化学全国新课标卷28题 课件.pptx VIP
- 某医院电动自行车消防安全综合治理工作实施方案.docx VIP
- 探究计算机中的数据表示.docx VIP
- 安全文明工地创优计划(1).doc
- 比亚迪s6维修维修手册(近光灯不亮).pdf VIP
- “线上+线下”混合教学模式在小学心育课中的应用-来源:基础教育参考(第2020011期)-教育部教育管理信息中心.pdf VIP
- SYT 7412-2018-油气长输管道突发事件应急预案编制规范.pdf
- 马克思主义基本原理-华东师范大学-中国大学MOOC慕课答案.pdf
文档评论(0)