0

Difference between bubble sort and seelection sort? Whichis the best sorting method?? In c language

Sorting types and the best

15th Nov 2019, 2:02 PM
Arjun T Raju
Arjun T Raju - avatar
2 ответов
+ 3
When you have say less data to process, something like 40 to 50 phone records than you can very well go with bubble sort. But when the numbers go to thousands and more than you are likely to use merge sort or quick sort because of their lower order of time complexity.
15th Nov 2019, 2:14 PM
Avinesh
Avinesh - avatar
0
I will give you a simple example. Take google search, you just put some keywords or statements and in a matter of few milliseconds to may be a second or two you get your desired result. Just imagine the sorting going on where there are millions and billions of entries to sort from and to give you what you are looking for.
15th Nov 2019, 2:46 PM
Avinesh
Avinesh - avatar