MAD101_-_SP_2025_-_RE_3685.webp
TuanKiet1

MAD101_-_SP_2025_-_RE_3685.webp

☑Kizspy.me
(Choose 1 answer)
(See picture)
☐ A
A. {3. 4. 5.9.6}
☐ C
B. {3.5, 4, 6, 9}
C. {3. 4. 5. 6.9}
Back
Next
D. None of the other choices
is correct
Apply the insertion sort to the sequence {5, 3, 4, 9, 6}. What is the result obtained after
the iteration when j = 3?
procedure insertion sort(a1, a2, ..., an: real numbers with n ≥ 2)
for j = 2 to n
begin
i = 1
FUO.Sh
sh the exam.
while
aj
> ai
i=i+1
m = aj
for k=0 toj-i-1
aj-kaj-k-1
a¡ := m
end {a1, a2,
,..., an are sorted}

Thông tin

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

Share this media

Back
Bên trên Bottom