Tugas Kelompok Ke-1 Minggu 05 / Session 06 Submitted by
Tugas Kelompok Ke-1 Minggu 05 / Session 06 Submitted by
Tugas Kelompok Ke-1 Minggu 05 / Session 06 Submitted by
Submitted by:
Dhadung Prihananto (2140071352)
1. A master student has 7 days remaining before final examinations begin in his four
courses, and he wants to allocate this study time as effectively as possible. He needs at
least 1 day on each course, and he likes to concentrate on just one course each day, so he
wants to allocate 1, 2, 3, or 4 days to each course. He decides to use dynamic
programming to make these allocations to maximize the total grade points to be obtained
from the four courses. He estimates that the alternative allocations for each course would
yield the number of grade points shown in the following table:
Course 4
s4 f4*(s4) x4*
1 4 1
2 4 2
3 5 3
4 8 4
Course 3
s3 1 2 3 4 f3*(s3) x3*
2 8 8 1
3 8 10 10 2
4 9 10 11 11 3
5 12 11 11 13 13 4
course 1
s1 1 2 3 4 f1*(s1) x1*
7 19 19 21 21 21 3,4
Dari hasil analisa dynamic programming di atas, dapat solusi untuk maksimal score yang
akan di dapat = 21, jika
Pelajar mempelajari course 1 selama 4 hari, course 2 selama 1 hari, course 3 selama 1 hari,
course 4 selama 1 hari
ATAU
Pelajar mempelajari course 1 selama 3 hari, course 2 selama 1 hari, course 3 selama 2 hari,
course 4 selama 1 hari