The technique to divide problems into subproblems & making a judgment of solution based on solution of sub problems....
- The problem should be able to be divided into smaller overlapping sub-problem.
- An optimum solution can be achieved by using an optimum solution of smaller sub-problems.
- Dynamic algorithms use memorization.
Sample Problems
- Fibonacci number series
- Knapsack problem
- Tower of Hanoi
- All pair shortest path by Floyd-Warshall
- Shortest path by Dijkstra
- Project scheduling
Optimal Binary Search
Weighted Job Scheduling
Given N jobs where every job is represented by following three elements of it.
- Start Time
- Finish Time
- Profit or Value Associated
No comments:
Post a Comment