(a) How does dynamic programming relate with divide and conquer approach? (b) Does greedy algorithm always achieve optimal solution? If not, when…

(a) How does dynamic programming relate with divide and conquer approach?

(b) Does greedy algorithm always achieve optimal solution? If not, when does greedy approach achieve optimal solution?

From the BPSC Assistant Programmer (CSE) July 2023 – Written exam, question 5 of 8.

More from this paper