摘要:   摘录自《数据结构原理与经典问题求解》   #include "QuickSort.h" #include <iostream> using namespace std;   QuickSort::QuickSort(vector<int> _list, int _len) { for (int i=0; i... 阅读全文
posted @ 2009-11-19 21:49 leukotrichia 阅读(217) 评论(0) 推荐(0) 编辑
摘要:   摘录自《数据结构原理与经典问题求解》     #include <iostream> #include "HuffmanTree.h"   using namespace std;   int main() { HuffmanTree * HT = NULL; HuffmanCode HC; c... 阅读全文
posted @ 2009-11-19 21:44 leukotrichia 阅读(280) 评论(0) 推荐(0) 编辑
摘要: //双向冒泡 bubble sort #include <iostream> #include <ctime> #define MAX 1000 #define N 10 using namespace std; void bubble(int* a,const int& len); inline void swap(int& x,int&... 阅读全文
posted @ 2009-11-19 18:23 leukotrichia 阅读(1328) 评论(0) 推荐(0) 编辑