2011年7月29日

数据结构的排序算法的C++实现代码

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2011-07-29 22:05 原来... 阅读(32) 评论(0) 推荐(0)

各种内部排序算法的实现(c++实现)

摘要: #include <iostream>using namespace std; //调试用输出template <class Type>void Print(Type a[], unsigned int n){cout<<endl;for(int i=0; i<n; i++){ cout.width(4); cout<<a[i];}cout<<endl;}//冒泡排序(升序)//时间复杂性O(n*n)template <class Type>void BubbleSort(Type a[], unsigned int 阅读全文

posted @ 2011-07-29 22:03 原来... 阅读(933) 评论(0) 推荐(0)

关于一道算法题《编写算法,从10亿个浮点数当中,选出其中最大的10000个》(转)

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2011-07-29 21:36 原来... 阅读(76) 评论(2) 推荐(0)

导航