Q17.webp
M

Q17.webp

  • Media owner Miwa88
  • Ngày thêm
Kizspy | Question: 17
(Choose 1 answer)
(See picture)
A. 3
B. 4
C. 5
D. 6
E. None of the other choices is correct
FJOVERFLOW.COM
In the bubble sort algorithm
procedure bubble sort (a1, a2, ...,an integers)
fori 1 ton-1
forj 1 ton-i
if aj > aj+1 then
swap(aj.aj+1)
if the input is the list
{4, 2, 3, 1}
how many swaps are used?

Thông tin

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

Share this media

Back
Bên trên Bottom