wiz-icon
MyQuestionIcon
MyQuestionIcon
2
You visited us 2 times! Enjoying our articles? Unlock Full Access!
Question

Which sorting algorithm fastest?

A
Selection sort
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
Bubble sort
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Quick sort
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Heap Sort
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A Selection sort

Selection sorting algorithm fastest.

The selection sort is a combination of searching and sorting. During each pass, the unsorted element with the smallest (or largest) value is moved to its proper position in the array. The number of times the sort passes through the array is one less than the number of items in the array.



923434_918603_ans_e62385d18cfb4f6b89a061e79770a890.PNG

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Organising Data
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon