4 ms·
This looks interesting, but I can't get it to do anything. I see a purple gradient square, I see some widgets on the upper right. I see a box of code on the l
by recursive 5y ago
This looks interesting, but I can't get it to do anything. I see a purple gradient square, I see some widgets on the upper right. I see a box of code on the left. None of it seems to visualize a sort or even respond to input. What do I do?
- smusamashah 5y agoClick Start at the bottom of control panel on right.
- SamBam 5y agoIt's a little confusing, but playing around with it I was able to understand it. First of all, there's a Start button at the bottom of the right menu. Hit that and you will see that big color gradient sort itself. However, that massive square is useless for seeing what's going on. So instead change the size to its lowest (8) and the delay to something like 400. Now what you've got is 8 randomly-sorted columns. When you hit Start that algorithm will start sorting them each in parallel. You can just look at a single column and see the colors getting swapped. The darkest color moves to the top very quickly. This is a feature of how this particular algorithm works. What's the point of the big square? Well, for one thing it's an interesting way to compare algorithms. Go back to the settings for a large number, a very low delay, and check off two other sorting algorithms, say Comb Sort and Heap sort. Hit Start and you'll see three very different approaches to sorting the columns.