摘要: 3.3开始的文字介绍是欧拉通路和欧拉回路。类似于小时候学过的一笔画问题。介绍里伪代码写的很清晰,几乎照着拍就可以A题。Riding The Fences:TEXT里的例题,欧拉路径。TEXT里说因为递归的层数比较深,所以要自己定义栈。我这里就用循环写了。其实递归也可以过。 1 # include 2 # include 3 4 5 int g[510][510], stack[110], top ; 6 int degree[510] ; 7 int EulerCircuit[1100] ; 8 9 10 void FindEuler(int s)11 {12 int i, ... 阅读全文
posted @ 2013-07-09 17:55 Seraph2012 阅读(220) 评论(0) 推荐(0) 编辑