Which of the following statements is correct about recursive algorithms?
(A) Recursive algorithms always deal with math formulas.
(B) Recursive algorithms tend to be shorter and easier to understand.
(C) Recursive algorithms are easy to design and debug.
(D) Many recursive algorithms cannot be converted into equivalent iterative ones.
(E) Compilers can easily optimize recursive algorithms.
(A) 遞迴不限於數學式(樹、圖走訪、排序) → F
(B) 遞迴寫法短、貼近問題定義 → T
(C) 遞迴的設計與除錯並不容易(終止條件、深度) → F
(D) 任何遞迴都能改寫成迭代(自備 stack) → F
(E) 遞迴不易最佳化(只有 tail recursion 較容易) → F
(B)