View the step-by-step solution to:

# Suppose an array A = ( 9,4,12,2,6,8,18). Which of the following lists of numbers would accurately show the array after the third pass through the

Suppose an array A = ( 9,4,12,2,6,8,18).

Which of the following lists of numbers would accurately show the array after the third pass through the Insertion Sort algorithm?

a) 4,9,12,2,6,8,18

b)2,4,9,12,6,8,18

c)2,4,6,9,12,8,18

d)2,4,9,6,12,8,18

e) 2,4,6,8,9,12,18

Isn't the answer be b) . It says that it is c on the exam.

Here option c is correct. Because insertion sort is an in place algo. Here in one pass we pick first smallest element that... View the full answer

1 comment
• thank you !
• ranasayegh
• Jun 09, 2018 at 2:19pm

Here is the solution... View the full answer

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

### -

Educational Resources
• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents