![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 627 阅读 · 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 · 649 阅读 · 0 评论