MAD101_-_SP_2024_-_RE_1756.webp
K

MAD101_-_SP_2024_-_RE_1756.webp

  • Media owner Kasumi86
  • Ngày thêm
(Choose 1 answer)
☐ A
Given the Binary search algorithm (See picture)
procedure Binarysearch (a₁<a<... <a₁ x: integer)
i:=1
If input 2, 4, 5, 7, 8, 9, 10, 13 and x = 6, after the second time of dividing into sublists, the sublist to be considered is
j:=n
A. 5,7,8
B. 2, 4, 5
C. 5,7
D. 7,8,9
while (i<j)
m:=[(i+j)/2]
if x> am then i: = m+1 else j:=m if x = a; then location: = i else location: = 0
Osh
Q: 48

Thông tin

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

Image metadata

Filename
MAD101_-_SP_2024_-_RE_1756.webp
File size
187.3 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom