☑Kizspy.me
(Choose 1 answer)
☐ A
Given the Binary search algorithm
(See picture)
If input = 2, 4, 5, 7, 8, 9, 10, 13 and x
= 11, after the second time of
dividing into sublists, the sublist to
be considered is_
A. 9. 10
Back
Next
B. 10
C. 9, 10, 13
D. 10, 13
procedure Binarysearch(a₁<ay<... <ax: integer)
i: 1
j:=n
while (i<j)
m:= [(i+)/2]
if xam then i:=m+1
else j:=m
if x = a; then location: = i
else location: 0
FUQ.sh
sh the exam.