Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

sorting and such like  RSS feed

 
Gavin Walsh
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I was wondering if anyone knew some good java documentation that could tell me about the different types of sorts (bubble, insertion etc.) and loops...I know there is some on Java.sun.com but im VERY new to this so im not to sure where to go on the sun website...can anyone offer some help.

Many Thanks,
Gavin
 
Sri Ram
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey check this Site

I think u will get good info about Sorting.
 
Adam Richards
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm unsure whether your're asking about sort algorithms in general (in which case it's not a Java question), or whether you're asking how to sort things in Java. If the latter, check out Collections.sort().
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No such discussion is complete without mention of Bogosort algorithm. Highly recommended, especially for large data sets.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried using Google? Sorting is a well-understood topic in Computer Science and there are many sites on the Web that describe how different sorting algorithms work. In fact, many of these sites have animations that illustrates the algorithm in action. For example, take a look at this applet. It doesn't contain any textual descriptions of the algorithms, but it illustrates very clearly what happens during the various sort algorithms that it has implemented.

I hope this helps.

Layne
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!