随笔分类 -  笔记-DP

摘要:LCIS 单调优化思想 CH5102 Mobile Service http://contest-hunter.org:83/contest/0x50%E3%80%8C%E5%8A%A8%E6%80%81%E8%A7%84%E5%88%92%E3%80%8D%E4%BE%8B%E9%A2%98/51 阅读全文
posted @ 2019-04-05 21:27 universeplayer 阅读(188) 评论(0) 推荐(0)
摘要:对于只考虑首位状态的DP,考虑用倍增优化 P1081 开车旅行 https://www.luogu.org/problemnew/show/P1081 1 const int N=100005; 2 struct node{int x,y;}; 3 il bool operator <(node a 阅读全文
posted @ 2019-04-03 15:31 universeplayer 阅读(730) 评论(0) 推荐(0)
摘要:对于有i*j的项,考虑用斜率优化DP(任务安排) http://poj.org/problem?id=1180 单调递增 https://www.lydsy.com/JudgeOnline/problem.php?id=2726 不单调,二分 单调队列和斜率优化是属于决策单调性的一种。而决策单调性是 阅读全文
posted @ 2019-03-29 20:02 universeplayer 阅读(252) 评论(0) 推荐(0)