- 博客(4)
- 问答 (1)
- 收藏
- 关注
原创 binary search tree
///之前写的在删节点时 都没有维持二叉排序树的形态 所以重写一遍 还挺好玩的 #include using namespace std; typedef struct treenode { int data; treenode *lchild; treenode *rchild; }node, *Tree; int head, tail; node *q[100]; in
2016-12-08 18:22:31 224
原创 图toposort
///有向无环图 ///拓扑排序 ///图的各种表示法 汇总 ///1.邻接矩阵 /* #include #include #include using namespace std; int deg[100]; bool vis[100]; int map1[100][100]; int a[100]; void toposort(int n) { priority_queue ,
2016-12-04 15:48:41 451
原创 Adjacency List Dijkstra
///啊 次我一个太滚吧~ #include #include using namespace std; struct arcnode { int adjvex; int weight; arcnode *nextarc; }; typedef struct vnode { int data; arcnode * firstarc; }Adjvex[20];
2016-12-02 20:58:50 347
原创 神啊
我要慢慢研读~ #ifndef LISTDEFINE_H_INCLUDED #define LISTDEFINE_H_INCLUDED #include "pubuse.h" template class LinkList { public: struct node { T date; node* next; node* pr
2016-12-02 19:52:22 206
空空如也
C++ 小白有一条语句不明白 求各位大佬帮个忙
2017-05-24
TA创建的收藏夹 TA关注的收藏夹
TA关注的人