Rainbow Sort Visualisations
21–30 of 53 posts
Re: Rainbow Sort Visualisations
#22"what's this 20 do?" "I'll set it to 1 and see what happens" "oh" "." "." "." "no"
Re: Rainbow Sort Visualisations
#23Cool, bubble sort at (1) froze my tab.
Re: Rainbow Sort Visualisations
#24I almost got a seizure x(
Re: Rainbow Sort Visualisations
#25Earlier quoted context omitted.
Try turning down the block size (the value that defaults to 20), that will make it far slower - try 5. I know that isn't too obvious, but this was something of a quick hack :)
Yeah, the problem is it just sort of "happens" without me being able to understand what's going on behind the scenes. For instance, all of a sudden half the screen is slightly more sorted, but I have no clue what went into getting it that way, even though it took more time to do so.
Re: Rainbow Sort Visualisations
#26Earlier quoted context omitted.
Try turning down the block size (the value that defaults to 20), that will make it far slower - try 5. I know that isn't too obvious, but this was something of a quick hack :)
I looked through the code, I see why quicksort is such a blur now, and I don't see an obvious way to fix it. Since you are in a sense, benchmarking these algorithms. One way to do it might be to allow the user to set the timeout in your defer function. Setting the timeout to 1 second lets the user observe each run of your algorithms. You can see the partitioning behaviour a bit better like that. Side note: this code…
Thanks for your kind comment on the code qual :) personally I only see the faults, for one I am sure I could improve perf... year-old code is often that way however! :)
Re: Rainbow Sort Visualisations
#27Re: Rainbow Sort Visualisations
#28Really nice. The examples suggest to me that a lot of algorithms would be more accessible to people if they could be visually represented in some way. The timing is important -- the slowness of the bubble sort compared to the quickness of the quick sort gives one an immediate sense of why one would generally want the latter over the former.
Re: Rainbow Sort Visualisations
#29Re: Rainbow Sort Visualisations
#30Really nice. The examples suggest to me that a lot of algorithms would be more accessible to people if they could be visually represented in some way. The timing is important -- the slowness of the bubble sort compared to the quickness of the quick sort gives one an immediate sense of why one would generally want the latter over the former.
[1] http://wollw.github.io/Cellular-Polymaton