query_id
stringlengths 36
36
| fsm_id
stringclasses 640
values | fsm_json
stringclasses 584
values | difficulty_level
int64 1
4
| transition_matrix
stringclasses 581
values | query
stringlengths 187
650
| answer
stringclasses 15
values | substring_index
int64 1
20
| number_of_states
int64 1
10
| number_of_alphabets
int64 1
8
| state_alpha_combo
stringclasses 80
values |
---|---|---|---|---|---|---|---|---|---|---|
6f2344de-a75f-48b1-b8cc-c53837706c1f | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a ?
Let's think step by step | s6 | 1 | 10 | 4 | 10_4 |
28d0b4ad-d6cd-46ec-a3c4-e38767c7cbd2 | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b ?
Let's think step by step | s0 | 2 | 10 | 4 | 10_4 |
8675ceff-f0a6-4334-8a96-f7d0b754c150 | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d ?
Let's think step by step | s7 | 3 | 10 | 4 | 10_4 |
e3ac48f2-017c-4559-b1b5-5b8b9881dfe6 | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a ?
Let's think step by step | s10 | 4 | 10 | 4 | 10_4 |
e37f0d3e-2e1a-493a-9e27-8b8d41ceabfb | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a ?
Let's think step by step | s1 | 5 | 10 | 4 | 10_4 |
75371b4d-994a-4f51-90e1-4542c58b1a45 | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d ?
Let's think step by step | s3 | 6 | 10 | 4 | 10_4 |
f445251c-1a04-4e5b-9891-2d0d70bfeb7f | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d d ?
Let's think step by step | s0 | 7 | 10 | 4 | 10_4 |
12a1cfe0-13ee-4351-a63c-08c35f448ae9 | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d d d ?
Let's think step by step | s7 | 8 | 10 | 4 | 10_4 |
66d49b63-8581-402c-9385-1ab6ae672942 | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d d d d ?
Let's think step by step | s0 | 9 | 10 | 4 | 10_4 |
ec126239-5817-4975-bd44-d4a39f1b5634 | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d d d d a ?
Let's think step by step | s6 | 10 | 10 | 4 | 10_4 |
49332a38-a9bc-4c51-b688-14bfc20d4b43 | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d d d d a c ?
Let's think step by step | s0 | 11 | 10 | 4 | 10_4 |
e4e805cf-c35d-405a-9af1-c2562f9dbbc4 | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d d d d a c d ?
Let's think step by step | s7 | 12 | 10 | 4 | 10_4 |
25e4d341-d79b-4e30-853c-4237639d5a8a | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d d d d a c d a ?
Let's think step by step | s10 | 13 | 10 | 4 | 10_4 |
2b8b7ce5-20e9-4dff-a78a-ffa49fb1b5fc | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d d d d a c d a a ?
Let's think step by step | s1 | 14 | 10 | 4 | 10_4 |
a492feb8-0964-466b-bf66-9efae4ea724e | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d d d d a c d a a d ?
Let's think step by step | s3 | 15 | 10 | 4 | 10_4 |
82061cee-248c-4f8a-9405-6bfddf77fa55 | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d d d d a c d a a d d ?
Let's think step by step | s0 | 16 | 10 | 4 | 10_4 |
9c2f5b51-0550-489d-abe5-73e733b9a525 | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d d d d a c d a a d d c ?
Let's think step by step | s0 | 17 | 10 | 4 | 10_4 |
863ebabf-523d-45c2-b7ec-d8c2ff28bc18 | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d d d d a c d a a d d c d ?
Let's think step by step | s7 | 18 | 10 | 4 | 10_4 |
637086f4-8e13-434c-b039-383171333398 | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d d d d a c d a a d d c d a ?
Let's think step by step | s10 | 19 | 10 | 4 | 10_4 |
d191a348-0862-47bd-b560-844f494493a4 | b0a6547c-da15-4711-8d66-7ece6fb118d3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s4", "s2", "s6", "s9", "s8", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s2","s2":"s10","s3":"s2","s4":"s6","s6":"s4","s7":"s10","s8":"s3","s9":"s6","s10":"s1"},"b":{"s0":"s2","s1":"s6","s2":"s0","s3":"s10","s4":"s6","s6":"s0","s7":"s10","s8":"s4","s9":"s8","s10":"s9"},"c":{"s0":"s0","s1":"s3","s2":"s3","s3":"s0","s4":"s10","s6":"s0","s7":"s8","s8":"s6","s9":"s10","s10":"s9"},"d":{"s0":"s7","s1":"s3","s2":"s6","s3":"s0","s4":"s6","s6":"s7","s7":"s0","s8":"s0","s9":"s4","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s2 s0 s7
s1 s2 s6 s3 s3
s2 s10 s0 s3 s6
s3 s2 s10 s0 s0
s4 s6 s6 s10 s6
s6 s4 s0 s0 s7
s7 s10 s10 s8 s0
s8 s3 s4 s6 s0
s9 s6 s8 s10 s4
s10 s1 s9 s9 s9
With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's9', 's8', 's3'],
What will be the state after reading the following input: a b d a a d d d d a c d a a d d c d a d ?
Let's think step by step | s9 | 20 | 10 | 4 | 10_4 |
959185d7-1888-4317-ba8c-fdb4cb066152 | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a ?
Let's think step by step | s9 | 1 | 10 | 4 | 10_4 |
0864c778-021b-4cb6-bed7-bc2f9d5d5515 | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d ?
Let's think step by step | s8 | 2 | 10 | 4 | 10_4 |
3cad3e96-b07a-4182-a372-32230b1a94f5 | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a ?
Let's think step by step | s7 | 3 | 10 | 4 | 10_4 |
1e3cc884-7b34-4f5c-b544-f6a257f15f13 | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c ?
Let's think step by step | s8 | 4 | 10 | 4 | 10_4 |
e031c143-9adc-4a01-b61b-9606814acc13 | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b ?
Let's think step by step | s7 | 5 | 10 | 4 | 10_4 |
f7d112d4-fe6b-4085-a205-67ed398ee50e | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a ?
Let's think step by step | s0 | 6 | 10 | 4 | 10_4 |
1a03f9fa-1306-4aff-9dd9-d946baf81c5e | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a a ?
Let's think step by step | s9 | 7 | 10 | 4 | 10_4 |
c7dc3c69-e413-4feb-98b9-2900ca2788b1 | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a a b ?
Let's think step by step | s9 | 8 | 10 | 4 | 10_4 |
0d8ab091-31ba-457a-986c-8e5b671bf7ed | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a a b c ?
Let's think step by step | s7 | 9 | 10 | 4 | 10_4 |
c60862f0-5b40-45cc-b1ee-834f0af46adf | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a a b c a ?
Let's think step by step | s0 | 10 | 10 | 4 | 10_4 |
fa342ad8-afa7-4f83-ae83-e98e3709fa02 | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a a b c a d ?
Let's think step by step | s8 | 11 | 10 | 4 | 10_4 |
77c2d808-edcb-4a72-a8ae-f9007bb72678 | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a a b c a d b ?
Let's think step by step | s7 | 12 | 10 | 4 | 10_4 |
6016b185-5488-42ef-828f-0dab4487d36d | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a a b c a d b c ?
Let's think step by step | s8 | 13 | 10 | 4 | 10_4 |
b5f08827-2820-468a-9dc7-a97904e8cc86 | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a a b c a d b c d ?
Let's think step by step | s7 | 14 | 10 | 4 | 10_4 |
994db568-3d95-4f93-9ea4-7538ce5aad6c | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a a b c a d b c d c ?
Let's think step by step | s8 | 15 | 10 | 4 | 10_4 |
54cc4153-5a49-4527-a87d-a5ec90fa865e | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a a b c a d b c d c b ?
Let's think step by step | s7 | 16 | 10 | 4 | 10_4 |
0ece64cd-e739-4fe9-8719-6078544c2d0e | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a a b c a d b c d c b d ?
Let's think step by step | s7 | 17 | 10 | 4 | 10_4 |
8942182a-08fe-495c-9d20-57616668ec5e | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a a b c a d b c d c b d d ?
Let's think step by step | s7 | 18 | 10 | 4 | 10_4 |
effc31b8-4e04-4a6b-801d-ff88779493ef | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a a b c a d b c d c b d d c ?
Let's think step by step | s8 | 19 | 10 | 4 | 10_4 |
a27dcb4e-8806-46b9-b6d2-8eced3304eb2 | fc11c125-db2a-4ca7-b599-cf7753628f6e | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s0", "s5", "s7", "s6", "s4", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s8"]}]} | 3 | {"a":{"s0":"s9","s1":"s1","s2":"s1","s3":"s9","s4":"s6","s5":"s5","s6":"s9","s7":"s0","s8":"s7","s9":"s0"},"b":{"s0":"s6","s1":"s6","s2":"s7","s3":"s3","s4":"s4","s5":"s9","s6":"s3","s7":"s7","s8":"s7","s9":"s9"},"c":{"s0":"s7","s1":"s2","s2":"s2","s3":"s9","s4":"s1","s5":"s9","s6":"s1","s7":"s8","s8":"s0","s9":"s7"},"d":{"s0":"s8","s1":"s7","s2":"s1","s3":"s5","s4":"s1","s5":"s2","s6":"s4","s7":"s7","s8":"s7","s9":"s8"}} | Given the following FSM:
a b c d
s0 s9 s6 s7 s8
s1 s1 s6 s2 s7
s2 s1 s7 s2 s1
s3 s9 s3 s9 s5
s4 s6 s4 s1 s1
s5 s5 s9 s9 s2
s6 s9 s3 s1 s4
s7 s0 s7 s8 s7
s8 s7 s7 s0 s7
s9 s0 s9 s7 s8
With the initial state: s0, and accepting states: ['s0', 's5', 's7', 's6', 's4', 's9'],
What will be the state after reading the following input: a d a c b a a b c a d b c d c b d d c d ?
Let's think step by step | s7 | 20 | 10 | 4 | 10_4 |
e934f436-bd3b-452e-924d-ccbd5aaa1418 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b ?
Let's think step by step | s6 | 1 | 10 | 4 | 10_4 |
0ada3b29-20ad-42b1-b5da-e07d6cc0b7e4 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c ?
Let's think step by step | s1 | 2 | 10 | 4 | 10_4 |
2f97a357-1059-4bd9-8d20-3d72e7e8bdf0 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c ?
Let's think step by step | s4 | 3 | 10 | 4 | 10_4 |
646398de-f874-4af5-a576-921503033990 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d ?
Let's think step by step | s8 | 4 | 10 | 4 | 10_4 |
cbe457bc-495d-45f9-a7f2-25b66fc9197d | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a ?
Let's think step by step | s8 | 5 | 10 | 4 | 10_4 |
27a7222a-fb47-435c-a027-e1e7632ddb1d | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b ?
Let's think step by step | s5 | 6 | 10 | 4 | 10_4 |
09db7ae4-37b8-447a-be66-a807fe0d9a5b | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b a ?
Let's think step by step | s2 | 7 | 10 | 4 | 10_4 |
6d2c9786-faf4-4567-8689-4a07db744104 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b a a ?
Let's think step by step | s6 | 8 | 10 | 4 | 10_4 |
2932e8e3-8ed2-4bab-b89f-4442212a1b72 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b a a b ?
Let's think step by step | s2 | 9 | 10 | 4 | 10_4 |
4589473c-8bef-4fe0-b444-be963791942f | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b a a b d ?
Let's think step by step | s5 | 10 | 10 | 4 | 10_4 |
ff6f0c6a-5b18-4071-a4e7-f5f7fec69591 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b a a b d d ?
Let's think step by step | s5 | 11 | 10 | 4 | 10_4 |
f020facf-ce50-4b77-93f7-f261f1a5bd63 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b a a b d d a ?
Let's think step by step | s2 | 12 | 10 | 4 | 10_4 |
0ece8600-0fab-4a85-bc71-9058c0546534 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b a a b d d a a ?
Let's think step by step | s6 | 13 | 10 | 4 | 10_4 |
40f0c593-7866-4775-8056-7aea0f9fa989 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b a a b d d a a c ?
Let's think step by step | s1 | 14 | 10 | 4 | 10_4 |
a9dbf3fc-88f1-44c9-ab00-99caf478d33f | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b a a b d d a a c c ?
Let's think step by step | s4 | 15 | 10 | 4 | 10_4 |
da990998-0fb4-4734-86bf-be7bd276f363 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b a a b d d a a c c b ?
Let's think step by step | s2 | 16 | 10 | 4 | 10_4 |
9083557d-0fcc-4e55-9b0c-1160558f76e6 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b a a b d d a a c c b b ?
Let's think step by step | s1 | 17 | 10 | 4 | 10_4 |
ee2ebabe-ed78-4f1e-bae1-9b5f0748b003 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b a a b d d a a c c b b d ?
Let's think step by step | s4 | 18 | 10 | 4 | 10_4 |
a51f97a5-5be5-4ef8-9c4a-e5ebea6e9704 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b a a b d d a a c c b b d a ?
Let's think step by step | s5 | 19 | 10 | 4 | 10_4 |
bb963353-d9af-48b8-aff3-c95a1a0f5329 | c3a4f6ef-0075-4c48-9b5c-85966ebcc5cb | {"states": ["s0", "s1", "s2", "s4", "s5", "s6", "s7", "s8", "s9", "s10"], "alphabets": "abcd", "accepting_states": ["s8", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "d", "toStates": ["s9"]}]} | 4 | {"a":{"s0":"s6","s1":"s1","s2":"s6","s4":"s5","s5":"s2","s6":"s0","s7":"s0","s8":"s8","s9":"s7","s10":"s8"},"b":{"s0":"s6","s1":"s9","s2":"s1","s4":"s2","s5":"s1","s6":"s2","s7":"s0","s8":"s5","s9":"s5","s10":"s1"},"c":{"s0":"s7","s1":"s4","s2":"s9","s4":"s4","s5":"s7","s6":"s1","s7":"s5","s8":"s10","s9":"s4","s10":"s6"},"d":{"s0":"s5","s1":"s4","s2":"s5","s4":"s8","s5":"s5","s6":"s9","s7":"s0","s8":"s1","s9":"s9","s10":"s9"}} | Given the following FSM:
a b c d
s0 s6 s6 s7 s5
s1 s1 s9 s4 s4
s2 s6 s1 s9 s5
s4 s5 s2 s4 s8
s5 s2 s1 s7 s5
s6 s0 s2 s1 s9
s7 s0 s0 s5 s0
s8 s8 s5 s10 s1
s9 s7 s5 s4 s9
s10 s8 s1 s6 s9
With the initial state: s0, and accepting states: ['s8', 's5'],
What will be the state after reading the following input: b c c d a b a a b d d a a c c b b d a c ?
Let's think step by step | s7 | 20 | 10 | 4 | 10_4 |
54952783-a23a-432d-a6c8-bdb8fea3f90c | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a ?
Let's think step by step | s4 | 1 | 10 | 4 | 10_4 |
80126c0e-f20c-4749-b397-037289bebf12 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a ?
Let's think step by step | s7 | 2 | 10 | 4 | 10_4 |
e23b3970-da1b-4a69-8c3a-2df4c5b977b7 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c ?
Let's think step by step | s1 | 3 | 10 | 4 | 10_4 |
2a6068e6-fc77-4c74-a877-a239732030ac | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a ?
Let's think step by step | s9 | 4 | 10 | 4 | 10_4 |
49e24d6f-b06b-490f-8452-dbe0291cadbc | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d ?
Let's think step by step | s5 | 5 | 10 | 4 | 10_4 |
38b401e5-6338-4b24-8ad1-b1945ab49804 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b ?
Let's think step by step | s2 | 6 | 10 | 4 | 10_4 |
817c0f52-b371-44d2-aa66-5a60fda01a20 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b c ?
Let's think step by step | s2 | 7 | 10 | 4 | 10_4 |
5bc153eb-7507-426d-88c8-d7868185ed51 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b c a ?
Let's think step by step | s0 | 8 | 10 | 4 | 10_4 |
9a2bfe9b-f4b9-49d9-82a1-07b93f50c070 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b c a a ?
Let's think step by step | s4 | 9 | 10 | 4 | 10_4 |
c742fc7e-abb8-4658-9685-85002d1d2a89 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b c a a c ?
Let's think step by step | s5 | 10 | 10 | 4 | 10_4 |
22028a56-7edd-4c7c-9ade-0eb73a8c0333 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b c a a c a ?
Let's think step by step | s9 | 11 | 10 | 4 | 10_4 |
0ee1d128-a2de-487e-aa2e-cc2adbd5f705 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b c a a c a d ?
Let's think step by step | s5 | 12 | 10 | 4 | 10_4 |
3c81e6a9-fde5-4197-a9fa-007914fb695a | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b c a a c a d a ?
Let's think step by step | s9 | 13 | 10 | 4 | 10_4 |
02a9c133-c16f-4aad-85e5-5604dbd1d085 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b c a a c a d a d ?
Let's think step by step | s5 | 14 | 10 | 4 | 10_4 |
54454456-5a9d-4381-b12d-1261a6c976e7 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b c a a c a d a d c ?
Let's think step by step | s9 | 15 | 10 | 4 | 10_4 |
e5520216-dfd4-4eb8-a5da-8c908c8b25b3 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b c a a c a d a d c b ?
Let's think step by step | s1 | 16 | 10 | 4 | 10_4 |
03191d5b-4c7e-44cc-97e8-bcb2cbd97be8 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b c a a c a d a d c b c ?
Let's think step by step | s5 | 17 | 10 | 4 | 10_4 |
459b457b-fc6b-469c-aeba-16d5b4760bfb | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b c a a c a d a d c b c a ?
Let's think step by step | s9 | 18 | 10 | 4 | 10_4 |
31db3295-84d8-4d31-a036-8134f1e032f3 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b c a a c a d a d c b c a d ?
Let's think step by step | s5 | 19 | 10 | 4 | 10_4 |
cc49b555-49ea-492b-9629-1af033b6d6f6 | 2451dff6-ae1c-42a8-ab71-4484ee48e54c | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s5"]}]} | 3 | {"a":{"s0":"s4","s1":"s9","s2":"s0","s3":"s9","s4":"s7","s5":"s9","s6":"s8","s7":"s5","s8":"s2","s9":"s2"},"b":{"s0":"s8","s1":"s2","s2":"s2","s3":"s4","s4":"s3","s5":"s2","s6":"s5","s7":"s8","s8":"s9","s9":"s1"},"c":{"s0":"s6","s1":"s5","s2":"s2","s3":"s6","s4":"s5","s5":"s9","s6":"s6","s7":"s1","s8":"s3","s9":"s2"},"d":{"s0":"s3","s1":"s6","s2":"s5","s3":"s2","s4":"s6","s5":"s7","s6":"s1","s7":"s1","s8":"s6","s9":"s5"}} | Given the following FSM:
a b c d
s0 s4 s8 s6 s3
s1 s9 s2 s5 s6
s2 s0 s2 s2 s5
s3 s9 s4 s6 s2
s4 s7 s3 s5 s6
s5 s9 s2 s9 s7
s6 s8 s5 s6 s1
s7 s5 s8 s1 s1
s8 s2 s9 s3 s6
s9 s2 s1 s2 s5
With the initial state: s0, and accepting states: ['s6', 's7', 's4'],
What will be the state after reading the following input: a a c a d b c a a c a d a d c b c a d d ?
Let's think step by step | s7 | 20 | 10 | 4 | 10_4 |
21d21ba2-cf1c-415d-805e-9df070236800 | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c ?
Let's think step by step | s9 | 1 | 10 | 4 | 10_4 |
c6deecd5-7dde-48fc-87d1-100ba38e3e92 | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a ?
Let's think step by step | s7 | 2 | 10 | 4 | 10_4 |
29409c63-c70f-4d68-b0d5-4f9852249a2e | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c ?
Let's think step by step | s1 | 3 | 10 | 4 | 10_4 |
f370ccd6-9ca4-413e-8757-1773f2fc34a4 | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a ?
Let's think step by step | s7 | 4 | 10 | 4 | 10_4 |
4152e738-b88f-4e57-a211-b1786cb53b21 | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b ?
Let's think step by step | s0 | 5 | 10 | 4 | 10_4 |
fa282e2f-4d54-495b-bb7a-64de50141153 | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b ?
Let's think step by step | s8 | 6 | 10 | 4 | 10_4 |
fc44924d-34ed-46ff-b264-99a2e2caf943 | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b d ?
Let's think step by step | s2 | 7 | 10 | 4 | 10_4 |
6d8b78d7-03f1-4149-8d48-a12b4ec5e98a | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b d a ?
Let's think step by step | s5 | 8 | 10 | 4 | 10_4 |
ee65b40f-f264-4f9b-a80b-3b2f6174edfa | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b d a b ?
Let's think step by step | s4 | 9 | 10 | 4 | 10_4 |
b162119c-bb86-4428-86ac-b90d582adc42 | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b d a b d ?
Let's think step by step | s2 | 10 | 10 | 4 | 10_4 |
b9fb81be-62d6-4b38-a388-2a8a5f9105d2 | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b d a b d d ?
Let's think step by step | s7 | 11 | 10 | 4 | 10_4 |
4d251488-131d-4155-9699-75c01f088c57 | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b d a b d d b ?
Let's think step by step | s0 | 12 | 10 | 4 | 10_4 |
3fb2a64f-06b4-47c4-a77e-bd0c37d50c8d | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b d a b d d b d ?
Let's think step by step | s6 | 13 | 10 | 4 | 10_4 |
67559444-57ed-4f7c-9c9e-87e5c98a7dc2 | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b d a b d d b d d ?
Let's think step by step | s2 | 14 | 10 | 4 | 10_4 |
458fa279-d480-44d5-8e26-d23476199759 | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b d a b d d b d d b ?
Let's think step by step | s3 | 15 | 10 | 4 | 10_4 |
4d5991b5-ed83-4690-bf48-80f43947566f | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b d a b d d b d d b c ?
Let's think step by step | s6 | 16 | 10 | 4 | 10_4 |
261313d1-83cf-4475-8e5c-323de88f3f97 | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b d a b d d b d d b c b ?
Let's think step by step | s4 | 17 | 10 | 4 | 10_4 |
498c01f0-25d0-445f-81e3-9b034b809028 | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b d a b d d b d d b c b c ?
Let's think step by step | s5 | 18 | 10 | 4 | 10_4 |
dbdab5df-dbcc-4853-a7bc-6f3bb3238f13 | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b d a b d d b d d b c b c c ?
Let's think step by step | s3 | 19 | 10 | 4 | 10_4 |
938a80c3-ed9f-4f16-8181-fd6054caaacf | b6345c0a-4748-47ea-8a0f-ee08c0764071 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abcd", "accepting_states": ["s7", "s6", "s4", "s5", "s2", "s1", "s9", "s3", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s9", "symbol": "d", "toStates": ["s4"]}]} | 3 | {"a":{"s0":"s2","s1":"s7","s2":"s5","s3":"s1","s4":"s1","s5":"s5","s6":"s7","s7":"s2","s8":"s5","s9":"s7"},"b":{"s0":"s8","s1":"s9","s2":"s3","s3":"s7","s4":"s7","s5":"s4","s6":"s4","s7":"s0","s8":"s7","s9":"s8"},"c":{"s0":"s9","s1":"s2","s2":"s9","s3":"s6","s4":"s5","s5":"s3","s6":"s2","s7":"s1","s8":"s4","s9":"s0"},"d":{"s0":"s6","s1":"s7","s2":"s7","s3":"s2","s4":"s2","s5":"s1","s6":"s2","s7":"s7","s8":"s2","s9":"s4"}} | Given the following FSM:
a b c d
s0 s2 s8 s9 s6
s1 s7 s9 s2 s7
s2 s5 s3 s9 s7
s3 s1 s7 s6 s2
s4 s1 s7 s5 s2
s5 s5 s4 s3 s1
s6 s7 s4 s2 s2
s7 s2 s0 s1 s7
s8 s5 s7 s4 s2
s9 s7 s8 s0 s4
With the initial state: s0, and accepting states: ['s7', 's6', 's4', 's5', 's2', 's1', 's9', 's3', 's0'],
What will be the state after reading the following input: c a c a b b d a b d d b d d b c b c c c ?
Let's think step by step | s6 | 20 | 10 | 4 | 10_4 |