What does each iteration of the insertion sort algorithm do?

a. Each iteration takes the next smallest element and inserts it at the beginning of the array.
b. Each iteration takes the next element in the unsorted portion of the array and inserts it into the sorted portion.
c. Sorted subarrays are inserted into the larger array.
d. Each iteration determines the location of a pivot and inserts it into place.

b. Each iteration takes the next element in the unsorted portion of the array and inserts it into the sorted portion.

Computer Science & Information Technology

You might also like to view...

It is not important to backup a database before modifying the structure of an existing database

Indicate whether the statement is true or false

Computer Science & Information Technology

Whichutility displays the processes running on a Windows computer?

a. File Explorer b. Task Manager c. Windows Defender

Computer Science & Information Technology