Answer the question
In order to leave comments, you need to log in
How to learn algorithms?
I started learning programming (C#) as a hobby, before that I had absolutely nothing to do with it. It seems that everything turns out, I master the functions built into the language, etc.
The problem is that I don't understand the algorithms at all. I tried to read Kunt and Kormen, but in horror I closed both the first and the second, realizing that I still need to grow to this level. How easy is it to learn algorithms when you don’t understand anything at all?
Answer the question
In order to leave comments, you need to log in
Try to start by implementing different sorting algorithms: bubble sort, insertion sort, merge sort, quick sort, etc. In general, this is the part of the algorithms that are most popularly used. You can also try to implement various numerical methods - Newton, chords, etc.
As @WolfdalE already wrote - learn simple algorithms first. Moreover, before reading information about sorting algorithms, for example, first think about how you would implement sorting yourself. Having come up with several sorting methods of your own, analyze which of them will work faster and / or with less memory in which case. After that - read about ready-made algorithms and compare them with the ones you invented.
"From simple to complex" and other cramming for the future does not work without a real task. We need to find one and start solving it.
And as soon as you run into a problem, the guide will read like a detective - you can't drag it by the ears :)
If not for C#, I would recommend the brilliant book "Algorithms in Java" by the legendary Robert Sedgwick. And I can't help you.)
You just need to practice a little with simple examples. If you want, I can send some problems from the university =) You can also try to solve problems from sites like acmp.ru/. There are fairly simple tasks.
It is desirable to know mathematics well and have algorithmic thinking. Strange that Cormen didn't visit you. I don’t know what kind of work you looked at, but he has a book “Algorithms. An introductory course ”, and it has many illustrations with illustrative examples - it is designed specifically for beginners.
If studying on your own is very difficult, choose courses kursfinder.ru/algorithms/ and devote several months to learning. The teachers will explain everything to you step by step. When choosing, I advise you to look at the opportunity to communicate with a teacher, because not all online schools provide such an opportunity, somewhere you will simply take online classes and do your homework, and they will also ask you to pay extra money for communication with an expert. Pay attention to this :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question