I have 2 DFA's, the transitions of which look as follows:
DFA1
{('q0', 'a'): 'q1', ...}
DFA2
{('q0', 'a'): 'q3',...}
As I understand, the delta of the unified DFA is supposed to look something like this:
{(('q0', 'a'): 'q1'), (('q0', 'a'): 'q3')),...and so on}
How can I merge these 2 dictionaries to create the tuples for the unified delta dictionary?
if I do DFA2.update(DFA1)
, the result is {('q0', 'a'): 'q1'}
. Why doesn't this work and how do I make it work?