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?