MAD101_-_Test2_-_SU_2024_2075.webp
minhkhai99

MAD101_-_Test2_-_SU_2024_2075.webp

Question: 20
(Choose 1 answer)
(See picture)
A. 3
B. 4
C. 5
D. 6
E. None of the other choices is correct
procedure bubble sort (a1, a2, ,an integers)fori-1 ton-1 for j = 1 ton-i if aj > aj+1 then swap(aj,aj+1)
In the bubble sort algorithm
if the input is the list
{4,2,3,1}
how many swaps are used?

Thông tin

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

Share this media

Back
Bên trên Bottom