Skip to content
Tactiverge

Olympiad · Practice · public practice problem

No state left behind: an automatic door

Difficulty 3 of 510 points in 4 partsSuggested time ~18 min (never timed here)

The problem

An automatic door controller has four states, CLOSED, OPENING, OPEN, CLOSING, and four events: person (sensor sees someone), fullyOpen, timer (open time expired) and fullyClosed. The draft design lists six transitions: CLOSED+person→OPENING, OPENING+fullyOpen→OPEN, OPEN+timer→CLOSING, CLOSING+fullyClosed→CLOSED, CLOSING+person→OPENING, OPEN+person→OPEN (restart timer).

  1. Part (a) · 2 points

    How many state–event pairs must a complete design say something about?

    (pure number)Tolerance: exact

  2. Part (b) · 2 points

    How many pairs does the draft leave unspecified?

    (pure number)Tolerance: exact

  3. Part (c) · 2 points

    Which unspecified pair is the most safety-critical to decide?

  4. Part (d) · 4 points · rubric with 3 criteria

    Decide OPENING + person and CLOSED + timer, and explain how you would write a test set that proves the table is complete.

    Written parts stay in your browser. Reveal the worked solution to mark yourself against the rubric.

Checked so far: 0 of 6 automatically marked points, plus 4 for written parts you mark yourself against the rubric. Nothing is saved.

Stuck? Hints, then the worked solution

Written with AI assistance. Review status: technically-checked (answers recomputed independently with units verified by automated tests); not yet reviewed by an educator or judge.