Question: You are tasked with designing a timetable for a university's final exams. The university has three exam slots ( morning , afternoon, evening ) and
You are tasked with designing a timetable for a university's final exams. The university has three exam slots morning afternoon, evening and four courses Math Physics, Chemistry, Computer Science The constraints are as follows:
No student should have two exams at the same time.
Math and Physics should not be scheduled consecutively.
Computer Science must be scheduled in the morning slot.
Formulate this problem as a CSP Define the variables, domains, and constraints clearly.
Use the backtracking algorithm with constraint propagation eg forward checking to solve this problem. Provide a stepbystep trace of how the algorithm would assign slots to the courses.
Suppose there is an additional requirement to minimize the number of students who have more than one exam on the same day. Describe how you would modify the CSP to handle this optimization criterion.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
