DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Sorting Algorithms Compared  (Read 10,351 times)

KenR

  • Super
  • Blogger
  • Joined in 2006
  • ***
  • Posts: 826
Sorting Algorithms Compared
« on: January 05, 2007, 02:42 AM »
This is a great site. It allows you to directly compare the performance of numerous sort algorithms. You can pick 3 at a time, start them, and watch them sort - they way they sort as well as how long it takes. Code for the sorting algorithms is also presented. HIGHLY recommended!

Quote
This page has visualizations of some comparison based sorting algorithms. The quick sort, bubble sort and cocktail shaker sort are due to the good folks at Sun Microsystems. The original SortItem applet was written by James Gosling.



from www.stumbleupon.com
Kenneth P. Reeder, Ph.D.
Clinical Psychologist
Jacksonville, North Carolina  28546
« Last Edit: January 05, 2007, 02:44 AM by KenR »

CodeTRUCKER

  • Bush Flying... where I'd rather be.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,086
    • Participated in NANY Challenge Once
    • Military Service Badge - US Navy
Re: Sorting Algorithms Compared
« Reply #1 on: January 05, 2007, 05:24 AM »
Very nice find.  I learned something today! :)
DISCLAIMER - I have made and make many threads for questions and even project posts across the Internet. Unfortunately, many are in limbo because I cannot remember where they are at. If anyone knows of an open thread or an unanswered inquiry, please PM me. Thank you.
   
Notice: Unless stated otherwise, I receive no compensation for anything I post here.
« Last Edit: October 19, 2010, 09:10 PM by CodeTRUCKER »

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: Sorting Algorithms Compared
« Reply #2 on: January 05, 2007, 09:32 AM »
Here's another site i used when i was studying algorithms in school:
http://www.cs.ubc.ca/~harrison/Java/sorting-demo.html
Screenshot-07_01_05,09_31_38.png

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: Sorting Algorithms Compared
« Reply #3 on: January 31, 2007, 07:32 PM »
Here's another finding by ruffnekk: Sorting Contest

Ruffnekk

  • Uhm yeah...
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 332
    • Programming School - Stage 1 Medal
    • Programming School - Deluxe Bonus Medal
    • Participated in NANY Challenge Once
    • Linux User
Re: Sorting Algorithms Compared
« Reply #4 on: January 31, 2007, 07:33 PM »
Hmm, I guess I could have posted a reply here instead of making a new topic, sorry :-[
Regards,
RuffNekk

Programming is an art form that fights back.

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: Sorting Algorithms Compared
« Reply #5 on: January 31, 2007, 07:52 PM »
Hmm, I guess I could have posted a reply here instead of making a new topic, sorry :-[
I just posted here so that when people see this post, they'll have even more to look at ;)


On kenr's post, did anybody take a look at all the algorithms?
Some of them are just hilarious!! Here's a gem:
Quote
A PermSort Demonstration algorithm.  The PermSort algorithm is due
to Patrick Morin <http:www.scs.carleton.ca/~morin>. ; The algorithm
works by trying every permutation until it finds one that's
sorted.  That's right, there are n! permutations and it takes O(n)
time to test each one, yielding an O(nn!) algorithm.  No hate mail
please.

Original address: https://www.donationcoder.com/forum/index.php?topic=6882.0