It's not a secret anymore!
The moose likes Beginning Java and the fly likes sorting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "sorting" Watch "sorting" New topic


Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Does anyone have any good advice for the beginner on learning sorting techniques?
I've learned Bubble Sort easily and would like to learn more advanced techniques - from the beginner's perspective.
I appreciate your two cents.
Thank You.
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
well, this is a good sire for all kind of algorithems. hope it helps.
Algorithm site
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Looking at various algorithms is always a good thing, but you should also be aware that the Collections Framework in the Java language "does away with" the need to implement sorting.
As long as your data is contained in a Collections object, you can call java.util.Collections.sort(myData) and (ta da!) it gets sorted...
I agree. Here's the link:
subject: sorting
It's not a secret anymore!