Question
Computer Science Question on Sorting
In which of the following sorting, the smallest element is selected from the unsorted array and swapped with the leftmost element and that element becomes a part of sorted array ?
A
Bubble Sort
B
Selection Sort
C
Quick Sort
D
Merge Sort
Answer
Selection Sort
Explanation
Solution
The correct option is (B) :Selection Sort.