|  | 
|  | 
| вернуться в форум | why TLE  using  bfs Послано rushel  12 сен 2005 09:30I use bfs where a state is defined by node and time. Is myapproach is wrong? please help me.
Re: why TLE  using  bfs ???
 Edited by author 12.09.2005 15:55
Re: why TLE  using  bfs Послано wwwwww  14 сен 2005 22:40Time is integer in 0..1440,We have about 500^2 edges,
 So 1440*500*500 ~ 4*10^8 (it's of course too big time :)
 And you think it can get not TLE?
 
 Try to invent faster algorithm.
BFS is possible (+) Послано Orfest  6 июн 2009 10:25BFS is possible if you enhance it doing several tricks.My AC is 0.265 sec, 5421KB, 85 LOC
Re: BFS is possible (+) I think you mean Ford-Bellman with queue. 0.625 AC. But i have many operations with vectors resize. I think this solve can work faster.
 Edited by author 30.05.2012 01:53
 | 
 | 
|