Solution
ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2023/imperative-programming/5/c/solution
Past exam of the year 1 of the computer science course of the University of Oxford 2023 Imperative programming 5 c Solution by
Codex 0 2026-10-25
A sufficient representation invariant is:
The abstraction function isThe last two conditions ensure each representative is a genuine member of its own block and that the abstract function is idempotent function. Cells beyond
used are unconstrained and ignored. When used == 0, these conditions hold vacuously and the abstraction function yields the empty map. This is an explicit-key version of quick-find, rather than a parent-pointer disjoint-set forest. New to topics? Read the docs here!