☰
WH
·
CSBank
首頁
題庫專區
模擬考專區
Pro 方案
聯絡我們
首頁
題庫
模擬考
Pro
聯絡
總覽
資料結構
388
演算法
212
作業系統
290
計算機組織與結構
266
離散數學
161
線性代數
182
資料結構
›
Ch7 搜尋與排序
第 53 題/共 76 題
◀
DS 53/76
錯題回報
00:00
53. Binary Heap、Time Complexity
#DS-07-053
易
Binary Heap
Time Complexity
📝
☆
Given a binary heap of integers whose amount is n, show the correct one(s).
A
(A) If it is a minimum heap, getting the minimum from the heap needs
O
(
n
)
O(n)
O
(
n
)
times in the worst case.
B
(B) Similarly, if it is a maximum heap, getting the maximum needs
O
(
1
)
O(1)
O
(
1
)
times.
C
(C) Transforming a list of n random integers into an ordered single list needs
O
(
n
)
O(n)
O
(
n
)
times.
D
(D) Transforming a series of n random integers into a maximum heap needs
O
(
n
)
O(n)
O
(
n
)
times.
E
(E) Transforming a minimum heap of n elements to a maximum heap needs
O
(
n
)
O(n)
O
(
n
)
times.
📝 寫筆記
📄 交大111
重做
跳轉到第
題
← 上一題
下一題 →
答案/解析
▤
完整推導請見《WH 資工筆記 · 資料結構》Ch7 搜尋與排序
‹
本章題號 · 41–60 / 76
›
全部 76
易 63
中 13
難 0
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60