(C#)选择排序 Selection Sort
2011-01-06 23:55
411 查看
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Sort { class Select { public static void SelectSort(List<int> list) { int tmp; int t; for (int i = 0; i < list.Count; ++i) { t = i; for (int j = i + 1; j < list.Count; ++j) { if (list[t] > list[j]) { t = j; } } tmp = list[i]; list[i] = list[t]; list[t] = tmp; } } } }
相关文章推荐
- 排序算法--选择排序(Selection Sort)_C#程序实现
- C#简单选择排序
- C#的排序算法:冒泡排序、选择排序、插入排序和希尔排序
- Selection Sort(排序详解 之 选择排序)
- C#的四种排序算法:冒泡排序、选择排序、插入排序和希尔排序
- C#的四种排序算法 冒泡排序、选择排序、插入排序和希尔排序
- selection sort 选择排序
- C#算法-----(一)选择排序
- C#算法 选择排序、冒泡排序、插入排序
- C语言、python、go、C#版本选择排序
- 排序算法-选择排序 Selection Sort
- 基本排序算法01----选择排序(selection sort)
- C#的四种排序算法:冒泡排序、选择排序、插入排序和希尔排序
- 【C#算法】冒泡排序 选择排序 插入排序 希尔排序--转
- 经典算法(6)- 选择排序(Selection Sort)
- 【排序算法】 选择排序 selection sort(选择类排序)
- 数据结构(C#)--冒泡、插入、快速、堆、归并、希尔、选择各种排序排序过程比较以及各种排序的所用时间的对比
- 算法-选择排序(Selection Sort)
- C#冒泡排序、选择排序、插入排序和希尔排序
- 算法--选择排序 Selection Sort