+1 vote
in Data Structures & Algorithms II by (110k points)
Which of the following is not an exchange sort?

(a) Bubble Sort

(b) Quick Sort

(c) Partition-exchange Sort

(d) Insertion Sort

The question was asked in quiz.

Question is from Insertion sort topic in chapter Sorting of Data Structures & Algorithms II

1 Answer

+1 vote
by (614k points)
selected by
Best answer
Right answer is (d) Insertion Sort

Easiest explanation - In Exchange sorts, we compare each element of an array and swap those elements that are not in their proper position. Bubble Sort and Quick Sort are exchange sorts. Quick Sort is also called as Partition-exchange Sort. Insertion sort is not an exchange sort.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.