码迷,mamicode.com
首页 >  
搜索关键字:动态规划    ( 6061个结果
cf 414B Mashmokh and ACM 动态规划
看似变态实则没那么复杂的动态规划
分类:其他好文   时间:2015-02-17 12:47:48    阅读次数:123
hdu 4405 Aeroplane chess 动态规划
所谓概率DP大多是算期望 算期望大多是从终点往回推
分类:其他好文   时间:2015-02-17 12:47:44    阅读次数:122
BUPT 202 Chocolate Machine 动态规划
依然是二维的动态规划 类似于走迷宫那种 需要在算dp[i][j]的时候不断更新最大值
分类:系统相关   时间:2015-02-17 12:47:30    阅读次数:214
hdu 3853 LOOPS 动态规划
神坑题 迷宫类动态规划
分类:其他好文   时间:2015-02-17 11:37:59    阅读次数:179
hdu 5135 Little Zu Chongzhi's Triangles 状压DP
贪心是不对的啊!! 状压DP的动态规划 小暴力
分类:其他好文   时间:2015-02-17 11:34:51    阅读次数:198
LeetCode 笔记22 Distinct Subsequences 动态规划需要冷静
Distinct SubsequencesGiven a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is...
分类:其他好文   时间:2015-02-16 20:58:05    阅读次数:180
趣题——三类背包问题
引言背包问题作为一个经典问题在动态规划中是很基础的一个部分,而以0-1背包问题为原题,衍生出来的各类题目千变万化,解法也不同。 本文以三道背包问题的变体着手讲解,希望能够做到触类旁通。0-1背包 给定n件物品和一个背包。物品i的价值是Wi,体积为Vi,背包的容量为C。可以任意选择装入背包的物品,求装入背包中的物品最大总价值。(Vi,C均为正整数) 在选择装入背包的物品时,有这样一个隐性条件:对...
分类:其他好文   时间:2015-02-16 18:27:03    阅读次数:242
例题9-15 校长的烦恼 UVa10817
1.题目描述:点击打开链接 2.解题思路:本题利用集合上的动态规划解决。定义集合s1表示恰好有一个人教的课程,集合s2表示至少有两个人教的课程。定义d(i,s1,s2)表示已经考虑了前i个人时的最小花费(人物编号从0开始)。则不难写出状态转移方程: d(i,s1,s2)=min{d(i+1,s1',s2')+c[i],d(i+1,s1,s2)}; 上式中只有当i≥m时才会考虑第二项。对于这个...
分类:其他好文   时间:2015-02-16 17:02:01    阅读次数:142
Leetcode139题Word Break的两种动态规划解法
由leetcode139题Word Break产生的对动态规划的一点思考。 题目要求是这样的: Given a string s and a dictionary of words dict,determine if s can be segmented into a space-separatedsequence of one or more dictionary words. For e...
分类:其他好文   时间:2015-02-16 16:59:00    阅读次数:158
DP解Stringsobits
Stringsobits Kim Schrijvers Consider an ordered set S of strings of N (1 This set of strings is interesting because it is ordered andcontains all possible strings of length N that have L (1 Your...
分类:其他好文   时间:2015-02-16 15:40:40    阅读次数:127
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!