测试排序算法的程序

eli*_*uez 1 windows sorting algorithm

任何人都知道有什么程序可以定义输入集合,并且可以逐步可视化排序算法(冒泡、快速、shell 等)

\n\n

因此一些

\n\n
1th iteration result: [3, 5, 7, 1, 8, 9]\n2th iteration result: [3, 5, 1, 7, 8, 9]\n3th iteration result: [3, 1, 5, 7, 8, 9]\n4th iteration result: [1, 3, 5, 7, 8, 9]\n5th iteration result: [1, 3, 5, 7, 8, 9]\n\xc2\xa0\nFinal result: [1, 3, 5, 7, 8, 9]\n
Run Code Online (Sandbox Code Playgroud)\n

Leg*_*gat 5

没有什么比这个匈牙利民间舞蹈团更能解释不同的排序算法了:

冒泡排序

快速排序

选择排序

Merge-sort

Shell-sort

But if you prefer a bit more formal approach I recommend you this site:

http://www.bluffton.edu/~nesterd/java/SortingDemo.html

You can choose different sorting algorithms, number and type of elements to sort and also different data sequences: random, ordered, reversed etc. You can't enter your own data there but I don't think that not using your own sequence of numbers could hinder the ability to understand the concept :)