快速排的算法C++实现 代码段

#include <stdio.h> #include <stdlib.h> #define SORT_ARRAY_SIZE 10000 #define PIVOT_FIRST 1 #define PIVOT_LAST 0 #define PIVOT_MEDIAN_OF_THREE 0 void QuickSort(int *array, int start, int end); int Choo

c6e3 2015-01-08   1244   0

List 排 Java工具类 代码段

# DESCRIBE 关于给Vector,ArrayList和LinkedList特定List集合排的方法 # AUTHOR # DATE 2007-3-16 # COMPANY FLX # PORJECT

ne3g 2015-01-26   2382   0
Java  

java实现选择排算法 代码段

选择排(Selection sort)是一种简单直观的排算法。它的工作原理如下。首先在未排列中找到最小(大)元素,存放到排列的起始位置,然后,再从剩余未排元素中 继续寻找最小(大)元素,

c6g3 2015-02-15   6430   0
Java  

C++STL之希尔排 代码段

gap = gap/2) { shellSort(vec, gap); //以gap步长为参数进行排 } } template void shellSort(vector&

b36g 2015-04-03   1354   0
C/C++  

C#堆排代码 代码段

private static void Adjust (int[] list, int i, int m) { int Temp = list[i]; int j = i * 2 + 1; while (j <= m) { //more children if(j < m) if(list[j] < list[j + 1]) j = j + 1; //compare roots and the o

b5cw 2015-04-22   1019   0
C#  

java快速排算法代码 代码段

package Mypackage; public class QuickSort { public static void main(String[] args) { int[] arr = { 2, 5, 4, 3, 7, 0, 9, 1, 6, 8 }; quickSort(arr, 2, 7); for (int i = 0; i < arr.length; i++) System.out

pc688 2015-05-05   885   0
Java  

javascript随机抽签程 代码段

content="text/html; charset=utf-8" /> 抽签程<em>序</em>