Various sorting algorithms are visually executed.

Any decent visualization of a pair of different sorting algorithms? I am looking for something that I can use in a demonstration, and I want to write my own (it can not be so difficult), but would prefer to use someone else if I can.

There are NO applets, but most of them are applets ... Easy flash or canvas. I need the following types:

  • Bubble
  • The choice
  • Insert
  • O / E

Nice, but not necessary:

  • Combine
  • Quick
  • A bunch
  • Raidix

Given the lack of available, I wrote my own to answer this question.

+7
javascript sorting algorithm visualization
source share
7 answers

I did not like any of the available ones, so I wrote my own with a not-so-short explanation to go along with this.

Sorting:

  • Bubble
  • The choice
  • Insert
  • Comb (with two alternative endings)
  • Shell
  • Quick
  • Heap
  • O / E
  • Radix

Functions

  • Random
  • Partially sorted
  • Inverted
  • Multiple values

Datasets:

  • Large (~ 250 items)
  • Small (~ 50 elements, works well for slower browsers and is great for mobile devices such as iPhone or iPod touch).

I tried to make sure the time differences are as accurate as possible, let me know if you have any suggestions for improvement.

+12
source share

The visualizations here are pretty good, they seem like just gifs

http://www.sorting-algorithms.com/

+11
source share

This is a great video. More than just visualization:

http://www.youtube.com/watch?v=t8g-iYGHpEA

+6
source share

Sorting sorting - classic work on the subject; if you're a Google phrase, one of the first hits will be full-length video. The quality looks a bit fuzzy as the computer video looks like it was made from a video copy of a 16mm print, not a master (I have no idea if the master still exists), but this is probably a good introduction anyway . I am glad to see it available.

+1
source share

Classic visualization is a movie sorting sorting .

0
source share

I just wrote what you were looking for (I think), and was directed to this question. You can find it at: http://visualsort.appspot.com/ . It allows you to write code (in CoffeeScript), and then shows what is happening. There are several built-in roles, and I would like to add more if people send me the code or make specific requests.

0
source share

All Articles