没有合适的资源?快使用搜索试试~ 我知道了~
Java Methods-Binary Trees.ppt
0 下载量 28 浏览量
2023-09-05
00:25:01
上传
评论
收藏 671KB PPT 举报
温馨提示
试读
30页
Java Methods-Binary Trees.ppt
资源推荐
资源详情
资源评论
BinaryTrees
Java Methods
Java Methods
Object-Oriented Programming
and Data Structures
24-2
Objectives:
• Learnaboutbinarytrees
• Learnhowtorepresentandhandleabinary
treeusingtheTreeNodeclass
• Learnaboutbinarysearchtrees
• Reviewsetsandmaps,andthejava.util
classesthatimplementthem
24-3
SomeApplicationsofTrees
• Dataretrieval(search)
• Priorityqueues
• Decisionsystems
• Hierarchies
• Games
24-4
BinaryTreeTerms
Root
Leaves
(nodeswith
nochildren)
Left
child
Right
child
Numberof
levels(equals
5here)
node
node’s
right
subtree
24-5
BinaryTreeProperties
• Ashallowtreecanholdmanynodes.For
example,abinarytreewith20levelscan
have2
20
-1(approximately1,000,000)
nodes.
• Ateachnodeadecisioncanbemadeon
wheretoproceed,leftorright(usedinbinary
searchtrees).
• Thepathtothebottomisrelativelyshortas
comparedtothetotalnumberofnodes.
剩余29页未读,继续阅读
资源评论
珞瑜·
- 粉丝: 10w+
- 资源: 500
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功