摘要: 数据结构算法与应用: 1.贪婪算法: 贪婪算法,把最好的先吃掉。 贪婪算法的应用首先可以用于货箱装载。对于期望函数为总货箱数的问题中贪婪算法可以给出最优解。但是对于期望函数为总价值的问题来说,看来算法不能保证给出最优解,但是给出的解大部分是最优解,而且与最优解的误差最多能达到25%。 在利用贪婪法求 阅读全文
posted @ 2020-11-14 21:09 Zebro 阅读(139) 评论(1) 推荐(0) 编辑
摘要: In the process of programming we can aply the outline or we say the draft as a auxilliary to finish a comprehensive project. As is shown from a certai 阅读全文
posted @ 2020-11-14 00:21 Zebro 阅读(78) 评论(0) 推荐(0) 编辑