Skip to content
Discussion options

You must be logged in to vote

The weekly plan is built using a greedy packing algorithm in roadmap.service.ts. Here is exactly how it works:

How topics are packed into weeks
Each topic has an estimatedHours value set by the AI. The algorithm iterates through topics in order and keeps adding them to the current week until the total hours in that week would exceed hoursPerWeek. When adding the next topic would overflow, a new week starts.

Target end date calculation
Once all topics are packed, the algorithm knows how many weeks are needed. It multiplies that by 7 days and adds it to the enrollment start date (today) to produce the targetEndDate.

What recompute pace does
When you call recompute pace with a new hoursPerWe…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Sachinchaurasiya360
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant