数据结构和算法
文章平均质量分 78
简单即优雅
机器学习 数据挖掘 数学 英语 足球 coding
展开
-
《算法导论》中广度优先搜索的实现 c++
#include #include using namespace std; const int MAXE=10;// the capacity of the queue size is MAX-1 const int MAX_OF_VERTEX=8; typedef struct// we FLLOW THE convention that the size of the queu原创 2013-04-14 22:47:51 · 505 阅读 · 0 评论 -
单链表的反转 c++
#include #include using namespace std; const int N=10; typedef struct node { int key; struct node*next; } NODE; // INSERT A ELEMENT INTO A LINKLIST bool insert(NODE*p,int position,int key)/原创 2013-04-15 14:37:30 · 574 阅读 · 0 评论