4
DO NOT COPY FROM OTHER WEBSITES
Correct and detailed answer will be Upvoted else downvoted. Thank you!
Extracted text: 4. How does the array arr = [8, 5, 3, 6, 10] look like after the second iteration (when j = 3) of the j loop on line 1 of the give pseudocode %3D below? insertion_sort.PNG 1 for j 2 do 3 |/ Insert A[j] into the sorted // sequence A[1.j - 1] -1 5 while i> 0 and A[i] > key do 7. ii-1 8 A[i + 1] key [3, 5, 8, 6, 10] [3, 5, 5, 6, 10] [8, 5, 3, 6, 10] [5, 8, 3, 6, 10]