摘要: 一、概念任何比较排序在最坏情况下都要用O(lgn)次比较不进行排序计算排序、基数排序、桶排序都是稳定排序二、代码#include <iostream>#include <cmath>using namespace std;int length_A, digit;void Print(int *A, int start, int end){ int i; for(i = start; i <= end; i++) { if(i == start)cout<<'{'; else cout<<' '; cout&l 阅读全文
posted @ 2012-06-20 10:24 windmissing 阅读(162) 评论(0) 推荐(0) 编辑