develop an algorithm using dynamic programming to fine the min no elements wise multiplication
Answers
Answered by
1
Dynamic programming, like the divide-and-conquer method, solves problems by combining the solutions to subproblems. ("Programming" in this context refers to a tabular method, not to writing computer code.) As we saw in Chapter 1, divide-and-conquer algorithms partition the problem into independent subproblems, solve the subproblems recursively, and then combine their solutions to solve the original problem. In contrast, dynamic programming is applicable when the subproblems are not independent, that is, when subproblems share sub subproblems. In this context, a divide-and-conquer algorithm does more work than necessary, repeatedly solving the common subsubproblems. A dynamic-programming algorithm solves every subsubproblem just once and then saves its answer in a table, thereby avoiding the work of re-computing the answer every time the sub subproblem is encountered.
PLEASE MARK AS BRAINLIST
PLEASE MARK AS BRAINLIST
veisounii:
thank you for the explanation. can you help with the logical write up of the said algorithm.
Similar questions