01 / TITLE & PROJECT OVERVIEW PROJECT PRESENTATION
COURSE: ALGORITHMS • TOPIC: DYNAMIC PROGRAMMING

Smart Study
Planner

An exam preparation optimizer powered by 0/1 Knapsack Dynamic Programming.

PRESENTED BY
Talha Ahmed Chowdhury
ID: 2567CSE01229
SUBMITTED TO
Noor Easrib Tiba
Lecturer
01 • INPUT
Limited Hours + Syllabus Topics
Each topic has required hours and expected marks.
02 • ALGORITHM
0/1 Knapsack Dynamic Programming
Decides which topics to finish (1) or skip (0).
03 • OUTPUT
Optimal Study Schedule
Highest possible marks + live Greedy comparison.
SMART STUDY PLANNER 01 / 08
02 / Problem Statement & Motivation

Why Students Need Optimal Study Planning

02 / 08
1
Tight Exam Deadline
Only 6–12 hours left, while the full syllabus needs 20+ hours.
2
Finish (1) or Skip (0)
Half-studying a complex chapter rarely earns full exam marks.
3
Goal: Maximize Marks
Pick the exact subset of topics that fits within budget W.
Real-life discrete optimization problem every student faces.
MOTIVATION: THE GREEDY TRAP
Picking "Best Marks / Hour" First Fails

One large high-ratio topic can block two medium topics that fit the budget completely and score higher.

Greedy (4h used • 2h wasted) 30 Marks
0/1 Knapsack DP (Full 6h used) 42 Marks (+12)
Dynamic Programming guarantees the highest possible score.
SMART STUDY PLANNER PROBLEM & MOTIVATION
03 / Objectives & Key Features

What Our Smart Study Planner Does

03 / 08
OBJECTIVE 1
Maximize Expected Marks
OBJECTIVE 2
Prove DP Beats Greedy
OBJECTIVE 3
Visualize DP & Backtracking
01
0.5h Time Budget Slider
Slide available hours (1h–24h) and see selected topics update immediately.
02
Must-Study Pinning
Lock compulsory topics first, then optimize the remaining hours with DP.
03
Greedy vs. DP + Schedule
Live score gap comparison plus a timed study routine with breaks.
04
Interactive DP Table
Click any cell in dp[i][w] or step through the backtrack path.
SMART STUDY PLANNER OBJECTIVES & KEY FEATURES
04 / Algorithm Description

How 0/1 Knapsack Solves It

04 / 08
STEP 1: PROBLEM MAPPING
Available Hours Syllabus Topic i Study Hours Expected Marks Capacity (W) 0/1 Item i Weight (wᵢ) Value (vᵢ)
0.5h Integer Scaling: Multiply half-hours by ×2 (e.g., 3.5h → 7 units).
STEP 2: RECURRENCE RELATION
Base Case: dp[0][w] = 0,  dp[i][0] = 0
If wi > w  (Too big → Skip)
dp[i][w] = dp[i−1][w]
If wi ≤ w  (Skip vs. Take)
dp[i][w] = max( dp[i−1][w], vi + dp[i−1][w − wi] )
STEP 3: BACKTRACKING
Start at dp[N][W]. If dp[i][w] ≠ dp[i−1][w] → Take topic i and subtract wi. Otherwise Skip.
SMART STUDY PLANNER ALGORITHM DESCRIPTION
05 / Sample Input & Output

Worked Example (Budget W = 6 Hours)

05 / 08
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
GREEDY OUTPUT
30 marks
Graph (4h) only • 2h wasted
0/1 KNAPSACK DP
42 marks
Sorting + Tree (6h) • +12 gain
DP TABLE & BACKTRACK PATH Green = Take • Amber = Skip
Topic \ w 0h1h2h3h4h5h6h
0. Base 0000000
1. Graph (4h, 30) 0000303030
2. Sorting (3h, 21) 00021303030
3. Tree (3h, 21) 00021303042
Path: 42 (Take Tree) → 21 (Take Sorting) → 0 (Skip Graph)
Interactive application: Open Study Planner →
SMART STUDY PLANNER SAMPLE INPUT & OUTPUT
06 / Time & Space Complexity

Efficiency & Memory Trade-offs

06 / 08
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)
RUNTIME GROWTH (N TOPICS)
O(2^N) Brute Force O(N × W) DP Table
WHY KEEP 2D SPACE?
Needed to backtrack in O(N) and show the student's actual topic list.
PRACTICAL SPEED
24h max budget (= 48 units) × 15 topics ≈ 720 states → < 1 ms.
SMART STUDY PLANNER TIME & SPACE COMPLEXITY
07 / Future Work

Planned Improvements

07 / 08
01

2D Energy Limit

Track mental fatigue alongside hours (dp[i][w][e]) so difficult topics are balanced sensibly.

2D Knapsack
02

Topic Prerequisites

Enforce chapter dependencies—for example, studying Recursion before Dynamic Programming.

DAG + Tree DP
03

PDF & Calendar Export

Export the generated time-blocked schedule directly to printable PDFs or Google Calendar.

One-Click Export
SMART STUDY PLANNER FUTURE WORK
08 / CONCLUSION 08 / 08

Thank You

Smart Study Planner turns limited exam hours into a clear, optimal study plan.

Open Study Planner →
01 • REAL PROBLEM
Prevents wasted time and random cramming before exams.
02 • BEATS GREEDY
Proves live why 0/1 Knapsack beats Greedy heuristics.
03 • FAST & CLEAR
Runs in O(N × W) with transparent backtracking.
QUESTIONS & DISCUSSION SMART STUDY PLANNER
Press N to hide
1 / 8
Live App ↗
LAPTOP PRESENTER VIEW Slide 1 / 8
06:00 Open Live Demo ↗
—
Slide 1 Keep on Laptop • Drag main window to Projector (Win+P → Extend) + Press F