直观执行不同的排序算法 [英] Different sort algorithms visually performed
问题描述
是否有几种不同排序算法的不错的可视化效果?我正在寻找可以在演示中使用的东西,并且愿意写自己的东西(不难),但如果可以的话,我更愿意使用别人的东西.
Any decent visualization of a couple different sort algorithms? I'm looking for something I can use in a demo, and willing to write my own (can't be that hard) but would prefer to use someone else's if I can.
虽然没有小程序,但我发现的大多数是小程序...轻巧的闪光灯或画布.我想要以下几种:
NO applets though, the majority I'm finding are applets... Lightweight flash or canvas. I would like the following sorts:
- 气泡
- 选择
- 插入
- O/E
很好,但不是必需的:
- 合并
- 快速
- 堆
- Raidix
考虑到缺少可用的资源,我写了自己的书回答这个问题.
Considering the lack of available ones, I wrote my own to answer this question.
推荐答案
I didn't like any of the ones available, so I wrote my own with a not-so-brief explanation to go along with it.
实现排序:
- 气泡
- 选择
- 插入
- 组合(具有两个备用结尾)
- 壳牌
- 快速
- 堆
- O/E
- 基数
选项
- 随机
- 部分排序
- 逆转
- 很少值
数据集:
- 大(〜250个元素)
- 小巧(约50个元素,适用于速度较慢的浏览器,并且在iPhone或iPod touch等移动设备上非常出色)
我已尝试确保时差尽可能准确,如果您有任何改进建议,请告诉我.
I've tried to make sure the time differences are as accurate as possible, please let me know if you have any suggestions for improvement.
这篇关于直观执行不同的排序算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!