+ 3

Different sorting types ?

There are many sorting methods and they give the same result. but does it make a difference (maybe in time).

12th Mar 2018, 12:41 PM
Amine Trabelsi
Amine Trabelsi - avatar
3 Answers
+ 5
Yes they are different. Some are suited for beginners (Bubble sorting). Some others may not be looking great but when there is a large amount of data , it may work fast. All techniques have their own properties. It is upto us which one we choose.
12th Mar 2018, 12:46 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 5
Quite a huge difference in certain cases. http://bigocheatsheet.com
12th Mar 2018, 2:12 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
it is about the time of sorting ...sometimes in some special situations (like questions of code forces)you need a special kind of sort...anyway if you are just sorting an array, use algorithm library's sort keyword
12th Mar 2018, 3:58 PM
Ayin GhaziMoradi