Show HN: Write a sort, watch it go
visualsort.appspot.com
Show HN: Write a sort, watch it go
1–10 of 89 posts
Re: Show HN: Write a sort, watch it go
#2Re: Show HN: Write a sort, watch it go
#3Re: Show HN: Write a sort, watch it go
#4Re: Show HN: Write a sort, watch it go
#5Re: Show HN: Write a sort, watch it go
#6I don't like the insertion sort. Couldn't it do a binary search on the sorted part of the list, when it's looking for the place to put the next element?
Re: Show HN: Write a sort, watch it go
#7I don't like the insertion sort. Couldn't it do a binary search on the sorted part of the list, when it's looking for the place to put the next element?
I coded up the easiest version of each algorithm, rather than the most efficient. (Quicksort uses the first element as a pivot, rather than something more intelligent) Feel free to email me an algorithm if you think it should be there/is better than what I wrote. The pre-written algorithms weren't exactly my focus.
Re: Show HN: Write a sort, watch it go
#8This is fantastic for teaching sorting algorithms visually. I'm going to see if I can forward this to my former professors and teachers.
Re: Show HN: Write a sort, watch it go
#9It's fantastic. I don't know CoffeeScript so all I did was compare the pre-written ones to each other and see if they did what I expected them to do, but it's a nice visual representation. The only problem I have with it is that the neon yellow on black with a gray/white background can be pain inducing, especially when moving quickly.