MAD101_-_Test2_-_SU_2024_2075.webp
minhkhai99

MAD101_-_Test2_-_SU_2024_2075.webp

Question: 97 (Choose 1 answer)
When applying the recursive algorithm for computing gcd(4, 14), how many times is the function gcd called?
procedure gcd(a, b: nonnegtive integers with a < b)if a = 0 then gcd(a, b): = b;else gcd(a,b): = gcd(b mod a, a);
A. 3
B. 2
C. 4
D. None of the other choices is correct

Thông tin

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

Share this media

Back
Bên trên Bottom