query_id
stringlengths 36
36
| fsm_id
stringclasses 325
values | fsm_json
stringclasses 276
values | difficulty_level
int64 1
3
| transition_matrix
stringclasses 268
values | query
stringlengths 146
431
| answer
stringclasses 13
values | substring_index
int64 1
29
|
---|---|---|---|---|---|---|---|
1481f3a8-4813-4e75-90d2-e615bd90aa99 | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadg? | s0 | 5 |
36235d1b-0eac-4cf5-959e-4174600c7788 | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgc? | s1 | 6 |
2eecda69-5ed2-4065-86d6-83e006576a9d | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcf? | s1 | 7 |
332aeabf-0731-4c75-9a13-d3c0907ea581 | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcff? | s1 | 8 |
0bed961a-cec3-45ef-a9be-222a13432709 | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffi? | s0 | 9 |
d56512ef-67df-4452-a1bb-89dfff9452df | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffih? | s3 | 10 |
239fd977-ea7d-4a0a-9aa5-d16e69450233 | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihf? | s3 | 11 |
8090e3d1-6f5e-4a82-81a0-1aaacfe9313d | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihfi? | s1 | 12 |
8787088e-743e-42cb-bb7e-215f559ecb6b | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihfic? | s1 | 13 |
f02e5143-c7aa-4ec5-b444-64e401d60ab3 | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficc? | s1 | 14 |
72a6c99b-4e8d-4911-85d6-1995fa565a7d | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcb? | s4 | 15 |
c8dba2d1-af61-4f92-9426-956ee00bf820 | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcba? | s4 | 16 |
5c33757a-ae30-4bf0-b1a9-67c522e5d0c0 | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcbad? | s1 | 17 |
3ccfa366-cc89-4b32-9536-b1b0106cbdeb | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcbada? | s3 | 18 |
56293038-9fb8-4623-a637-29612e4ee0a8 | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcbadae? | s2 | 19 |
d8e982f5-4bd7-4787-a70d-93d931db950d | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcbadaeg? | s0 | 20 |
a19a2993-c3a3-45f6-81da-5f6d18f4dfbd | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcbadaega? | s4 | 21 |
42bc2c09-0666-4fb9-adc7-86bc23cb12f8 | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcbadaegai? | s0 | 22 |
127c164c-3a35-4f73-97cb-62fffed7631c | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcbadaegaib? | s2 | 23 |
2c5eab40-2666-4a72-887a-2c9a1894aac4 | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcbadaegaibb? | s0 | 24 |
49676b17-7175-4227-9ede-f4a709131bec | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcbadaegaibbd? | s4 | 25 |
edeba966-33d4-4698-8dc9-9323f9a3244d | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcbadaegaibbdi? | s0 | 26 |
5dccbc14-457b-46ad-94f8-183e7f887274 | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcbadaegaibbdih? | s3 | 27 |
8ff1800e-c7d8-4eed-838a-68ab21c9c6d8 | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcbadaegaibbdiha? | s2 | 28 |
554031c4-8cff-467c-8a11-9086f8b8aa32 | d9dfd8de-d75b-461c-8f4d-6804e5779d40 | {"states": ["s0", "s1", "s2", "s3", "s4"], "alphabets": "abcdefghi", "accepting_states": ["s1", "s2", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "i", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "i", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "i", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "i", "toStates": ["s0"]}]} | 3 | {"a":{"s0":"s4","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"b":{"s0":"s2","s1":"s4","s2":"s0","s3":"s1","s4":"s0"},"c":{"s0":"s1","s1":"s1","s2":"s2","s3":"s2","s4":"s1"},"d":{"s0":"s4","s1":"s4","s2":"s0","s3":"s0","s4":"s1"},"e":{"s0":"s1","s1":"s3","s2":"s4","s3":"s2","s4":"s4"},"f":{"s0":"s4","s1":"s1","s2":"s4","s3":"s3","s4":"s0"},"g":{"s0":"s2","s1":"s0","s2":"s0","s3":"s2","s4":"s3"},"h":{"s0":"s3","s1":"s0","s2":"s4","s3":"s1","s4":"s3"},"i":{"s0":"s2","s1":"s0","s2":"s2","s3":"s1","s4":"s0"}} | Given the following FSM:
a b c d e f g h i
s0 s4 s2 s1 s4 s1 s4 s2 s3 s2
s1 s3 s4 s1 s4 s3 s1 s0 s0 s0
s2 s4 s0 s2 s0 s4 s4 s0 s4 s2
s3 s2 s1 s2 s0 s2 s3 s2 s1 s1
s4 s4 s0 s1 s1 s4 s0 s3 s3 s0
Initial state: s0, and Accepting states: s1, s2, s4
What will be the state after reading the following input: ihadgcffihficcbadaegaibbdihai? | s2 | 29 |