Skip to content

算法练习:四大算法设计思想之一——贪心算法(Greedy) #30

Description

@ShannonChenCHN

题目列表

总结:

  1. 什么是贪心算法:在对问题求解时,总是做出在当前看来是最好的选择。
  2. 适用场景:适用贪心算法的场景就是,问题能够分解成子问题来解决,子问题的最优解能递推到最终问题的最优解。
  3. 用贪心算法解决问题的思路,并不总能给出最优解。
  4. 典型案例:背包问题(注:不是0-1背包问题),分糖果,钱币找零,区间覆盖

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions