Kernel: Python 3
automaton.delay_automaton
Create a new transducer, equivalent to the first one, with the states labeled with the delay of the state, i.e. the difference of input length on each tape.
Preconditions:
The input automaton is a transducer.
Input.has_bounded_lag
Caveat:
If the input does not have bounded lag, the construct will not terminate
See also:
Examples
In [1]:
In [2]:
In [3]:
The lag is bounded, because every cycle (here, the loop) produces a delay of 0.
In [4]:
State 1 has a delay of because the first tape is 3 characters longer than the shortest tape (the second one) for all possible inputs leading to this state.
In [5]:
In [6]:
Here, state 1 is split in two, because for one input the delay is , and for the other the delay is .