際際滷
Submit Search
Datastructure tree
Download as PPTX, PDF
0 likes
572 views
°
Follow
data structure- tree
Read less
Read more
1 of 12
Download now
Download to read offline
More Related Content
Datastructure tree
1.
Tree
2.
Tree 螻給葦
れ 讌 殊捌. root 覿襴 豪 螳 譟伎. ROOT subtree
3.
碁Μ 碁(node):
碁Μ 蟲 襭(root): 覿覈螳 碁, 豕 碁 觚 碁Μ(subtree) : 碁 蠏 碁れ る 企伎 碁Μ 襷 碁(terminal node) : 碁 觜襷碁 : 企 伎 螳讌 碁 覯(level) : 碁Μ 螳 豸旧 覯 (覯 1覿) : 碁Μ 豕 覯 谿 : 碁螳 螳讌螻 碁 螳
4.
伎 碁Μ(Binary Tree)
螳 碁襦 蟲焔 碁Μ企. 碁Μ 譴 碁 螳 2螳 危 蟆 讌豺. 襭 碁 2螳 覿 碁襦 蟲焔. 螳螳 るジ讓 覿 碁Μ, 殊 覿 碁Μ 覿 襯碁. 伎 碁Μ 螳 譟伎. A B A B 碁Μ 襦 るジ 伎 碁Μ企.
5.
/ * + +
- a b c d e f ( a + b ) * ( c - d ) / ( e + f )
6.
碁Μ 碁
碁 襯 n, 碁Μ 企ゼ h手 螳. 碁 豕 螳 : h ( h 覯 蟾讌 覈 碁螳 襷 螳螻 蟆曙) 碁 豕 螳 : 2 1 (h 覯 覈 碁螳 碁襯 螳螻 蟆曙) 2 1 ヰ ( + )
7.
Full Binary Tree
襷 碁螳 覈 碁螳 2螳 碁襯 螳 碁Μ襯 讌豺. 碁 2 1 企. a b c d e f g Height 3 full binary tree 企.
8.
Complete Binary Tree 襷
碁れ 碁Μ 殊 覿 豈讌 殊 碁Μ 譴 朱 觜 る 企麹讌 . a b c d e
9.
Skewed Binary Tree
碁螳 讓曙朱 豺一 覈旧 螳讌螻 . 蠍語企 n+1 ~ 2 a c g
10.
Binary Tree Preorder
/ * + a b c d + e f 碁 -> 殊 觚 碁Μ -> るジ讓 觚 碁Μ Inorder a + b * c d / e + f 殊 觚 碁Μ -> 碁 -> るジ讓 觚 碁Μ Postorder a b + c d - * e f + / 殊 觚 碁Μ -> るジ讓 觚 碁Μ -> 碁 / * + + - a b c d e f
11.
Priority Queues 螳 れ
一 襯 螳讌螻 . 一 襯 螳讌 一襯 螳讌 覲企 襾殊 豌襴 . 螳 一 襯 螳讌 蟆曙 蠏碁れ 磯 豌襴. 2 4 3 4 8 7 9 9 9 Min Tree 襭語 螳 豕螳 9 4 8 4 2 7 1 9 3 Max Tree 襭語 螳 豕eo螳
12.
Min & Max
Heap Min Heap complete binary tree 企. min tree襯 襷譟 Max Heap complete binary tree企. max tree襯 襷譟
Download