Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Course scheduling is a practical problem in that multiple courses are scheduled to be offered at different time slots in classrooms. Course scheduling problem could

Course scheduling is a practical problem in that multiple courses are scheduled to be offered at different time slots in classrooms. Course scheduling problem could be generally modeled as a Constraint Satisfaction Problem.

As we discussed in the class, for each course there are two attributes: classroom and time which have the impact to the scheduling. Here is a toy example of the course scheduling problem: there are five courses {A, B, C, D, E}, four time slots {1, 2, 3, 4} and there are two classrooms {I, J} (I stands for Integrated lab classroom, while J stands for Joyful classroom). For each classroom, we could only schedule one course at a time.

Here are some other constraints:

 

Course B must be offered at time slot 1

Course D must be offered at time slot 3 or after

Course A is to be offered at time slot 1 or 2

Course D must be offered before C

Courses A, B, C need to use computer lab, so they would rather be scheduled to classroom I, Course D and E would use classroom J.

 

In this assignment, you are asked to implement solving the course scheduling problem based on the modified arc consistency algorithm.

 

You need to implement the following steps:

1. based on all the constraints, build the constraint graph (with programming, but not manually build the graph)

2. Implement the minimum remaining values (MRV) heuristic, it will be used to order the variables when there is a need to select among many variables for consideration. e.g., you could use it to determine how to choose a variable to assign value in the backtracking-search algorithm, or you may try to manage the arcs in the queue in ARC algorithm, etc.

3. enforce unary constraints, if there are existing unary constraints, we could easily reduce the domain(s) on those related variables.

4. Implement forward-checking on top of the backtracking search, again, you could utilize the sample code provided, but please make sure you have a new function named "forward-checking" to differentiate it from the original backtracking search.

5. arc consistency algorithm, I would suggest you to integrate above features if possible to improve the standard ARC.


Step by Step Solution

3.39 Rating (146 Votes )

There are 3 Steps involved in it

Step: 1

Solving the course scheduling problem using a modified arc consistency algorithm involves several steps Heres a highlevel overview of how you can appr... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

Students also viewed these Programming questions

Question

When do you think a hiring decision will be made?

Answered: 1 week ago

Question

Explain the importance of Human Resource Management

Answered: 1 week ago