Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following sorting algorithms is based on the concept of repeatedly finding the minimum element ?

  • A.Quick Sort
  • B.Selection Sort
  • C.Bubble Sort
  • D.Merge Sort

Answer: B

The algorithm is Selection Sort.

Selection sort repeatedly finds the minimum element of the unsorted part and swaps it into the next position of the sorted part, so after k passes the first k elements are in final order.

Quick sort partitions around a pivot, bubble sort swaps adjacent out-of-order pairs, and merge sort divides and merges, so none of them works by repeatedly selecting the minimum.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.