+ 4
Please who has any suggestions on how to improve one’s knowledge of data structures and algorithms?
8 Réponses
+ 7
The best way to improve your data structures knowledge is learn different programming languages,because different languages use different data structure.remember never learn two programming languages at same time.
For algorithms there is only one way to become expert in it just practice.
+ 4
There are some excellent websites (called online judges) that have a bunch of exercises that you can solve. You can even check your solutions if they are correct. One of these is called SPOJ.
+ 3
I have a solution for this
Must "dry run" your code
What is dry run?
Write your code on copy and take lead pencil make a memory of variable that you declared and check line by line your code and write those things in front of line what this line can actually
Train your brain to become a compiler see code as a compiler
Also search how compiler or interpreter can work
+ 2
Start off by gaining a general overview of the different algorithm types and data structures that you need to learn. e.g. using algorithms as an example, just be aware of the different algorithms and make a clear representation of them in something like a table. eg.
greddy, backtracking, dynamic, divide and conquer, branch and bound, recursion, iteration, brute force.
try understand their strengths and weaknesses and the types of problem they best solve, and reflect it in the table.
After the overview period, zoom in and master one class of algorithm at a time, starting with brute force, the progress to iteration and recursion, followed by the rest. when dealing with recursion, a good algorithm to start with is fibonacci.
it is also important to bear in mind that the most basic application of algorithms is to search and sort information.
+ 1
for the theory got solo learn and geeks4geeks
+ 1
The easiest way to understand algorithms is to actually try and SOLVE them. If your a beginner there are numerous exercises available to get a basic view. Practise some problems, and continue dong so even when your wrong
- 2
Fall in love with programming.