Question: 1 . ( 2 . 5 % ) Consider the problem of placing k knights on an n n chess board such that no two
Consider the problem of placing k knights on an nn chess board such that no two knights are attacking each other, where k is given and k n
Choose a CSP formulation. What are the variables in your formulation?
What are the possible values of each variable in your formulation?
What sets of variables are constrained, and how?
At CSUSB, we have vehicles to take transfer students to a trip to the campus: A B C D and E and two stops: CGI building and JB Hall. Our job would be to schedule a time slot and a stop for each vehicle to either arrive at or leave the stop. The department gave us four possible time slots: for each stop, during which we can schedule a vehicle to arrive or leave.
Constraints:
Vehicle B has lost its battery and must arrive in time slot
Vehicle D can only arrive or leave during or after time slot
Vehicle A is running low on fuel but can last until at most time slot
Vehicle D must arrive before Vehicle C leaves, because some students must transfer from D to C
Vehicles A B and C cater to students from CGI and can only use the CGI stop.
Vehicles D and E cater to students from JB Hall and can only use the JB Hall stop.
No two vehicles can reserve the same time slot for the same stop.
Formulate this problem as a CSP where there is one variable per vehicle, reporting the domains and constraints eg the time slots are and stop are CGI JB Hall Also, list binary constraints on the classes. Your constraints should be specified formally, which should be implicit rather than explicit with words.
Draw the constraint graph for your problem in item
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
