Which one of the following in place sorting algorithms needs the minimum number of swaps ?

Rohith

Which one of the following in place sorting algorithms needs the minimum number of swaps ?



A) Quick Sort.
B) Insertion sort.
C) Heap Sort.
D) Selection sort.

Answer & Solution Answer: Option D
Solution:
Selection sort.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
Site is Blocked
Sorry! This site is not available in your country.