Question: Consider a scheduling problem, where there are five activities to be scheduled in four time slots. Suppose we represent the activities by the variables ,
Consider a scheduling problem, where there are five activities to be scheduled in four time slots. Suppose we represent the activities by the variables
and
where the domain of each variable is
and the constraints are
and
Before you start this, try to find the legal schedules using your own intuitions.
a Show how backtracking solves this problem. To do this, you should draw the search tree generated to find all answers. Indicate clearly the valid schedules Make sure you choose a reasonable variable ordering.
To indicate the search tree, write it in text form with each branch on one line. For example, suppose we had variables
and
with domains
and constraints
and
The corresponding search tree is written as
Xt Yt failure
Yf Zt solution
Zf failure
Xf Yt Zt failure
Zf solution
Yf failure
Hint: It may be easier to write a program to generate such a tree for a particular problem than to do it by hand.
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
