CSD201_-_FA_2024_-_FE_-_C1_2980.webp
T

CSD201_-_FA_2024_-_FE_-_C1_2980.webp

  • Media owner Thu Hà1
  • Ngày thêm
(Choose 1 answer)
The following is the main part of bubble sort pseudocode:do
swapped := false for i := 0 to n-2 if a[i] > a[i+1] then swap(a[i],a[i+1])swapped := true end if end for while swapped Consider the list of ten integers below:
15, 13, 18, 19, 11, 17, 10, 12, 16, 14
What is the list after the FIRST iteration (for i = 0 to n-2) in a bubble sort?(sorting from smallest to largest).
A. 13, 15, 18, 11, 17, 10, 12, 16, 14, 19
B. 13, 15, 18, 17, 11, 10, 12, 16, 14, 19
C. 13, 15, 18, 11, 17, 10, 12, 14, 16, 19
D. 13, 15, 18, 10, 11, 17, 12, 16, 14, 19

40

Thông tin

Category
CSD201
Thêm bởi
Thu Hà1
Ngày thêm
Lượt xem
6,862
Lượt bình luận
22
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_FA_2024_-_FE_-_C1_2980.webp
File size
221.5 KB
Dimensions
1920px x 1012px

Share this media

Back
Bên trên Bottom