
BFS
tara_int
我的程序成长史。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
基于邻接矩阵的广度优先搜索遍历(BFS) 深度优先搜索遍历(DFS)
//BFS #include <stdio.h> #include <stdlib.h> #include<string.h> int main() { int t, n, m, start, i; int a[110][110], book[110], q[110]; scanf("%d", &t); while...原创 2018-08-14 14:35:52 · 669 阅读 · 0 评论 -
数据结构实验之图论二:基于邻接表的广度优先搜索遍历 sdut 2142
#include <stdio.h> #include <stdlib.h> #include<string.h> struct node { int data; struct node *next; }; struct node *head[101], *p, *q; int book[101], n, m, start; void sort...原创 2018-08-15 10:18:42 · 751 阅读 · 0 评论