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 |
我也DFS超时,优化成递推后ACIn Reply To:大牛帮忙看看: TLE了,DP的话怎么保存中间状态呀?感觉坐标在变所以不能单纯的保存在数组里面,但用DFS超时!! Posted by:zhb_msqx at 2007-08-22 18:54:34 这题采取机械的DP来做,即常规地去DFS,实际上会产生巨大的冗余计算,超时是很难避免的。要针对冗余所在的原因去改进整个计算步骤才行。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator