PEI Math 521A study materials
PEI Math 521A study resources

A Scheduling Problem with Conflicting Constraints

PEI Math 521A · Put your knowledge to work in context.

All case studies

A Scheduling Problem with Conflicting Constraints

A school must schedule five club meetings-Art (A), Band (B), Chess (C), Drama (D), and Environment (E)-into three time slots: morning, midday, and afternoon. Constraints: A and B cannot share a slot because they share a room. C must be in an earlier slot than D. E must be in a later slot than B. Each slot can hold at most two clubs. A student proposes the schedule: Morning {A, C}, Midday {B, E}, Afternoon {D}. The student claims this satisfies every constraint. A second student says the schedule violates a constraint and that no valid schedule exists with E and B together. The teacher asks the class to check the schedule against all constraints, determine whether a valid schedule exists, and identify how many distinct valid schedules exist if order of clubs within a slot does not matter.

1. Check the proposed schedule against each constraint and determine whether it is valid.

Read the worked answer

Check each constraint in turn. (1) A and B cannot share a slot: A is morning, B is midday-satisfied. (2) C earlier than D: C is morning, D is afternoon-satisfied. (3) E later than B: B is midday, E is midday-violated, because E must be strictly later than B. (4) At most two per slot: morning has 2, midday has 2, afternoon has 1-satisfied. The schedule fails constraint (3). The second student is right that E and B cannot share a slot, but wrong that no valid schedule exists. To fix it, move E to the afternoon: Morning {A, C}, Midday {B}, Afternoon {D, E}. Recheck: A/B separate; C before D (morning before afternoon); E after B (afternoon after midday); capacities 2, 1, 2-all satisfied. So a valid schedule exists and the proposed one simply needs E shifted later.

2. Determine the number of distinct valid schedules, treating the order of clubs within a slot as irrelevant.

Read the worked answer

Use the strict ordering constraints to fix relative positions. We need C before D and B before E. Slots are ordered morning < midday < afternoon. Enumerate by placing the constrained pairs. Because each slot holds at most two clubs and all five clubs must be placed, the slot sizes must sum to 5 with each at most 2, so the size pattern is (2, 2, 1) in some order. Consider possible placements. E must be strictly after B, and D strictly after C. Let us count assignments of each club to a slot in {1, 2, 3} (morning = 1) satisfying: B < E, C < D, and slot counts ≤ 2. Enumerate systematically. For B < E: possible (B, E) slot pairs are (1,2), (1,3), (2,3). For C < D: (1,2), (1,3), (2,3). We must also keep counts ≤ 2. Case (B, E) = (1, 2): then slot 1 has B, slot 2 has E. C < D with C, D not exceeding capacity: slot 1 can take at most one more (A or C), slot 2 at most one more. Try C = 1, D = 2: slot 1 = {B, C}, slot 2 = {E, D}, slot 3 = {A}. Valid. C = 1, D = 3: slot 1 = {B, C}, slot 3 = {D, A} (A anywhere). A can be in slot 2 or 3: two options. C = 2, D = 3: slot 2 = {E, C}, slot 3 = {D}, A in slot 1 or 3: two options. C = 3 impossible since D > C. Total for this case: 1 + 2 + 2 = 5. Case (B, E) = (1, 3): slot 1 = {B}, slot 3 = {E}. C < D: C = 1, D = 2: slot 1 {B, C}, slot 2 {D}, A in slot 2 or 3: 2. C = 1, D = 3: slot 3 would have {E, D}, slot 1 {B, C}, A in slot 2: 1. C = 2, D = 3: slot 3 {E, D}, slot 2 {C}, A in slot 1 or 2: 2. Total: 5. Case (B, E) = (2, 3): slot 2 {B}, slot 3 {E}. C < D: C = 1, D = 2: slot 2 {B, D}, slot 1 {C}, A in slot 1 or 3: 2. C = 1, D = 3: slot 3 {E, D}, slot 1 {C}, A in slot 1 or 2: 2. C = 2 impossible (slot 2 has B, capacity would allow C but then D must be 3, slot 3 has E, so {E, D} fine-actually C = 2, D = 3: slot 2 {B, C}, slot 3 {E, D}, A in slot 1: 1). Total: 5. Grand total: 15 distinct valid schedules.