- 1、本文档共24页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
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
- 翻译中介外教课.pdf
- 专版专题训练八级上册.pdf
- 课程资源目标指示作业加博综合level pre k lesson plans 4.pdf
- 考官财务报告.pdf
- arxiv机器学习作业.pdf
- alkali-with heat resistant lightweight aggregates exposed to high temperature mechanical and water transport properties碱性耐热轻量级聚集体暴露于高温机械水运输特性.pdf
- 课程资源目标指示作业9 final选秀决赛.pdf
- 归因方式对后悔情绪产生影响.pdf
- 文本课件hengan arch draft草案Rev Sales.pdf
- 文稿章作为粒子f1isch6e6a.pdf
最近下载
- 电力设备公司产品制造车间生产定额计件工资实施办法.docx VIP
- 2023国有企业“三重一大”决策制度实施细则办法.pdf VIP
- 安徽大学《地球科学概论》课件-第4讲大气圈、冰冻圈、岩石圈.pptx VIP
- 国家开放大学(电大)《农业生态基础.》2020年09月春季期末考试真题及答案(试卷代号2794).pdf VIP
- 餐饮行业员工职业规划.pptx VIP
- 《数学数学期望》课件.ppt VIP
- 肾病内科专业疾病临床诊疗规范2025版.docx VIP
- 质量信得过班组培训课件.pptx VIP
- 《高级英语FacetoFacewithHurricaneCamille》-精选课件(公开).ppt VIP
- 高中化学课件:芳环上的亲核取代反应.pptx VIP
文档评论(0)