(Choose 1 answer)
(See picture)
A. 5
B. 20
C. 11
D. None of the other choices is correct
E. 10
Given the following algorithm
procedure LS (x, a1,i:=1while (i < n and x > a;)i:=i+1an: integer)
How many comparisons used in the algorithm with input x = 10 and the sequence 1, 3, 5, 7, 9?
Q: 1