State transition table (source code)

= State transition table

A table specifying the next state for each present state and input combination, together with the output if needed. For a <Moore machine>, output depends only on the state; for a <Mealy machine>, it may also depend on the current input. A <state-transition diagram> gives the same transitions as labelled <directed edges>.