![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
排序算法
沈的军
这个作者很懒,什么都没留下…
展开
-
冒泡排序
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;//冒泡排序算法说明 //冒泡排序也被称为下沉排序,是一个简单的排序算法,通过多次重复比较每对相邻的元素,并按规定的顺序原创 2015-06-20 22:54:59 · 378 阅读 · 0 评论 -
双向冒泡排序
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;//双向冒泡排序说明 //鸡尾酒排序,也称为双向冒泡排序、调酒器排序、搅拌排序(可以参考选择排序的一个变种)、纹波排序、原创 2015-06-20 22:58:42 · 1241 阅读 · 0 评论 -
选择排序
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //选择排序说明//原理:首先在未排序序列中找到最小(大)元素,存放到排序序列的起始位置,然后,再从剩余未排序元素中继原创 2015-06-20 23:01:35 · 278 阅读 · 0 评论 -
圈排序
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //圈排序: //它是一个就地、不稳定的排序算法,根据原始的数组,一种理论上最优的比较,并且与其它就地排序算法不同。它原创 2015-06-20 22:59:39 · 608 阅读 · 1 评论