MAD101_-_Test2_-_SU_2024_2075.webp
minhkhai99

MAD101_-_Test2_-_SU_2024_2075.webp

Question: 69 (Choose 1 answer)
Which of the following algorithms are recursive?
(i) procedure A(n: nonnegative even integer)if n = 0 then A(n):= 1;else A(n):=A(n-2)*3
(ii) procedure A(n: nonnegative even integer)if n = 0 then y:= 1;elsebeginy: = 1; m = n div 2;for i:=1 to m y: = y*3;end
A. Only (i)
B. Both of them
C. Only (ii)
D. None of them

Thông tin

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

Share this media

Back
Bên trên Bottom