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

我也DFS超时,优化成递推后AC

Posted by sgzxy at 2008-06-17 19:37:12 on Problem 2137
In Reply To:大牛帮忙看看: TLE了,DP的话怎么保存中间状态呀?感觉坐标在变所以不能单纯的保存在数组里面,但用DFS超时!! Posted by:zhb_msqx at 2007-08-22 18:54:34
这题采取机械的DP来做,即常规地去DFS,实际上会产生巨大的冗余计算,超时是很难避免的。要针对冗余所在的原因去改进整个计算步骤才行。

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