CSD201_-_1_-_FA_2023_-_FE_1030.webp
H

CSD201_-_1_-_FA_2023_-_FE_1030.webp

(Choose 1 answer)
The following is the main part of insertion sort pseudocode:for i:=1 to n-1
insert a[i] into sorted sublist (a[0],...,a[i-1]}
so that the sortedness is still kept.
end for
Select the most correct solution:
Consider the list of ten integers below:
16, 5, 3, 11, 10, 8, 12, 4, 8, 6
What is the list after the FIRST TWO steps of insertion sort? (sorting from smallest to largest).
A. 3, 5, 16, 11, 10, 8, 12, 4, 8, 6
B. 3, 4, 5, 11, 10, 8, 12, 16, 8, 6
C. 3, 5, 11, 10, 8, 12, 4, 8, 6, 16
D. 3, 4, 16, 11, 10, 8, 12, 5, 8, 6


Exit 33

Thông tin

Category
CSD201
Thêm bởi
happy_smile1
Ngày thêm
Lượt xem
3,732
Lượt bình luận
24
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_1_-_FA_2023_-_FE_1030.webp
File size
56.8 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom