Question: course scheduling features to help new CS students schedule their courses. The new cohort of CS students bring their class offerings and the available time
course scheduling features to help new CS students schedule their courses. The new
cohort of CS students bring their class offerings and the available time slots where gray
represents reserved.
Course Lecture Time LabPractical Time
CS Sun Tue Thu MON WED
CS Sun Tue Thu MON WED
CS Sun Tue Thu None
CS Everyday None
Time SUN TUE THU MON WED
You also include the following set of constraints:
Each class must be assigned to exactly one timeslot
Each timeslot can be assigned to a maximum of one class
No classes can be scheduled during the reserved timeslots
The Mon Wed selection for CS must occur at the same time as the Sun Tue Thu
selection.
Use the following abbreviations to facilitate writing your solution
CS Lecture L
CS Lecture L
CS Lecture L
CS Lab P
CS Lecture L
CS Lab P
Sun Tue Thu S
Sun Tue Thu S
Mon Wed M
Mon Wed M
and so on
A Which of the following options is preferred to represent this as a CSP Explain your answer:
using meeting times as variables and courses as the values of in the domains?
using courses as variables and the time slots as values?
B Now using courses are variables and times as values, list the variable and the initial domain
values. L is done for you
Variable Domain
LS S S S S S
C Update the table by removing the values that are incompatible with the constraint#
D Simulate DFS with forward checking only on your variables and the reduced domains in part
C above. Show your steps. How many times did you backtrack?
E Write a python program so solve this CSP using forwardchecking. The program should output
a schedule of the courses that doesnt violate any of the constraints.
Create a PDF file that includes answers to questions in parts A B C D
Write a python program to solve this CSP as instructed in part E
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
