Module 0368: Tracking changes of a circuit

In pseudocode, the logic can be summarized as follows:

Mechanically, this can be done by using a spreadsheet or any table.