Followers 0

# Algorithms - Data Structures Book

## 10 posts in this topic

I am looking for a book that explains in detail all the usefull-most used algorithms and data structures.

I would prefer if it had exercises in it along with the solutions.

My mathimatical backround is not bad but I am not an expert either.

So I would like the book explanations to not be so mathematically complex.

Be more like a begginner book with explanations as simple as possible. With some pictures in it too. :P

If instead of a book there is a good site I dont really mind using that instead of the book.

In terms of programming I just finished learning C. I will be testing these algorithms in C

Thanks.

0

##### Share on other sites
I agree with the recommendation for any of Sedgewick's many "Algorithms" books. The level of rigor is enough but not overwhelming.
2

##### Share on other sites

if the thought of reading 1000 page, highly descriptive book cant scare you then Algorithms, 4th Edition by Sedgewick and Wayne is the best bet. The subject of  data struct and algo. is quite academic in nature and one can find lots of content/video lectures etc over the internet for a quick start.

2

##### Share on other sites

Data Structures For Game Programmers by Ron Penton. PM me if you need the CD

0

##### Share on other sites

Coursera is aboout to restart its Algorithms 1 course on the 31st of Jan which will no doubt be followed by the Alogorithms 2 course.  Its free to sign up and has lots of excersises and assignments.  The book recommended for the course is Algorithms 4th Edition which was already recommended by nish_wk.

If you don't want to do the course work you can still follow along with the lectures.

https://www.coursera.org/course/algs4partI

2

##### Share on other sites

The book looks very good. I also like the idea of this online class.

The only problem is that the code is written in Java. I would have prefered if it was on pseudocode.

It's not that I have any problem learning Java. But I was aiming to start learning C++ now that I got C.

So in order to use this book I need to learn Java.

0

##### Share on other sites

Sedgewick has had many incarnations of his "Algorithms" book over the years, and any of them will do just fine. The particular language in which the code pieces are written is almost irrelevant.

My impression is that the C++ versions of the book are a horrible place to learn C++. You can see the code for Algorithms in C++, Parts 1-4 (Fundamental Algorithms, Data Structures, Sorting, Searching) here.  The code is really bad C++:

* It uses obsolete headers like <iostream.h>

* It declares all variables at the beginning of the function, instead of at the point where they are first used.

* It passes collections of things by pointer-to-first and size (in perfect C style) instead of using iterators.

* It uses macros in questionable ways

* It uses uninformative variable names (to the point that the code is almost unreadable without the accompanying chapter).

In short, it looks like he took the C version, replaced printf' with cout' and little else.

Edited by Álvaro
1

## Create an account

Register a new account