β
Correct Answer: (B)
false
Explanation: a greedy algorithm gives optimal solution for all subproblems, but when these locally optimal solutions are combined it may not result into a globally optimal solution. hence, a greedy algorithm cannot be used to solve all the dynamic programming problems.
Explanation by: Mr. Dubey
a greedy algorithm gives optimal solution for all subproblems, but when these locally optimal solutions are combined it may not result into a globally optimal solution. hence, a greedy algorithm cannot be used to solve all the dynamic programming problems.
Discussion
Question Analytics
318
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
96%
Success Rate