views:

74

answers:

2

Can someone tell me where can I get some tutorials or books or anything else on Data Structures using java cause I am having hard time understanding them, and I am not looking for the standard library so any help would be greatly appreciated.

Thanks

A: 

Which data structures in specific are you looking at? Like HashMap vs HashSet vs ArrayList? You mention "not the standard library", but not sure what that means in relation to Java.

The source code for Java is generally pretty readable and well documented. Read all the JavaDocs for the stuff you are interested in, and poke around a little in the source code. You will get at least how they are used and the 'Big Oh' time of various operations.

bwawok
Like for example on LinkedList the delete option:
public void Delete(int Item) { if (Head == null) return; if (Head.Item == Item) { Head = Head.Next; } else { node Cur = Head; while (Cur.Next != null) { if (Cur.Next.Item == Item) { Cur.Next = Cur.Next.Next; return; } Cur = Cur.Next; } } };
Okay that is pretty straightforward Linked List code. I learned it in C++, but nothing you can't learn in Java. Look at the link above to cs.williams.edu, it may answer some of your questions.
bwawok
+1  A: 

Check out this free textbook download for teaching Data Structures using Java as an implementation language.

http://www.cs.williams.edu/~bailey/JavaStructures/Book_files/JavaStructures.pdf

bdk
The source code from this book is available at http://www.cs.williams.edu/javastructures/Examples.html
adelarsq