Consider there are 4 sections A,B,C,D and there are 10 rooms from 1 to 10
now each section has a timetable consisting of one-hour classes from 9 to 4 Monday to Friday
Develop a program which allocates rooms to sections for each hour in a week, and also no two sections have same rooms allocated for the same hour.
ex- Section A Monday 9 to 10 room 1
Section A Monday 10 to 11 room 5
Constraint failure example:-
Section A Monday 9 to 10 room 1
Section B Monday 9 to 10 room 1
This type of program should detect these type of errors.