直观执行不同的排序算法 [英] Different sort algorithms visually performed

查看:109
本文介绍了直观执行不同的排序算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有几种不同排序算法的不错的可视化效果?我正在寻找可以在演示中使用的东西,并且愿意写自己的东西(不难),但如果可以的话,我更愿意使用别人的东西.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆