![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
区间dp
GreyBtfly王宝彤
业精于勤,荒于嬉;行成于思,毁于随
展开
-
区间dp 与 四边形不等式优化 学习笔记
博客目录很久之前在网上看了传说中的四边形不等式,然后现在发现忘光了。趁比赛前夕赶快拿来熟悉一下。一、引入例题:Division HDU - 3480 区间dp 与 四边形不等式优化 或者 斜率优化形如:dp[i][j]=min{dp[i][k]+dp[k+1][j]+cost[i][j]}的状态转移方程,如果不加优化的话ijk三层循环O(n^3)的复杂度是难以接受的。考虑四...原创 2018-10-11 13:15:57 · 657 阅读 · 0 评论 -
Division HDU - 3480 区间dp 与 四边形不等式优化 或者 斜率优化
博客目录原题题目传送门Little D is really interested in the theorem of sets recently. There’s a problem that confused him a long time. Let T be a set of integers. Let the MIN be the minimum integer in...原创 2018-10-11 13:17:16 · 329 阅读 · 0 评论