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

DP优化(1)-滚动数组

Posted by 5D6D2 at 2012-06-03 16:06:12 on Problem 1036
简单DP
F[i,j] = Max{ F[i-1,j-1] , F[i-1,j] , F[i-1,j+1] } + W[i,j](i时刻,开门程度j)
F[0,0]=0      F[0,i]= -INF
滚动数组,存储两项

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