Key points:
- Solves problems by combining solutions to subproblems.
- Requires that the problem possess optimal substructure.
- Differs from divide-and-conquer in that subproblems are overlapping.
- Can use table lookup (memoization) to avoid solving a subproblem more than once.
- Memoization allows for a top-down strategy, instead of DP's usual bottom-up approach.
- DP is typically used for optimization problems, where a minimum or maximum value is sought.
- Describe the structure of an optimal solution.
- Recursively define the value of an optimal solution.
- Compute the value of an optimal solution in bottom-up fashion.
- Construct an optimal solution from the computed information.
- Matrix-chain multiplication
- Longest common subsequence of two sequences
- Optimal triangulation of a convex polygon
2 comments:
you have a nice site. thanks for sharing this site. you can download lots of ebooks from here
http://feboook.blogspot.com
Here are a list of some important Interview Questions.
Click on them to view the answer:
1)Tell Me Something About Yourself ?
2) What Is (Are) Your Strength (Strengths)?
3) What Is (Are) Your Weakness (Weaknesses)?
4) Can You Work Well Under Pressure?
5) What Are Your Short Term Goals?
6) What Are Your Long Term Goals?
7) Where Do You See Yourself 5 Years From Now?
8) Why Should We Hire You?
9) What Kind Of Salary Are You Looking For?
10) Why Do You Want To Leave Your Current Job?
Here are a list of some important Interview Questions.
Click on them to view the answer:
1)Tell Me Something About Yourself ?
2) What Is (Are) Your Strength (Strengths)?
3) What Is (Are) Your Weakness (Weaknesses)?
4) Can You Work Well Under Pressure?
5) What Are Your Short Term Goals?
6) What Are Your Long Term Goals?
7) Where Do You See Yourself 5 Years From Now?
8) Why Should We Hire You?
9) What Kind Of Salary Are You Looking For?
10) Why Do You Want To Leave Your Current Job?
Post a Comment