Q20_81_20250805105402.webp
G

Q20_81_20250805105402.webp

  • Media owner Grey93
  • Ngày thêm
☑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.

Thông tin

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

Share this media

Back
Bên trên Bottom