基于邻接矩阵的广度优先搜索遍历(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 ·
624 阅读 ·
0 评论