0

For an array of size 5000 what is the best method to sort?

Selection, Insertion, Bubble, Merge or Quick sort?? Which one is the fastest?

7th Aug 2016, 9:04 AM
Ahmed Shafeeu
Ahmed Shafeeu - avatar
3 Respuestas
+ 1
both merge and quick sort have same time complexity it will depend on your data
7th Aug 2016, 10:18 PM
Sachet Saxena
Sachet Saxena - avatar
0
okay thanks
7th Aug 2016, 4:46 PM
Ahmed Shafeeu
Ahmed Shafeeu - avatar
- 1
as the name suggests the quick sort is always faster then other
7th Aug 2016, 3:40 PM
Harish Nandoliya
Harish Nandoliya - avatar