Professional Documents
Culture Documents
Suppose you are organising a mathematics conference. You have several people setting
up special sessions in their area of expertise. You are trying to find a way to schedule the
sessions so that if there are overlapping interests, you can make sure the sessions happen
at different times. To that end, you have asked each session organiser to tell you what
broad fields of mathematics their topic concerns. You have the following list:
You would like to schedule the shortest conference possible, using as few time slots as
possible so you do not have to pay for the rooms for too long. Now answer these questions.
1. Define the variables and their domains for this scheduling problem.
3. Determine the smallest number of time slots you could use to accommodate every
session, where no two topics run at the same time if they have overlapping interests.
Solution
1. Variables and domains
Choosing variables and domains in CSP problems can be somewhat tricky. You have to
consider the goal you are working towards. However, the best place to start is normally
to regard the limited resource as the starting point for the domains (and thus the thing
needing the resource as the variables). Another way of thinking about this is to say the
items we are contending for would be the domains, the items that would like to make use
of them (contend for them) would be the variables.
In the given problem, time slots are limited: the sessions are contending for their use –
so we regard the time slots as the domain. Therefore the variables are the seven sessions.
- Let X be the set of variables. X = {PC, AC, EC, RT, MC, BM, OT}.
1
2. Constraint graph
The nodes of the graph represent the variables, thus the conference sessions. The con-
straints of the graph represent the conflicts of interest about the different topics. So we
draw an edge between two sessions if they have a conflicting area of interest, as shown in
the graph in Figure 1.
• PC = T1 , (blue)
• RT = OT = T2 , (yellow)
• MC = AC = T3 , (red)
• EC = BM = T4 , (green).
Note that the order of assigning time slots to the sessions does not really matter as long
as sessions with different colours are held at different times.
2
Figure 2: A colouring of the constraint graph for the scheduling problem