Q29.webp
Ojiro85

Q29.webp

  • Media owner Ojiro85
  • Ngày thêm
Question: 29
(Choose 1 answer)
Given the recursive algorithm that computes the n-th Fibonacci number
Procedure F(n: natural number)
If n = 0 then F(n): = 0
else
If n 1 then F(n): = 1
else F(n): F(n-1) + F(n-2);
How many additions are used if n = 6?
A. 8
B. 7
C. 9
D. 12
E. None of the other choices is correct

Thông tin

Category
MAD101
Thêm bởi
Ojiro85
Ngày thêm
Lượt xem
1,605
Lượt bình luận
4
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom