Graph Theory37 sections · 1633 units
Open in Course

Practice Problem 3

(Time slot assignment)

You have n events. Each event can be in slot 11 or slot 22. Some pairs conflict in slot 11, others conflict in slot 22, some conflict in both slots. Model: x_i is true if event i is in slot 11. Conflicts give you clauses based on which slots they conflict in.

Implement 22-SAT to find a valid schedule or report impossible. This is a practical scheduling application. Test with different conflict patterns to understand the algorithm's behavior and when solutions exist.