摘要: #include using namespace std;int n,m, a[10];void DFS(int k){ if (k>n) { for (int i=1; i>n; DFS(1); return 0; }View Code#incl... 阅读全文
posted @ 2014-08-06 12:29 2014acm 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 数据结构:图的DFS遍历时间限制(普通/Java):1000MS/3000MS 运行内存限制:65536KByte 总提交:259 测试通过:183描述 从已给的连通图中某一顶点出发,沿着一些边访遍图中所有的顶点,且使每个顶点仅被访问一次,就叫做图的遍历。图的遍历的遍历有DFS和... 阅读全文
posted @ 2014-08-06 12:26 2014acm 阅读(285) 评论(0) 推荐(0) 编辑