MAD101_-_SP_2024_-_FE_1568.webp
ThuyHoa2000

MAD101_-_SP_2024_-_FE_1568.webp

(Choose 1 answer)
Given the Binary search algorithm (See picture)
procedure Binarysearch (a₁<a2<...<an, x: integer)
i:=1 j:=n
while (i<j)
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. 10, 13
m:=[(i+j)/2]
if x> am then i: = m+1 else j:=m
13/50-CAP
if x = a; then location: = i else location: = 0
B. 10
C. 9, 10
D. 9, 10, 13
R

Q: 15

Thông tin

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

Image metadata

Filename
MAD101_-_SP_2024_-_FE_1568.webp
File size
186.2 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom