- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
北京邮电大学计算机学院--离散数学-11.3-11.4trees.ppt
* * College of Computer Science Technology, BUPT Backtracking applications Graph colorings * * College of Computer Science Technology, BUPT Backtracking applications The n-Queens Problem * * College of Computer Science Technology, BUPT Backtracking applications Sums of Subsets * * College of Computer Science Technology, BUPT Depth-first search in directed graphs Example 9 Web Spiders * * College of Computer Science Technology, BUPT §10.4 12, 14 College of Computer Science Technology, BUPT Yang Juan yangjuan@bupt.edu.cn College of Computer Science Technology Beijing University of Posts Telecommunications Discrete Mathematical Structures Tree Traversal * * College of Computer Science Technology, BUPT Content Universal address systems Traversal algorithms Depth-first traversal: Preorder traversal Inorder traversal Postorder traversal Breadth-first traversal Infix/prefix/postfix notation * * College of Computer Science Technology, BUPT Universal address systems Label all the vertices Label the root with the integer 0. Then label its k children from left to right with 1,2,…k. For each vertex v at level n with label A, label its kv children, as they are drawn from left to right, with A.1,A.2,…A. kv. Example 1 * * College of Computer Science Technology, BUPT * * College of Computer Science Technology, BUPT Traversal algorithms Procedures for systematically visiting every vertex of an ordered rooted tree are called traversal algorithms. Preorder traversal Inorder traversal Postorder traversal * * College of Computer Science Technology, BUPT Preorder traversal Definition 1 Let T be an ordered rooted tree with root r. If T consists only of r, then r is the preorder traversal of T . Otherwise, suppose that T1, T2, . . . , Tn are the subtrees at r from left to right in T . The preorder traversal begins by visiting r. It continues by traversing T1 in preorder, then T2 in preorder, and so on, until Tn is traversed in preorder. * *
您可能关注的文档
- 人教新课标数学五年级下册《整数加法运算定律推广到分数加法》课件.ppt
- 人教版三年级上册数学第四单元-万以内的减法课件.ppt
- 人教版五下数学分数加减混合运算第三课时.pptx
- 人教版数学七年级上册-有理数加法运算律.pptx
- 人教版数学六年级上册第四章《圆的面积》课件.ppt
- 代数结构-离散数学.ppt
- 仿真科学讲课用.ppt
- 优化方案2017高中数学第一章解三角形1.2应用举例第2课时三角形中的几何计算课件新人教A版必修5.ppt
- 信息科学技术导论1.3.ppt
- 全面的计算机2014组合数学—第二章鸽巢原理和Ramsey定理---副本.ppt
- 人工智能技术在小学音乐教育多媒体素材智能编辑与合成研究教学研究课题报告.docx
- 初中校园流动摊贩管理中的学生权益保护对策创新与实践教学研究课题报告.docx
- 《舞蹈表演中的增强现实技术与舞台视觉效果研究》教学研究课题报告.docx
- 《特色农产品品牌塑造的关键要素及创新路径探析》教学研究课题报告.docx
- 初中数学课堂中的合作学习与评价机制研究教学研究课题报告.docx
- 人工智能与小学音乐跨学科教学整合:教师教学能力提升的实践探索教学研究课题报告.docx
- 初三英语完形填空专项训练解析.docx
- 高中生物教育中数字足迹分析对学生科学探究能力的提升研究教学研究课题报告.docx
- 人工智能教育平台中生物学科互动教学的多模态交互设计探讨教学研究课题报告.docx
- CRM市场竞争经营的客户关系管理(一).pdf
最近下载
- 巨人 通力电梯NOVA GKE调试说明书故障代码GPN15 GVN15_GKE - 51668093D01-2022.pdf VIP
- 吕梁学院《高等数学下》2025 - 2026学年第一学期期末试卷(A卷).docx VIP
- 抖音超火看表情符号猜成语PPT.pptx VIP
- 德龙ICK6000冰淇淋机说明书.pdf
- 昂科威S用户手册.doc VIP
- DB45T12302015红树林湿地生态系统固碳能力评估技术规程.pdf VIP
- 难点详解人教版8年级数学上册《全等三角形》专项训练试题(解析卷).docx VIP
- 难点详解人教版8年级数学上册《全等三角形》专项训练练习题.docx VIP
- 铁路连续梁桥线形监控量测系统使用培训.pdf
- 麻醉危机管理情境模拟教学 .pdf VIP
文档评论(0)