一定有很多錯
請大家用力指正m(_ _)m
1.A
2.B
3.C
4.C
5.BC
6.CDE
7.ACDE
8.BD
9.AD
10.AC
11.log(n^2),(logn)^2,n/logn,√((n^2+1)/n)=√n,n+logn=n,n^2,n^(logn),(logn)^n
12.(a)(4/5)/2=0.4 懶得畫圖...
(b)4/(2/5)=10
13.(a)
10
/ \
7 20
/ / \
5 15 35
/ \
2 40
/ \
37 50
(b)decrease searching time
(c)
O
/ \
O O
/ \ / \
O O O O
/ \ \ \
O O O O
/
O
(d)
B
/ \
B B
/ \ / \
R B B B
/ \
B B
/
R
14.(a)1,2,4,5,6,7,3,8,9
(b)1,2,5,3,9,8,4,6,7 已更正!