![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
文章平均质量分 77
乔巴好萌
目前只会Go C++ python Java
展开
-
值得参考的几本算法书
有些看过,有些没看过,先记录下。算法导论 Thomas H.Cormen算法设计 Jon KleinbergC算法,java算法 Robert Sedgewick图论导引 Douglas B.west计算理论导引 Michael Sipser图论及其算法 殷剑宏转载 2013-03-06 23:27:27 · 775 阅读 · 0 评论 -
八皇后问题回溯算法
#include #include using namespace std;#include using std::vector;#include #include #define QUEENS 8int iCount = 0;int Site[QUEENS];void Queue(int n);void Print();bool isVal原创 2013-03-10 22:02:13 · 806 阅读 · 0 评论 -
二分查找法(C++ 模板实现)
/*算法总结 二分查找法: 二分查找法的前提是数据已经排序,时间平均复杂度为 O(lgn) 欢迎转载,转载请注明作者 openxmpp@163.com*/#include #include using namespace std;#include using std::vector;#include /** * @brief binarySearch 二分查找原创 2013-02-23 11:30:41 · 4574 阅读 · 2 评论 -
链表翻转的递归和非递归算法
#include #include using namespace std;templatetypename T>struct Node{ Node ( T value ) : mValue(value),mNext(0) { } Node *mNext; T mValue;};templatetypename原创 2013-03-18 18:44:31 · 804 阅读 · 0 评论