Q1. Solve the following question to find best courses/payment using dynamic programming:
A graduate student may take any number of courses as a Teaching Assistant. There are five
courses and each associated with a payment. Each course has a number of hours needed and
the student is allowed to spend a maximum of 6 hours on TA duties. Find the best choice for
the grad student to maximize his/her income based on the following five courses specified as
(hours needed, payment received). -- (1,2, (4,5), (5,6) ), (2,3), (3,4)
The best possible variants:
Maximal income will be at variant , where:
hours needed: 6, payment received: 9.
Comments