asked 205k views
3 votes
Explain the schema to be followed when solving a dp problem

asked
User Adam Liu
by
8.7k points

1 Answer

2 votes

Answer:

Every Dynamic Programming problem has a schema to be followed: Show that the problem can be broken down into optimal sub-problems. Recursively define the value of the solution by expressing it in terms of optimal solutions for smaller sub-problems. Compute the value of the optimal solution in bottom-up fashion.

answered
User Rajarshi Das
by
7.7k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.