TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Rainbow Sort Visualisations

170 点作者 lolo_大约 11 年前

16 条评论

allochthon大约 11 年前
Really 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.
评论 #7293099 未加载
评论 #7292500 未加载
评论 #7292133 未加载
bpierre大约 11 年前
Reminds me of this: <a href="https://www.youtube.com/watch?v=kPRA0W1kECg" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=kPRA0W1kECg</a>
评论 #7292222 未加载
GhotiFish大约 11 年前
I&#x27;m seeing waaaay too much stuff happen all at once for quicksort. Frankly, most visualizations give you an inkling as to the logic behind an algorithm, but quicksort just sort of pops the field into the correct order in a blur.<p>Another classic sorting algorithm to visualize is heapsort.
评论 #7291803 未加载
saw-lau大约 11 年前
I love this as a visualisation. It would be great to provide links to the algorithms (if they were there, I didn&#x27;t find them).
评论 #7291582 未加载
mistercow大约 11 年前
This is awesome. One thing I&#x27;d love to see is the ability to slow it down without decreasing the block size.
评论 #7291884 未加载
thedufer大约 11 年前
Interestingly, I just migrated my Sorting Visualizer off of GAE this weekend. Its kind of similar - more customizable, much less attractive: <a href="http://aarondufour.com/" rel="nofollow">http:&#x2F;&#x2F;aarondufour.com&#x2F;</a>
primitivesuave大约 11 年前
This is excellent and a great teaching tool. I tried putting something like this together a while back as a Java applet for one of my classes but couldn&#x27;t get the color ordering function to work correctly. Did you use HSB?
评论 #7293406 未加载
y0ghur7_xxx大约 11 年前
remids me of this: <a href="http://www.sorting-algorithms.com/" rel="nofollow">http:&#x2F;&#x2F;www.sorting-algorithms.com&#x2F;</a><p>not as nice, but shows different algorithms and their speed
greggman大约 11 年前
Nice. Sorry for the self promotion but seemed appropriate<p><a href="http://greggman.github.io/doodles/sort.html" rel="nofollow">http:&#x2F;&#x2F;greggman.github.io&#x2F;doodles&#x2F;sort.html</a><p>click one for a larger version<p>PS: My method of cycle counting may not make any sense.<p>See <a href="https://github.com/greggman/doodles" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;greggman&#x2F;doodles</a> for details
joshu大约 11 年前
The first demo of bubble sort made me think the bottom row was being sorted and then the rows above were just the previously sorted row.<p>I like Aldo&#x27;s visualizations a bit better: <a href="http://corte.si/%2Fposts/code/sortvis-fruitsalad/index.html" rel="nofollow">http:&#x2F;&#x2F;corte.si&#x2F;%2Fposts&#x2F;code&#x2F;sortvis-fruitsalad&#x2F;index.html</a>
mh_yam大约 11 年前
I almost got a seizure x(
评论 #7292392 未加载
TophWells大约 11 年前
Reminded me of <a href="https://www.youtube.com/watch?v=kPRA0W1kECg" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=kPRA0W1kECg</a><p>Only more colourful and interactive.
muffkin大约 11 年前
&quot;what&#x27;s this 20 do?&quot; &quot;I&#x27;ll set it to 1 and see what happens&quot; &quot;oh&quot; &quot;.&quot; &quot;.&quot; &quot;.&quot; &quot;no&quot;
评论 #7292377 未加载
saxaholic大约 11 年前
Very cool! I second all the suggestions of adding more sorting algorithms. I might just try to recreate this myself in Processing.js...
izzydata大约 11 年前
Cool, bubble sort at (1) froze my tab.
评论 #7292380 未加载
pekk大约 11 年前
How many times do we need to re-implement sorting?<p>Why do we educate students to re-implement sorting again?
评论 #7295865 未加载