2 ms·
Yes, absolutely. Good algorithms books show you strong patterns for how you can attack problems and program solutions. They will also often introduce you to som
by WorldMaker 11y ago
Yes, absolutely. Good algorithms books show you strong patterns for how you can attack problems and program solutions. They will also often introduce you to some of the best, well-known algorithms that exist: these are known solutions that have been studied and examined. It's amazing how often you may find that knowing a problem has a well-known solution allows you to "skip ahead" to the next, actual problem.
More importantly, data structures are essential to just about everything you do as a programmer. Every program has some amount of data it needs to utilize as input or output and data structures inform everything from where and how you store it to how you work it (how you program against it!).
Here you see the crossover back to algorithms and further the importance of good fundamentals in algorithms: well-known data structures have well-studied algorithms for things such as creation, insertion, deletion, management, sorting, iteration, and more. Better knowing those algorithms helps you better understand the tradeoffs between data structures.
Using the right data structure with the right set of algorithms for that data structure for the given usage cases of your data is a huge part of programming and a big distinction between bad programs, good programs, and amazing programs.