Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:这个题目的算法是什么?In Reply To:Re:这个题目的算法是什么? Posted by:mathzqy at 2004-08-01 22:59:41 不需要回溯么? > void Euler(int node) > { > int i; > for(i=1;i<=maxStreet;i++) > { > if(graph[node][i]!=0&&!mark[i]) > { > mark[i]=1; > Euler(graph[node][i]); > stack[top]=i; > top++; > } > } > > } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator