摘要:
将博客搬至CSDN 阅读全文
posted @ 2014-02-02 15:15
Cephei
阅读(96)
评论(0)
推荐(0)
摘要:
分治法意在将大的问题分解成足够小的问题进行求解,并将得出的答案进行归并得到最终的答案二分法排序属于一种分治。先将一个数组进行分割,直至子数组中只剩下一个元素,再进行比较。流程如下图代码:#pragma once#include "targetver.h"#include #include #include #include #include class stdFunc{private:public: static int I_start_time; static void setseed(); static int random(); static int random.. 阅读全文
posted @ 2014-02-02 00:17
Cephei
阅读(154)
评论(0)
推荐(0)