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

有无可能用遗传算法呢?

Posted by gzw_02 at 2008-05-24 09:32:03 on Problem 1014
形如这样的序列:
0 19999 0 0 0 0
0 19997 0 1 0 0
0 19995 0 2 0 0

...
0 20000-2*x-1 0 x 0 0   (x=0,1,2...)

我发现程序运行时间是x的指数幂.
我们都知道程序搜索结点失败返回的时候要跳过连续的相同的段.
但这样还不够.

能否让某个"前面的段"感知到它后面的所有段都做过"跳过",从而"前面的段"能够跳过多个值不同的段..
例如
0 6001 0 6999 0 7000
当6001里面的某个段失败返回时, 它能够跳过 6001,6999,7000的所有3段直到最后.
不会写这种算法,呵呵.
 
   


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