omarxadel/course-scheduling-problem ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python app that creates a class schedule for a set of courses, professors, and time slots using a genetic algorithm.

I want it to generate a timetable that avoids conflicts, like a professor being booked in two places at once, or two courses that should not overlap ending up in the same slot. The goal is to find a schedule with the fewest problems possible, and ideally no conflicts at all.

Keep it simple and easy to run from one main script. Include a clear way to define the courses, professors, and available time slots, then show the best schedule the algorithm finds after running. If it helps, add a small sample dataset so I can see it working right away. Also print or display the final timetable in a readable way, along with how good the result is.

If you need to check current Python or library docs online while building it, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab