摘要: 快速排序 1 #include 2 #include 3 // QUICKSORT(A, p, r) 4 // if p 63 #include "7.1_quicksort.h"64 65 int main()66 {67 int64_t array[] = { 2, 8, 7, 1,... 阅读全文
posted @ 2015-02-03 21:10 孙永杰 阅读(181) 评论(0) 推荐(0)
摘要: heap// heap.h // PARENT(i) // return i / 2 // LEFT(i) // return 2 * i // RIGHT(i) // return 2 * i + 1 // MAX-HEAP... 阅读全文
posted @ 2015-02-03 21:07 孙永杰 阅读(544) 评论(0) 推荐(0)
摘要: strassen// strassen.h#ifndef STRASSEN_HH#define STRASSEN_HH#include #include templateclass Strassen_class{public: void ADD(T** MatrixA, T** MatrixB... 阅读全文
posted @ 2015-02-03 21:01 孙永杰 阅读(445) 评论(0) 推荐(0)
摘要: // liner_time_max_subarray.cpp#include #include int my_sum(int const * p, int const n, int & begin, int & end){ int max; int sum; int max_all... 阅读全文
posted @ 2015-02-03 20:59 孙永杰 阅读(245) 评论(0) 推荐(0)
摘要: 寻找最大子数组// find_max_sub_array.h #include int Find_MAX_CROSSING_SUBARRAY(int* A, int low, int mid, int high, int& max_left, int& max_right, in... 阅读全文
posted @ 2015-02-03 20:53 孙永杰 阅读(198) 评论(0) 推荐(0)
摘要: // 2.3.1 merge.h #include // MERGE(A, p, q, r) // n1 = q - p + 1 // n2 = r - q // let L[1..n1 + 1] and R[1..n2 + 1] be new arrays // for i = 1 to n1 // L[i] = A[p + i - 1] // for j = 1 to n2 // ... 阅读全文
posted @ 2015-02-03 20:48 孙永杰 阅读(363) 评论(0) 推荐(0)
摘要: 插入排序// insertion_sort.h not with template #include #include // INSERTION-SORT(A) // for j = 2 to A.length // key = A[j] // ... 阅读全文
posted @ 2015-02-03 20:32 孙永杰 阅读(383) 评论(0) 推荐(0)
摘要: 自动生成了,src和Debug文件夹将已经存在的代码目录源文件拷到src下,eclipse会自动分析并加入工程,将原来的该注释的函数注释掉,开始的时候我们新建工程时,选的是新的helloworld工程模版includelink g++ -rdynamic -lpthread -lc -lnsl -l... 阅读全文
posted @ 2015-02-03 11:56 孙永杰 阅读(340) 评论(0) 推荐(0)
摘要: when install centos eclipse when install the os system, the cdt is already installed, but some time when you first start the eclipse, you can not find 阅读全文
posted @ 2015-02-03 09:28 孙永杰 阅读(124) 评论(0) 推荐(0)
摘要: orilink:http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece76310489d2d0e54f73c6bca814623928448e53919161b71e3cd73794e53c4c50a3152e91a4bea8677366b14... 阅读全文
posted @ 2015-02-03 08:59 孙永杰 阅读(541) 评论(0) 推荐(0)
摘要: 知行网www.zhixing123.cn 编辑:麦田守望者git命令的安装与github简单使用时间:2013-09-25 01:51来源:知行网www.zhixing123.cn 编辑:麦田守望者git的出现让传统的svn陷入尴尬的境地,分布式的版本控制是局势所需,svn目前也称要支持分布式,但至... 阅读全文
posted @ 2015-02-03 06:43 孙永杰 阅读(310) 评论(0) 推荐(0)