摘要: 一道贪心题。贪心的特点是找到局部最优解,做出当前的最好选择,且不能回退,只能一路往前。动态规划主要运用于二维或三维问题,而贪心一般是一维问题。 下面给出题目: Saruman's Army Description Saruman the White must lead his army along 阅读全文
posted @ 2018-12-05 20:13 Aikoin 阅读(224) 评论(0) 推荐(0) 编辑