- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
chapter 9 Binary Tree and General Tree
Chapter 9 Binary Tree and General Tree Overview Two-way decision making is one of the fundamental concepts in computing. A binary tree models two-way decisions. A hierarchy represents multi-way choices. The general tree is an extension of the binary tree. Learning Objectives Describe a binary tree in terms of its structure and components, and learn recursive definitions of the binary tree and its properties. Study standard tree traversals in depth. Develop a binary tree class interface based on its recursive definition. Learn about the signature of a binary tree and understand how to build a binary tree given its signature. Learning Objectives Understand Huffman coding, a binary tree-based text compression application, and use the binary tree class to implement Huffman coding. Implement the binary tree class. Study how tree traversals may be implemented non-recursively using a stack. Describe the properties of a general tree. Learning Objectives Learn the natural correspondence of a general tree with an equivalent binary tree, and the signature of a general tree. 9.1.1 Components Structure A binary tree consists of nodes and branches. A node is a place in the tree where data is stored. There is a special node called the root. “starting point” of the tree. The nodes are connected to each other by branches. A left branch or right branch. 9.1.1 Components Structure Binary means that there are at most two choices. A node is said to have at most two children. A node that does not have any children is called a leaf. Non-leaf nodes are called internal nodes. 9.1.1 Components Structure Parents and children Siblings Grandparents and progeniture There is a single path from any node to any other node in the tree. 9.1.1 Components Structure Structure Two binary trees with the same number of nodes may not have the same structure. 9.1.1 Components Structure Depth is the distance from the root. Nodes at the same depth are said to be at the same level, with the root bein
您可能关注的文档
- 3rd semester im project.ppt
- 4 market_forces(英).ppt
- 51010-1-c60_cover.doc
- 5b unit7 A busy day.ppt
- 5unit3words.ppt
- 6th Pre-ICIS SIGHCI Workshop Summary.ppt
- 6_Having_Fun_Together.ppt
- 7ARM指令集特点、寻址方式和指令分类详解 习题4.ppt
- 802.20 Seminar Presentation.ppt
- 7 Hyped GM maize study faces growing scrutiny.doc
- Chapter01 Written Communication.ppt
- Chapter3 Discrete-Time Signals and Systems.ppt
- Chap市场如何运行(PPT89).ppt
- Chinese Fancy Knots.ppt
- Cisco 控制器5508操作手册.ppt
- Chinese festivals in first half of a year.ppt
- Chapter1 Strategy and the Quest for Competitive Advantage.ppt
- Color Seminar(全部中文_new).ppt
- Combined_DS2001.ppt
- COMP5116_Internet Protocol_Lecture notes_2012 Semester 2_week12.ppt
文档评论(0)