Q18.webp
Ojiro85

Q18.webp

  • Media owner Ojiro85
  • Ngày thêm
Question: 18
(Choose 1 answer)
(See picture)
A. 11
B. 10
C. 12
D. 6
E. None of the other choices is correct
Given the following algorithm
procedure LS (x, a₁, ..., an: integer)
i:=1
while (in and x > a;)
i=i+1
How many comparisons used in the algorithm with input
x=10 and the sequence 1, 3, 5, 7, 9, 11?

Thông tin

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

Share this media

Back
Bên trên Bottom