2012年6月15日

DFS深度优先搜索 算法基础篇(六)

摘要: View Code // DFS算法.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <stack>#include <iostream>using namespace std;#define Max 20typedef int ElemType;struct Vertex{ ElemType V; bool Visit;};typedef int EdgeType;struct Graphic{ Vertex Vex[Max]; EdgeType Edge[Max][Max]; int Arc; 阅读全文

posted @ 2012-06-15 09:58 北冥茶花开 阅读(181) 评论(0) 推荐(0) 编辑

导航