資料結構›Ch7 搜尋與排序第 57 題/共 76 題
57. Max Heap、建堆、Level
#DS-07-057易Max Heap建堆Level
題組題幹(本題:(a),共 3 小題)點擊展開
Considering the data pairs with keys in the given order: 20, 5, 10, 18, 4, 22, 11, 32, 21, as inputs to create a tree.
Note: In a tree, each step from top to bottom is called as level of a tree. The level count starts with 1 and increments by 1 at each level or step.
[1%] If you create a max heap for them, what is the level of the node containing 5?
📄 成大113
▤完整推導請見《WH 資工筆記 · 資料結構》Ch7 搜尋與排序