欢迎来到淘码网(TMA.CN)

sph_5

价格: ¥ 9 积分可抵¥ 9

最后更新: 2019-12-23 19:24:59

演示地址:

指导费: 免费

分类
参数1
参数2
参数3
参数4
参数5
参数6
大小
1 MB
发货方式
自动发货
下载方式
远程下载
1
1
1
备注说明
SPH 

所属分类中间件编程
开发工具:Pascal
文件大小:3KB
下载次数:1
上传日期:2008-06-01 10:11:05
说明:  动态规划的方程大家都知道,就是 f[i,j]=min{f[i-1,j-1],f[i-1,j],f[i,j-1],f[i,j+1]}+a[i,j] 但是很多人会怀疑这道题的后效性而放弃动规做法。 本来我还想做Dijkstra,后来变了没二十行pascal就告诉我数组越界了……(dist:array[1..1000*1001 div 2]...) 无奈之余看了xj_kidb1的题解,刚开始还觉得有问题,后来豁然开朗…… 反复动规。上山容易下山难,我们可以从上往下走,最后输出f[n][1]。 xj_kidb1的一个技巧很重要,每次令f[i][0]=f[i][i],f[i][i+1]=f[i][1](xj_kidb1的题解还写错了)
(Dynamic programming equation we all know, that is, f [i, j] = min (f [i-1, j-1], f [i-1, j], f [i, j-1], f [i , j+ 1])+ a [i, j] However, many people would suspect that the aftereffect of这道题give up the practice of dynamic regulation. Originally, I also want to Dijkstra, later changed twenty lines did not tell me pascal on an array of cross-border ... ... (dist: array [1 .. 1000* 1001 div 2 ]...) watched helplessly while the title xj_kidb1 solution the beginning also think there is a problem, then suddenly see the light ... ... repeatedly dynamic regulation. Difficult to easily down the mountains, we can walk down from the final output f [n] [1]. xj_kidb1 a skill is important, every time the f [i] [0] = f [i] [i], f [i] [i+ 1] = f [i] [1] (xj_kidb1 solution of the title is also wrong a))

文件列表
sph_5.doc

0 (0%)

好评

0 (0%)

中评

0 (0%)

差评

  • 会员中心
  • 浏览记录
  • 我的订单
  • 我的收藏
  • 在线客服

    点击这里给我发消息 点击这里给我发消息

    官方微信

    仅处理投诉、举报及平台使用问题;
    商品问题请咨询商家客服!

  • 意见反馈
  • 返回顶部
浏览记录