Algorithms are not necessarily tied to a specific language, just to clarify, so any book of algorithms will work perfectly if you understand the concept as a data structure / algorithm.
However, this seems like a good choice: Algorithms in C. I have the C ++ equivalent on my shelf.
There is also a book that seems agnostic of the language (correct me if I am wrong), called Data Structures and Algorithm , although I hear this a little outdated, so you will skip later structures.
Remember that a lot of information is available on the Internet . However, books are usually better for such things. This is due to the fact that Internet resources are usually focused on one thing at a time. For example, you need to understand what Big-O notation is before you can understand what it means when we say that List has O (1) [constant time].
The book will cover these things in the correct order, but the Internet resource will focus either on the notation or on the Big-O data structure, but often it will not be easy to connect them.
When it comes to using it, you will basically establish a connection when it comes to what you will do with the data.
For example, you might need vector (array) if you just need ordered elements, but if you need ordered elements and deletion from any (but can sacrifice random access), then list would be more appropriate due to its constant removal of time.
GManNickG Jul 06 '09 at 8:41 2009-07-06 08:41
source share