Study Budget
Available time
10.0hrs
Syllabus Topics
Optimal Score (0/1 DP)
0
+0 marks over Greedy
Time Scheduled
0.0h
0 of 0 topics selected
Greedy Baseline
0
out of 0 total marks
0/1 Knapsack DP (Optimal)
0 marks · 0.0h
Greedy Heuristic (Marks / Hour)
0 marks · 0.0h
Recommended Study Schedule
Click any cell to inspect its recurrence calculation, or press Step Backtrack.
dp[i][w] = dp[i - 1][w] if wᵢ > w
dp[i][w] = max(dp[i - 1][w], vᵢ + dp[i - 1][w - wᵢ]) if wᵢ ≤ w
dp[i][w] = max(dp[i - 1][w], vᵢ + dp[i - 1][w - wᵢ]) if wᵢ ≤ w
Knapsack Mapping
- Capacity (W): Available study hours
- Items (N): Optional syllabus topics
- Weight (wᵢ): Study hours needed
- Value (vᵢ): Expected exam marks
Complexity
- Time: O(N × Wunits) bottom-up
- Space: O(N × Wunits) for backtracking
- Scaling: 0.5h increments scaled by ×2