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 |
Re:杯具了,用spfa和heap+dij都写了一遍,竟然都是6000+,请问这是什么原因(我链表是动态的)In Reply To:杯具了,用spfa和heap+dij都写了一遍,竟然都是6000+,请问这是什么原因(我链表是动态的) Posted by:__24__ at 2010-08-13 10:26:09 动态建链表肯定耗时了。我是SPFA+queue+静态链表(或spfa+stack+静态链表)用时1900MS+。如果对SPFA用SLF+SLL优化的话应该就更快了。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator