*
The moose likes Java in General and the fly likes algorithm book with java  examples Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "algorithm book with java  examples" Watch "algorithm book with java  examples" New topic
Author

algorithm book with java examples

james edwin
Ranch Hand

Joined: Nov 22, 2001
Posts: 393
Hi,
Can any one suggest some good book with algorithm like search and data structure with java examples.
For datastructure i already lknow one good site http://theparticle.com..
For i am looking for some thing on algorithms...with java examples.
Thanks


Regards,
James
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
There was an excellent discussion about algorithms in JCHQ.net, I could not find now.
IMHO, algorithm book is better written language neutral, or in other words, in psuedo code. All good algorithm books are written that way. You will definitely learn better too.
I know, it is not going to be a popular opinion here.
Roseanne
Val Pecaoco
Ranch Hand

Joined: Dec 05, 2001
Posts: 156
Hi James,
I'm in search for a good one too. What initially caught my fancy was the Wiley book, but the first edition got poor reviews from Amazon. I don't know how improved is the second edition, which was just released. The Waite Group's got the highest rating instead. If you have any luck, please let me know.
BTW, thanks for the link
Ex Animo Java!
-- Val
[ February 13, 2002: Message edited by: Val Pecaoco ]

"Knowledge is power, but enthusiasm is the key." -- Lavern Barn
Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
I think think the Waites Group's is best.Furthermore, i think one should go for learning Algorithms in general rather than language specific.
Bye.
Viki.
SCJP2
[ February 14, 2002: Message edited by: Vikrama Sanjeeva ]

Count the flowers of your garden, NOT the leafs which falls away!
Prepare IBM Exam 340 by joining http://groups.yahoo.com/group/IBM340Exam/
Sean MacLean
author
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
I think any decent book will provide plenty of 'generic' material on algorithms. When you go to implement these algorithms, however, it's helpful to see them in a language you are going to be working in. Why study code in pascal when you're going to be implementing it in Java (yes, the mental exercise of translating them doesn't hurt, but...)? As well, there are nuances that are language specific (such as link lists with or without pointers). You might as well see how an experienced author has dealt with these issues in the language you interested in. I think the argument that language doesn't matter is valid in a pure sense but I don't it adds any value. We must keep in mind the a student learning algoithms for the first time may not have the tools to say "Hey algorithms are algorithms - any book will do".
Sean
Junaid Bhatra
Ranch Hand

Joined: Jun 27, 2000
Posts: 213
From a language-neutral perspective, you cannot get a better book than Cormen.
For data structures & algorithms in java, I would recommend the following 2 books:

Data Structures & Algorithm Analysis in Java by Mark Allen Weiss
Data Structures in Java by Thomas Standish
If you are a newbie to data structures, I would recommend Standish. Weiss is more of a graduate-level book, although his code is very elegant/concise, something we rarely see in programming books.
I would avoid the Waite book. I had a quick glance at it at a local book-store, and found it to be horrible, with poorly-written code, and many obvious mistakes.
[ February 19, 2002: Message edited by: Junaid Bhatra ]
 
Don't get me started about those stupid light bulbs.
 
subject: algorithm book with java examples