r/computerscience • • 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?

22 Upvotes

11 comments sorted by

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...

0

u/Plastic_Yak_6726 17h ago

Would you recommend following these books in a particular order? And how would you suggest transitioning from implementing textbook algorithms to solving genuinely unfamiliar research-level problems?

1

u/[deleted] 17h ago

To answer your second question: do the exercises.

As to the first: read the first chapter to see what's it's all about, then no specific order as long as you can follow the text. It's better if you start with things that entertain your curiosity. Curiosity is the best incentive to learn.

1

u/Plastic_Yak_6726 17h ago

That makes sense. But how do you develop the ability to tackle problems that don't have solutions or hints available in textbooks? Is there a point where you deliberately stop following established material and start exploring your own ideas?

1

u/[deleted] 17h ago

Yes. But I'd say there isn't a point after which you start doing this. You should do this right from the beginning. But there will be a point after which you will find more quickly what to look at.

2

u/Plastic_Yak_6726 17h ago

That's an interesting perspective. So would you suggest that even beginners occasionally try reading research papers and reproducing small experiments, despite not fully understanding everything initially? How do you decide which papers are worth exploring at an early stage?

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/Plastic_Yak_6726 1h ago

That's a great point. I agree that teaching others forces you to understand concepts more deeply because you have to explain not just what works, but why it works.

I'm curious, what platforms or communities would you recommend for someone learning AI/ML, Deep Learning, LLMs and related fields? Are there spaces similar to Stack Exchange where beginners can answer questions, discuss technical concepts and gradually build deeper expertise?

I'd like to start contributing while learning rather than waiting until I become an expert. Thanks for the advice!

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/Plastic_Yak_6726 1h ago

That's a valid distinction. My interests are mainly around AI/ML research and engineering, particularly Deep Learning, LLMs, NLP, Reinforcement Learning, Computer Vision and Robotics.

I'm interested in both understanding the theoretical foundations and being capable of implementing models, reproducing research papers and eventually contributing to original research.

In your opinion, how should someone balance mathematics, theoretical understanding, programming, algorithms and practical implementation when aiming for research-oriented roles? And how does that balance change when moving from applied research towards theoretical ML research?

I'd appreciate your perspective on this.

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.