阿摩線上測驗 登入

試題詳解

試卷:112年 - 112 學士後醫學系招生考試試題:計算機概論與程式設計#137106 | 科目:【阿摩】未分類題庫

試卷資訊

試卷名稱:112年 - 112 學士後醫學系招生考試試題:計算機概論與程式設計#137106

年份:112年

科目:【阿摩】未分類題庫

18. Ackermann's function is an example of a recursive function which is not primitive recursive. It is interesting from the point of view of benchmarking because it "grows faster than any primitive recursive function." Ackermann's function is defined as follows: A(0,n)=n+1
A(m,0)=A(m-1,1)
A(m,n)=A(m-1,A(m,n-1))
What is the A(1,3) return value of the following program?

(A) 2
(B) 3
(C) 4
(D) 5
(E) 6

正確答案:登入後查看