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

BFS + DFS

Posted by Gamor at 2009-08-25 19:18:00 on Problem 2049
BFS为主算法,但是对于哪些两个空格之间没有门和wall是,意味着这两个空格可以同化为一个空格,这是我们调用DFS,将所有的这些空格全部压入队列,并且所有空格的depth都相等,其实这就是某位大牛提到的floodfill部分,呵呵。

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