【PTA】【数据结构与算法】贪心算法

北城余情 提交于 2020-01-26 09:27:14

判断题

1.只有当局部最优跟全局最优解一致的时候,贪心法才能给出正确的解。
T F
2.Let S be the set of activities in Activity Selection Problem. The greedy rule of “collecting the activity that starts the latest” is correct for finding a maximum-size subset of mutually compatible activities of S.
T F
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!