☰
WH
·
CSBank
首頁
題庫專區
模擬考專區
Pro 方案
聯絡我們
首頁
題庫
模擬考
Pro
聯絡
總覽
資料結構
388
演算法
212
作業系統
290
計算機組織與結構
266
離散數學
161
線性代數
182
資料結構
›
Ch5 樹狀結構
第 31 題/共 48 題
◀
DS 31/48
錯題回報
00:00
31. Expression Tree、Prefix、Postfix
#DS-05-031
易
Expression Tree
Prefix
Postfix
📝
☆
According to the infix regular expression (A+B)
D+E/(F+A
D), which one(s) of the statements is correct?
A
(A) Its prefix form is +
+ABD/+EF
AD.
B
(B) Its postfix form is AB+D
EFAD
+/+.
C
(C) Let the operators be '+', '-', '*', '/', '(', and ')'. If the token number of an infix expression is n in the worst case, its tree height is
O
(
log
(
n
)
)
O(\log(n))
O
(
lo
g
(
n
))
.
D
(D) Same as Part (C), the length of its prefix form is
O
(
n
)
O(n)
O
(
n
)
.
E
(E) Similarly, the length of its postfix form is
O
(
n
log
(
n
)
)
O(n\log(n))
O
(
n
lo
g
(
n
))
.
📝 寫筆記
📄 交大111
重做
跳轉到第
題
← 上一題
下一題 →
答案/解析
▤
完整推導請見《WH 資工筆記 · 資料結構》Ch5 樹狀結構
‹
本章題號 · 21–40 / 48
›
全部 48
易 34
中 14
難 0
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40