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:SPFA,用队列和栈哪个效率更高?

Posted by vici at 2010-09-25 12:32:43 on Problem 3680
In Reply To:SPFA,用队列和栈哪个效率更高? Posted by:killer8888 at 2009-04-07 23:34:39
队列基于bfs 栈基于dfs
一般情况都是队列快
有些特殊情况栈比队列快
详细的可以看那篇关于spfa优化的论文

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