Which of the following are possible lists after 3 passes of a sorting function based on insertion sort? Select all that apply. O 1, 3, 2, 7, 4, 5, 8, 6] O 12, 3, 5, 7, 4, 1, 8, 6] O (4, 2, 5, 1, 6, 3, 7, 8] O (2, 5, 3, 7, 4, 1, 6, 8] O 1, 3, 5, 7, 2, 4, 6, 8] O (2, 3, 1, 5, 7, 4, 8, 6]

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter8: Advanced Data Handling Concepts
Section: Chapter Questions
Problem 10RQ
icon
Related questions
Question

11

Which of the following are possible lists after 3 passes of a sorting function based on insertion sort? Select all that apply.
O 1, 3, 2, 7, 4, 5, 8, 6]
O 12, 3, 5, 7, 4, 1, 8, 6]
O 14, 2, 5, 1, 6, 3, 7, 8]
O [2, 5, 3, 7, 4, 1, 6, 8]
O (1, 3, 5, 7, 2, 4, 6, 8]
O 12, 3, 1, 5, 7, 4, 8, 6]
Transcribed Image Text:Which of the following are possible lists after 3 passes of a sorting function based on insertion sort? Select all that apply. O 1, 3, 2, 7, 4, 5, 8, 6] O 12, 3, 5, 7, 4, 1, 8, 6] O 14, 2, 5, 1, 6, 3, 7, 8] O [2, 5, 3, 7, 4, 1, 6, 8] O (1, 3, 5, 7, 2, 4, 6, 8] O 12, 3, 1, 5, 7, 4, 8, 6]
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Mergesort
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage