3 ms·
It's beneficial to learn algorithms and data structures although you may or may not need them in your projects. Choosing the right data structures and algorithm
by svisser 13y ago
It's beneficial to learn algorithms and data structures although you may or may not need them in your projects. Choosing the right data structures and algorithms help with writing clean code that's also more maintainable than a messy algorithm.
I think this knowledge even makes you more creative in coming up with algorithms. There's usually a brute force algorithm that's easy to come up with but it's not very good. By knowing more algorithmic techniques you can come up with better algorithms. Your algorithm x might do the job but in case it doesn't you're possibly lacking the techniques to make it better. By studying many different types of algorithms you get a better feel on how to approach a problem.
- user_235711 13y agoExcellent point. I had not thought of it like that. The way you put it makes it seem akin to learning new mathematical techniques, which is almost always beneficial in that it facilitates more possibilities when approaching a problem.