Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:暴力DFS过的,但是规模上了10*10的话不行,如果这个题目规模上了10*10怎么写?

Posted by Xiao_Xiao_ at 2009-10-26 20:13:51 on Problem 2488
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator