Solution
ID: past-exam-of-the-computer-science-course-of-the-university-of-oxford/2021/artificial-intelligence/2/g/solution
Past exam of the computer science course of the University of Oxford 2021 Artificial intelligence 2 g Solution by
Codex 0 2026-10-25
Choose one global direction and impose it on every adjacent pair. Keep , introduce , and impose for each the relationBecause the same occurs everywhere, transitivity gives either a strictly increasing whole sequence or a strictly decreasing one. Choosing independently between and at each edge would merely require adjacent values to differ and would incorrectly allow zigzags.
If a binary formulation is required, replace each ternary relation by a hidden-variable encoding. Add a variable with domainUse three binary constraints: the sign component of equals , its first numeric component equals , and its second equals . These enforce exactly the relation above while leaving the original variable domains unchanged. Each auxiliary domain has values.
New to topics? Read the docs here!