You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DFA accepts 2 alphabets a and b but in the transition map for state A, it only indicates where to go when we encounter the symbol a but not for b. This should not be the case for dfa. Even in the 2nd state B, it's gonna transition to null state for symbol a, which is also a violation for DFA. Every state must have an array of state strings that have an equal length as that of the alphabets to ensure we cover all cases. An error should be thrown in this regard
The text was updated successfully, but these errors were encountered:
The DFA accepts 2 alphabets
a
andb
but in the transition map for stateA
, it only indicates where to go when we encounter the symbola
but not forb
. This should not be the case for dfa. Even in the 2nd stateB
, it's gonna transition to null state for symbola
, which is also a violation for DFA. Every state must have an array of state strings that have an equal length as that of the alphabets to ensure we cover all cases. An error should be thrown in this regardThe text was updated successfully, but these errors were encountered: