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

Re:原题的数据范围尽然有10万,n^2也不好使了。https://cemc.math.uwaterloo.ca/contests/computing/2007/stage2/day2.pdf

Posted by tasty at 2014-07-25 01:52:05 on Problem 3351
In Reply To:Re:原题的数据范围尽然有10万,n^2也不好使了。https://cemc.math.uwaterloo.ca/contests/computing/2007/stage2/day2.pdf Posted by:tasty at 2014-07-25 01:40:20
> 优化芝麻优化过了,虽然知道优化状态转移的话可以把转移蛋疼到接近O(1),但是还是想练习一下难度比较大的优化:
> 
> 我用的是上下界估价函数,然后剪枝:  用这个方法配合状态转移优化说不定能搞N<=10^5数据量,改天再搞,不知道  原始数据的题目哪个OJ有。。。。

随机测了几组N==1000的数据,有用的状态数从 10^6优化到了 17万左右,不知道N==10^5效果怎么样。。。。

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