数据结构——排序(C实现)

链接:http://www.javashuo.com/article/p-bjtzezfu-db.html 1、选择排序-简单选择排序 选择排序是最简单的一种基于O(n^2)时间复杂度的排序算法,基本思想是从 i=0位置开始到i=n-1每次通过内循环找出i位置到n-1位置的最大(小)值。 实现: void selectSort(int arr[],int n) { int i,j,minV
相关文章
相关标签/搜索