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:暴力DFS过的,但是规模上了10*10的话不行,如果这个题目规模上了10*10怎么写?In Reply To:暴力DFS过的,但是规模上了10*10的话不行,如果这个题目规模上了10*10怎么写? Posted by:dirtysalt at 2009-07-31 15:59:11 用到了一个剪枝技巧(Warnsdoff策略)。假如从A能达到3个点B,C和D,而B能够到达4个点,C能够到达5个点,D能够到达3个点,那么就选择最小的点,就是应该选择从A到D。 我试了下,这样的速度很快。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator