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

奇怪,为什么邻接表不能AC?

Posted by huster at 2004-08-25 12:14:22 on Problem 1797
我用邻接表表示图,Dijkstra算法,每次从堆中取出最大的,为什么总是TLE??后来TLE了一个晚上,第二天花了15分钟用数组写了一个却325ms AC了,奇怪的,街道应该是稀疏的啊,这样说来用邻接表的效率会更高一些,为什么会这样?

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