2019年4月2日

SDUT ———— 2107 数据结构实验之图论二:图的深度遍历

摘要: 数据结构实验之图论二:图的深度遍历 Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description 请定一个无向图,顶点编号从0到n-1,用深度优先搜索(DFS),遍历并输出。遍历时,先遍历节点编号小的。 请定一个无向图,顶点编号从0到 阅读全文

posted @ 2019-04-02 20:56 TigerDZ 阅读(109) 评论(0) 推荐(0) 编辑

SDUT ———— 2448 DFS走迷宫

摘要: #include using namespace std; int matrix[7][7]; int cout1 = 0; int n,m; int visit[7][7]; inline bool judge(int e1,int e2 ) { return (e1 > 0 ) && ( e1 0)&&( e2 >T; while (T -- > 0){ ... 阅读全文

posted @ 2019-04-02 14:28 TigerDZ 阅读(98) 评论(0) 推荐(0) 编辑

导航