Answer:
Following are the description of the given points:
Explanation:
A) The Multiple greedy approaches could exist, which could be to reach for the closest emergency diamond, and yet clearly we are going to miss some very essential routes in that case. So, it can make every argument quickly, and seek to demonstrate a reference case for that.
B) An approach to the evolutionary algorithm and its users are going to just have states M x N. But each state (i, j) indicates the absolute difference between the amount of the selected diamond and the amounts of the costs incurred.
DP(i, j) = DimondVal(i, j) + max ((DP(i, j-1)-2), (DP(i-1,j-1)-3))
DP(i, j) is a description of the state.
DimondVal(i, j) is the diamond value at (i j), 0 if there is no diamond available.
This states must calculate the states of M N and it involves continuous-time for each State to determine. Therefore the amount of time of such an algo is going to be O(MN).