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 Lab/Practical Time
CS303 Sun Tue Thu 11,12 MON WED 10,11,12,1
CS600 Sun Tue Thu 12,1 MON WED 11,1,2
CS101 Sun Tue Thu 10,11,12,1,2,3 None
CS202 Everyday 10,11 None
Time SUN TUE THU MON WED
10
11
12
1
2
3
You also include the following set of constraints:
(1) Each class must be assigned to exactly one timeslot
(2) Each timeslot can be assigned to a maximum of one class
(3) No classes can be scheduled during the reserved timeslots
(4) The Mon Wed selection for CS202 must occur at the same time as the Sun Tue Thu
selection.
Use the following abbreviations to facilitate writing your solution
CS101 Lecture -> L1
CS202 Lecture -> L2
CS303 Lecture -> L3
CS303 Lab -> P3
CS600 Lecture -> L6
CS600 Lab -> P6
Sun Tue Thu 10->10S
Sun Tue Thu 11->11S
Mon Wed 10->10M
Mon Wed 11->11M
and so on
A. Which of the following options is preferred to represent this as a CSP? Explain your answer:
1. using meeting times as variables and courses as the values of in the domains?
2. 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. L1 is done for you
Variable Domain
L110S 11S 12S 1S 2S 3S
C. Update the table by removing the values that are incompatible with the constraint#3.
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 forward-checking. The program should output
a schedule of the 4 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!