An exam preparation optimizer powered by 0/1 Knapsack Dynamic Programming.
One large high-ratio topic can block two medium topics that fit the budget completely and score higher.
dp[i][w] or step through the backtrack path.| Topic | Time | Marks | Marks/Hr |
|---|---|---|---|
| 1. Graph | 4 hrs | 30 | 7.5 (Top) |
| 2. Sorting | 3 hrs | 21 | 7.0 |
| 3. Tree | 3 hrs | 21 | 7.0 |
| Topic \ w | 0h | 1h | 2h | 3h | 4h | 5h | 6h |
|---|---|---|---|---|---|---|---|
| 0. Base | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 1. Graph (4h, 30) | 0 | 0 | 0 | 0 | 30 | 30 | 30 |
| 2. Sorting (3h, 21) | 0 | 0 | 0 | 21 | 30 | 30 | 30 |
| 3. Tree (3h, 21) | 0 | 0 | 0 | 21 | 30 | 30 | 42 |
| Approach | Time | Space | Lists Exact Topics? |
|---|---|---|---|
| Brute-Force Recursion | O(2N) | O(N) | Yes (too slow for 20+ topics) |
| 1D Rolling Array DP | O(N × W) | O(W) | No (score only) |
| 2D Bottom-Up DP (Used Here) | O(N × W) | O(N × W) | Yes (O(N) Backtracking) |
Track mental fatigue alongside hours (dp[i][w][e]) so difficult topics are balanced sensibly.
Enforce chapter dependencies—for example, studying Recursion before Dynamic Programming.
Export the generated time-blocked schedule directly to printable PDFs or Google Calendar.
Smart Study Planner turns limited exam hours into a clear, optimal study plan.
Open Study Planner →