What is the weight of algorithms in programming.?? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

What is the weight of algorithms in programming.??

is it help for build the logic ??

27th Apr 2017, 5:52 PM
MrBM
MrBM - avatar
3 Réponses
+ 8
algorithms are like road maps for accomplishing a given task.. with programming we are solving problems and programmers uses algorithms to solve problems they face.
27th Apr 2017, 6:11 PM
Mohammad Dakdouk
Mohammad Dakdouk - avatar
+ 2
You need to be familiar with basic algorithms and data structures in order to efficiently solve problems. People have spent quite some time thinking about several classes of problems, so it is unlikely you will come up with an equally good or better solution everytime you try to solve one of these. Say the naive way to solve a problem, sorting for example, takes O(n^2) steps and the best possible one just O(n log(n)). Even if a list you want to sort contains only 10.000 elements the latter approach is faster by a factor of 2.500. With bigger inputs, that number will only increase.
27th Apr 2017, 6:14 PM
Tob
Tob - avatar
0
yup. that's true @Tobi @mohammad thanks.. but now days we are more focusing on programming rather than algorithms, is it somewhere decrease the quality of Logics or the progam..??
27th Apr 2017, 6:20 PM
MrBM
MrBM - avatar