r/learnprogramming • u/Aanchal12345 • 20m ago
How to get better at recalling algorithms you’ve learned but have forgotten to implement? Asking this as a beginner.
So the thing is that I can finish up a tutorial where the instructor teaches you the algorithm of a problem and you learn and even understand it, but when you try to implement it days later you’ve seem to forgotten to actually implement it or how it works or struggle to puzzle up the pieces together despite knowing what pieces to use. I wanna be able to recall it but I don’t think memorising the algorithm would be the correct approach. I don’t just wanna go back to the solution and “understand” the answer again, that’ll just reinforce my problem. Please I’m trying to do things the way that strengthens my problem solving abilities as I don’t wanna fall into the trap of merely “knowing” what the implementation of said algorithm is like. Even if I can’t remember it step by step I at least wanna recall the process by seeing bits and pieces flash in my brain (is that making sense?) I don’t exactly know how learning is approached in the world of programming yet so please let me know your opinions on this stuff if you’ve gotten a decent amount of experience and problem solving capabilities.
•
u/8dot30662386292pow2 13m ago
Are you talking about memorizing code or memorizing algorithms? Because it feels like you are describing memorizing code. Don't memorize code. Memorize algorithms. Then you can just implement them when you need.
•
u/Lum1on 8m ago
For me, what worked, was picking 5 at a time, and did each of them in different languages (that I already knew) daily for a few days. They didnt have to be perfectly implemented, as long as the logic and idea was the same.
•
u/Lumethys 7m ago
Googling
•
u/dkopgerpgdolfg 3m ago
Then you didn't understand it. That's all.
Like in any other field. And as learning well/efficiently/effectively is a very subjective thing, likely you'll need to figure out a way that works for you.
•
u/Zephar_WO 2m ago
A discipline of programming - Edsger Dijsktra, You learn by doing, not by watching someone else do it. This book can help you; it doesn't guarantee anything, but it helped me a lot.