基于邻接矩阵的广度优先搜索遍历
摘要:
1 # include <stdio.h> 2 # include <string.h> 3 int map[100][100],vist[100]; 4 int q[100]; //优先队列存储临时值。 5 int n,m,t,flag; 6 void BFS(int t) 7 { 8 int f 阅读全文
posted @ 2013-11-20 08:27 随风浪子的博客 阅读(222) 评论(0) 推荐(0)
浙公网安备 33010602011771号