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 |
奇怪,为什么邻接表不能AC?我用邻接表表示图,Dijkstra算法,每次从堆中取出最大的,为什么总是TLE??后来TLE了一个晚上,第二天花了15分钟用数组写了一个却325ms AC了,奇怪的,街道应该是稀疏的啊,这样说来用邻接表的效率会更高一些,为什么会这样? Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator