0

What is the most fastest sorting algorithm? And Why?

wanted to know what is the best in sorting user inputs. thanks for helping

17th Mar 2017, 3:42 PM
Mune Ycong
Mune Ycong - avatar
2 odpowiedzi
+ 17
Quick Sort is generally considered to be the best sorting algorithm. The worst case complexity is O(n^2), on an average it gives us O(nlogn) time complexity. 
17th Mar 2017, 7:31 PM
Elena Puzic
Elena Puzic - avatar
0
any algorithm with t(n)=nlgn as worst case
17th Mar 2017, 3:49 PM
Mohamed Salah
Mohamed Salah - avatar