☰
WH
·
CSBank
首頁
題庫專區
模擬考專區
Pro 方案
聯絡我們
首頁
題庫
模擬考
Pro
聯絡
總覽
資料結構
388
演算法
212
作業系統
290
計算機組織與結構
266
離散數學
161
線性代數
182
資料結構
›
Ch7 搜尋與排序
第 76 題/共 76 題
◀
DS 76/76
錯題回報
00:00
76. Heap
#DS-07-076
易
Heap
📝
☆
Which of the following statement(s) is (are) correct?
A
The time complexity of inserting an element to an n-node min-Heap is
O
(
n
)
O(n)
O
(
n
)
.
B
The time complexity of searching an element in an n-node max-Heap is
O
(
n
)
O(n)
O
(
n
)
.
C
Building the min-Heap by inserting these nodes one by one
{
42
,
9
,
23
,
37
,
4
,
34
,
2
}
\{42, 9, 23, 37, 4, 34, 2\}
{
42
,
9
,
23
,
37
,
4
,
34
,
2
}
. The level order traversal sequence of the min-Heap is
{
2
,
9
,
4
,
42
,
37
,
23
,
34
}
\{2, 9, 4, 42, 37, 23, 34\}
{
2
,
9
,
4
,
42
,
37
,
23
,
34
}
.
D
The time complexity of deleting min in an n-node min-Heap is
O
(
log
n
)
O(\log n)
O
(
lo
g
n
)
📝 寫筆記
📄 中央112
重做
跳轉到第
題
← 上一題
下一題 →
答案/解析
▤
完整推導請見《WH 資工筆記 · 資料結構》Ch7 搜尋與排序
‹
本章題號 · 61–76 / 76
›
全部 76
易 63
中 13
難 0
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76