Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

算法学习-贪心算法 | imarkofu's blogs #43

Open
imarkofu opened this issue Jan 3, 2019 · 0 comments
Open

算法学习-贪心算法 | imarkofu's blogs #43

imarkofu opened this issue Jan 3, 2019 · 0 comments

Comments

@imarkofu
Copy link
Owner

imarkofu commented Jan 3, 2019

https://blog.imarkofu.com/2019/01/03/algorithm-greedy-algorithm/

所谓贪心算法是指,在对问题求解时,总是做出在当前看来是最好的选择。也就是说,不从整体最优上加以考虑,他所做出的仅是在某种意义上的局部最优解。 贪心算法没有固定的算法框架,算法设计的关键是贪心策略的选择。必须注意的是,贪心算法不是对所有问题都能得到整体最优解,选择的贪心策略必须具备无后效性,即某个状态以后的过程不会影响以前的状态,只与当前状态有关。 所以对所采用的贪心策略一定要仔细分析其是否满足无后

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

No branches or pull requests

1 participant