Question: algorithm design and analyze a) (7 points) Describe the design paradigm Dynamic Programming in your words. Which problem does it address? In which situations can
a) (7 points) Describe the design paradigm Dynamic Programming in your words. Which problem does it address? In which situations can it be used? b) ( 13 points) Design an algorithm for the knapsack-problem: Given an integer K and n integers 1s,s,K find a subset of S={s} such that the sum over these s, is exactly K (or determine that no such set exists)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
