+ 2

How to choose algorithm ?

Sometimes there's different algorithms that gives the same result. How do you choose witch one to use ? Ex: sorting algorithms (Tim sort, bubble sort...) swapping variables( a,b = b,a or a = a+b b= a-b a= a-b) ...

14th Mar 2018, 12:20 PM
Amine Trabelsi
Amine Trabelsi - avatar
1 Réponse
+ 1
You need to use the most adapted algorithm for your problem : the one which require the less steps or the fastest one
14th Mar 2018, 12:28 PM
Hylectrif
Hylectrif - avatar