Suppose that sequential search as discussed is used to determine whether 2 is in list. Exactly how many key comparisons are executed by the sequential search algorithm?
A. 3
B. 4
C. 5
D. None of these
Answer:A
Suppose that sequential search as discussed is used to determine whether 2 is in list. Exactly how many key comparisons are executed by the sequential search algorithm?
A. 3 B. 4 C. 5 D. None of these