MAD101_-_SP_2024_-_RE_1756.webp
K

MAD101_-_SP_2024_-_RE_1756.webp

  • Media owner Kasumi86
  • Ngày thêm
(Choose 1 answer)
(See picture)
A. Only (i)
B. None of them
C. Only (ii)
D. Both of them
Which of the following algorithms are recursive?
(i) procedure A(b, n: integers with n ≥ 0)if n = 0 then A(b, n):= 1;else if n mod 2 = 0 then A(b, n) = A(b, n div 2)2 else A(b, n) = b* A(b, n div 2)2
(ii) procedure A(b, n: integers with n ≥ 0)if n = 0 then y: = 1;elsebeginy: = 1;for i:=1 to n
y: = y*b;
end


Q: 46

Thông tin

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

Image metadata

Filename
MAD101_-_SP_2024_-_RE_1756.webp
File size
203 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom