r/computerscience • u/Plastic_Yak_6726 • 18h ago
Discussion How Should I Develop Strong Algorithmic Thinking and Problem-Solving Skills? Body: I want to understand algorithms beyond simply memorizing standard solutions.
I want to understand algorithms beyond simply memorizing standard solutions.
What would be the ideal progression for developing strong algorithmic thinking?
I'd like to cover:
\- Time and space complexity.
\- Big-O, Big-Theta and Big-Omega notation.
\- Recursion and recurrence relations.
\- Divide and conquer.
\- Greedy algorithms.
\- Dynamic programming.
\- Graph algorithms.
\- Searching and sorting.
\- Backtracking and branch-and-bound.
\- Randomized algorithms.
\- Approximation algorithms.
\- Parallel and distributed algorithms.
How important are algorithm correctness, mathematical proofs, complexity analysis and optimization?
Which algorithms should I understand deeply for computer science, machine learning and AI research?
What resources would help develop the ability to derive algorithms independently rather than simply implement existing solutions?
2
u/[deleted] 18h ago
Get TAOCP, CLRS, GKP, AHU, Sedgewick or others. Then: Read. Implement. Test. Repeat.
The ability comes from training. Implementing the usual algorithms is irreplaceable experience.
When you are more comfortable with that kind of thinking, you may be able to tackle exercices from these books, or your own problems. For this: shut down your computer, take a piece of paper and a pencil, and work it out. Start with small cases, look for patterns...
1
u/Ghosttwo 7h ago
Teach what you know to others; it reveals the parts you don't. Learned more C++ nuance answering questions on stack exchange than I ever did at uni. Similar spaces elsewhere might help.
1
u/RnDog 1h ago
The answers will differ greatly according to your ultimate goal. For example, implementation is always important, but it’s less important if your goal is pure theory algorithms research as there are other things that take its place in the priority hierarchy the better you get.
1
u/spidermask 27m ago
That's a very solid list, I'd definitely add Dynamic Programming as well.
In the mathematics part, proof by induction will help with understanding recursion and recurrence relations I think. You should also learn proof by contradiction.
Complexity analysis ties naturally into optimization and it's very important, and a good foundation of data structure knowledge is important too.
Then yeah once you understand recursion, depth first search and breadth first search you already have the basic tools to progress through everything. Recursion is probably the most challenging thing to get good at identifying. But as anything in this field, practice makes perfect.
Since you're into AI then you could also add Nature Inspired algorithms - particularly ant colony and particle swarm. I personally really enjoy genetic algorithms too.
I believe the field of Heuristics is probably something you'll enjoy.