For the array [ 99 3 57 93 8 9 7 71 1 ], what is the array arrangement after the first step in the insertion sort?
a. [ 1 3 57 93 8 9 7 71 99 ]
b. [ 99 3 57 93 8 9 7 71 1 ]
c. [ 3 99 57 93 8 9 7 71 1 ]
d. [ 57 3 99 93 8 9 7 71 1 ]
a. [ 1 3 57 93 8 9 7 71 99 ]
The smallest element in the array, 1, is moved to the front and swapped.
Computer Science & Information Technology
You might also like to view...
In a letter, the salutation includes the recipient's name and street address
Indicate whether the statement is true or false
Computer Science & Information Technology
When a process begins execution, its segments have a ____ size.
A. large B. variable C. small D. fixed
Computer Science & Information Technology