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
178
1.53k
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
transition_matrix_triplets
stringclasses
581 values
b80b7126-8528-4a4a-97f9-a983df8783ac
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f
s4
1
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
62a6c552-fed7-4de6-98a9-4fa50122078c
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a
s0
2
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
f27025eb-0e70-4cc0-851d-575caa3e15d2
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d
s3
3
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
66b7af41-7c41-41bc-a2d5-de548577fb88
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b
s0
4
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
fd4d5536-5e49-4c8d-b404-68fe3f46d6e2
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b
s5
5
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
0c8cb9f1-2dea-4f2b-ad85-39868d8427c2
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e
s2
6
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
c65736c3-87d4-4f04-abe4-dd66c421cb07
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e f
s6
7
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
72c4f433-82b2-4934-a481-41f68d275beb
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e f e
s6
8
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
de11e856-b982-454e-81ed-eafa30a33300
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e f e f
s0
9
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
ec8abf83-7710-4403-aafd-4b8fef2ff4fc
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e f e f e
s5
10
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
7b96622d-4def-442b-b103-03ed565666a4
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e f e f e f
s0
11
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
14663d7e-7708-47e9-8d01-97941c375e0f
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e f e f e f c
s4
12
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
de614ec9-5042-48be-a716-7ac481900948
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e f e f e f c b
s5
13
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
f44a7c97-5159-49d7-b7d0-cb957c6eb94a
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e f e f e f c b c
s0
14
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
851c2b71-f0a9-42a9-8bc9-21e59db7e2c7
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e f e f e f c b c f
s4
15
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
e6910938-9d2e-4834-8216-bb37ed35d461
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e f e f e f c b c f c
s4
16
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
19430ea2-2250-4e13-81cd-2c22c780e55c
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e f e f e f c b c f c e
s6
17
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
aec2f1fe-2cb2-439d-a53e-1778c67bd701
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e f e f e f c b c f c e a
s1
18
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
91b6dd80-50a4-40fe-a9f5-a17e00a04f48
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e f e f e f c b c f c e a e
s4
19
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
f53a8bca-156f-4262-b60a-12d75c18d2e4
6fd5033b-9a2d-446d-af55-d8b8ef226a61
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s1", "s2", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s7"]}]}
4
{"a":{"s0":"s6","s1":"s0","s2":"s3","s3":"s4","s4":"s0","s5":"s6","s6":"s1","s7":"s8","s8":"s2"},"b":{"s0":"s5","s1":"s0","s2":"s1","s3":"s0","s4":"s5","s5":"s6","s6":"s3","s7":"s6","s8":"s2"},"c":{"s0":"s4","s1":"s7","s2":"s6","s3":"s7","s4":"s4","s5":"s0","s6":"s8","s7":"s7","s8":"s6"},"d":{"s0":"s3","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s7","s6":"s5","s7":"s4","s8":"s8"},"e":{"s0":"s5","s1":"s4","s2":"s3","s3":"s2","s4":"s6","s5":"s2","s6":"s6","s7":"s0","s8":"s3"},"f":{"s0":"s4","s1":"s2","s2":"s6","s3":"s8","s4":"s0","s5":"s0","s6":"s0","s7":"s8","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 ) With the initial state: s0, and accepting states: ['s1', 's2', 's8'], What will be the state after reading the following input: f a d b b e f e f e f c b c f c e a e d
s4
20
9
6
9_6
( s0 , a , s6 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s4 ) ( s4 , a , s0 ) ( s5 , a , s6 ) ( s6 , a , s1 ) ( s7 , a , s8 ) ( s8 , a , s2 ) ( s0 , b , s5 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s0 ) ( s4 , b , s5 ) ( s5 , b , s6 ) ( s6 , b , s3 ) ( s7 , b , s6 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s7 ) ( s2 , c , s6 ) ( s3 , c , s7 ) ( s4 , c , s4 ) ( s5 , c , s0 ) ( s6 , c , s8 ) ( s7 , c , s7 ) ( s8 , c , s6 ) ( s0 , d , s3 ) ( s1 , d , s4 ) ( s2 , d , s7 ) ( s3 , d , s6 ) ( s4 , d , s4 ) ( s5 , d , s7 ) ( s6 , d , s5 ) ( s7 , d , s4 ) ( s8 , d , s8 ) ( s0 , e , s5 ) ( s1 , e , s4 ) ( s2 , e , s3 ) ( s3 , e , s2 ) ( s4 , e , s6 ) ( s5 , e , s2 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s3 ) ( s0 , f , s4 ) ( s1 , f , s2 ) ( s2 , f , s6 ) ( s3 , f , s8 ) ( s4 , f , s0 ) ( s5 , f , s0 ) ( s6 , f , s0 ) ( s7 , f , s8 ) ( s8 , f , s7 )
4ea0c753-bced-4a41-ad35-87b021dadfa4
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b
s7
1
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
2cd1fe71-2ba1-4b6e-a67b-fc07d45a7fb2
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e
s0
2
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
714c91b2-5c52-4c47-a1c7-e38958e987dd
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c
s2
3
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
67d53ae7-96f9-4d63-be3a-60d645daea64
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e
s1
4
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
dcda1275-3d28-4cc9-a6d3-87bf87a0343f
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b
s3
5
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
86386e9c-eee2-411f-ab8f-09eb2815d124
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e
s0
6
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
c16a95e2-8895-4f25-9e93-d427dcf8c2cd
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e c
s2
7
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
8e3c9c04-294b-473a-8ccd-e7e2e3273ca9
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e c d
s3
8
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
28353387-fa00-4f7d-b692-64f373331f58
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e c d a
s0
9
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
c7349fbc-469a-4bc1-91fc-833a4b58290d
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e c d a e
s6
10
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
32c6da2f-913b-4b7c-b9e0-c40bac580004
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e c d a e f
s7
11
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
b9c80e88-7fab-4999-ad97-de9e01233c07
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e c d a e f f
s5
12
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
d949c866-df28-484f-b296-bccb9a93647d
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e c d a e f f c
s4
13
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
f8d7b095-1c82-42f5-9dd8-36f7bce1eff8
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e c d a e f f c e
s5
14
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
7debe34d-4b59-4868-9bdd-c5e85c91b04a
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e c d a e f f c e c
s4
15
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
0480d166-cb15-4159-bdca-9c3c627cff82
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e c d a e f f c e c e
s5
16
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
0e2464bd-6a08-4566-9ee4-e2ceb7597c7b
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e c d a e f f c e c e c
s4
17
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
a23a412a-c1e8-49fb-9d4d-8ce6dafb4fcc
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e c d a e f f c e c e c e
s5
18
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
e0188d3f-ca0e-4382-94ff-937dab417c82
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e c d a e f f c e c e c e d
s2
19
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
de67001d-01e0-402a-9fb2-0813acef4612
e312de7a-1a55-413c-bb84-082539fbd9c2
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdef", "accepting_states": ["s4", "s2", "s6", "s8", "s0", "s7"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s6"]}]}
4
{"a":{"s0":"s4","s1":"s2","s2":"s4","s3":"s0","s4":"s1","s5":"s3","s6":"s5","s7":"s3","s8":"s1"},"b":{"s0":"s7","s1":"s3","s2":"s4","s3":"s6","s4":"s6","s5":"s1","s6":"s7","s7":"s5","s8":"s0"},"c":{"s0":"s2","s1":"s2","s2":"s1","s3":"s5","s4":"s1","s5":"s4","s6":"s2","s7":"s7","s8":"s2"},"d":{"s0":"s8","s1":"s8","s2":"s3","s3":"s8","s4":"s1","s5":"s2","s6":"s7","s7":"s2","s8":"s6"},"e":{"s0":"s6","s1":"s5","s2":"s1","s3":"s0","s4":"s5","s5":"s5","s6":"s2","s7":"s0","s8":"s5"},"f":{"s0":"s0","s1":"s5","s2":"s3","s3":"s7","s4":"s4","s5":"s6","s6":"s7","s7":"s5","s8":"s6"}}
Given the following FSM transition rules: ( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 ) With the initial state: s0, and accepting states: ['s4', 's2', 's6', 's8', 's0', 's7'], What will be the state after reading the following input: b e c e b e c d a e f f c e c e c e d d
s3
20
9
6
9_6
( s0 , a , s4 ) ( s1 , a , s2 ) ( s2 , a , s4 ) ( s3 , a , s0 ) ( s4 , a , s1 ) ( s5 , a , s3 ) ( s6 , a , s5 ) ( s7 , a , s3 ) ( s8 , a , s1 ) ( s0 , b , s7 ) ( s1 , b , s3 ) ( s2 , b , s4 ) ( s3 , b , s6 ) ( s4 , b , s6 ) ( s5 , b , s1 ) ( s6 , b , s7 ) ( s7 , b , s5 ) ( s8 , b , s0 ) ( s0 , c , s2 ) ( s1 , c , s2 ) ( s2 , c , s1 ) ( s3 , c , s5 ) ( s4 , c , s1 ) ( s5 , c , s4 ) ( s6 , c , s2 ) ( s7 , c , s7 ) ( s8 , c , s2 ) ( s0 , d , s8 ) ( s1 , d , s8 ) ( s2 , d , s3 ) ( s3 , d , s8 ) ( s4 , d , s1 ) ( s5 , d , s2 ) ( s6 , d , s7 ) ( s7 , d , s2 ) ( s8 , d , s6 ) ( s0 , e , s6 ) ( s1 , e , s5 ) ( s2 , e , s1 ) ( s3 , e , s0 ) ( s4 , e , s5 ) ( s5 , e , s5 ) ( s6 , e , s2 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s0 ) ( s1 , f , s5 ) ( s2 , f , s3 ) ( s3 , f , s7 ) ( s4 , f , s4 ) ( s5 , f , s6 ) ( s6 , f , s7 ) ( s7 , f , s5 ) ( s8 , f , s6 )
9ca0301a-bd52-4267-8ee9-7583b3945634
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e
s1
1
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
83f3db20-8c39-4e14-b5a7-453c8a256ac4
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g
s4
2
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
5d8ae550-2cdb-49ce-8f83-5ca5a1600037
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b
s8
3
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
3cc7fc2d-09e9-4251-864a-af6b4aa563c4
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e
s5
4
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
fecc1eca-9469-4af7-b254-8dfe4009b110
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b
s3
5
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
97576659-140c-4d5c-b7e0-046f8a53e0c2
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f
s0
6
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
a7ed83c8-b7b0-46e6-aef3-140eaf5966be
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f c
s4
7
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
077249a0-259d-4dca-93ca-8705111302a6
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f c f
s6
8
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
e8626ef1-ce8c-41b7-b574-14512bee8702
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f c f a
s7
9
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
051119f5-e975-4f93-a1ed-ac1303b0daec
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f c f a a
s7
10
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
62b678e8-dae6-4c2e-9bdc-8db5323777e1
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f c f a a g
s3
11
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
59739fe6-bdfe-4725-91bd-176a38242d96
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f c f a a g a
s2
12
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
3752d198-53b4-486f-bd33-a0290cd2e580
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f c f a a g a g
s0
13
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
d95d200e-9980-449e-bfdf-0efa10558f78
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f c f a a g a g g
s3
14
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
9a3f6b4c-ebeb-46ed-81d1-0f160f512f45
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f c f a a g a g g e
s3
15
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
a558907c-85db-43e2-b197-762f864101ea
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f c f a a g a g g e c
s3
16
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
55798d54-33c7-471d-a0f0-dfa12d36f683
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f c f a a g a g g e c c
s3
17
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
7d543e0d-d75e-4360-854b-e067ec8599af
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f c f a a g a g g e c c a
s2
18
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
a6f7a831-1bc7-493d-88ee-6c6bbc3b941d
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f c f a a g a g g e c c a a
s2
19
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
c6d12ce3-b748-4da6-822f-f5d8451a755e
ac6a3be3-b630-414a-9bfe-d2f38ff5f811
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s7", "s8", "s6", "s5"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s3"]}]}
4
{"a":{"s0":"s7","s1":"s4","s2":"s2","s3":"s2","s4":"s0","s5":"s5","s6":"s7","s7":"s7","s8":"s3"},"b":{"s0":"s7","s1":"s5","s2":"s3","s3":"s1","s4":"s8","s5":"s3","s6":"s5","s7":"s1","s8":"s2"},"c":{"s0":"s4","s1":"s1","s2":"s5","s3":"s3","s4":"s4","s5":"s1","s6":"s0","s7":"s4","s8":"s3"},"d":{"s0":"s7","s1":"s2","s2":"s6","s3":"s4","s4":"s3","s5":"s1","s6":"s0","s7":"s4","s8":"s7"},"e":{"s0":"s1","s1":"s1","s2":"s7","s3":"s3","s4":"s3","s5":"s5","s6":"s1","s7":"s0","s8":"s5"},"f":{"s0":"s6","s1":"s2","s2":"s7","s3":"s0","s4":"s6","s5":"s7","s6":"s6","s7":"s4","s8":"s0"},"g":{"s0":"s3","s1":"s4","s2":"s0","s3":"s7","s4":"s2","s5":"s0","s6":"s1","s7":"s3","s8":"s3"}}
Given the following FSM transition rules: ( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 ) With the initial state: s0, and accepting states: ['s7', 's8', 's6', 's5'], What will be the state after reading the following input: e g b e b f c f a a g a g g e c c a a d
s6
20
9
7
9_7
( s0 , a , s7 ) ( s1 , a , s4 ) ( s2 , a , s2 ) ( s3 , a , s2 ) ( s4 , a , s0 ) ( s5 , a , s5 ) ( s6 , a , s7 ) ( s7 , a , s7 ) ( s8 , a , s3 ) ( s0 , b , s7 ) ( s1 , b , s5 ) ( s2 , b , s3 ) ( s3 , b , s1 ) ( s4 , b , s8 ) ( s5 , b , s3 ) ( s6 , b , s5 ) ( s7 , b , s1 ) ( s8 , b , s2 ) ( s0 , c , s4 ) ( s1 , c , s1 ) ( s2 , c , s5 ) ( s3 , c , s3 ) ( s4 , c , s4 ) ( s5 , c , s1 ) ( s6 , c , s0 ) ( s7 , c , s4 ) ( s8 , c , s3 ) ( s0 , d , s7 ) ( s1 , d , s2 ) ( s2 , d , s6 ) ( s3 , d , s4 ) ( s4 , d , s3 ) ( s5 , d , s1 ) ( s6 , d , s0 ) ( s7 , d , s4 ) ( s8 , d , s7 ) ( s0 , e , s1 ) ( s1 , e , s1 ) ( s2 , e , s7 ) ( s3 , e , s3 ) ( s4 , e , s3 ) ( s5 , e , s5 ) ( s6 , e , s1 ) ( s7 , e , s0 ) ( s8 , e , s5 ) ( s0 , f , s6 ) ( s1 , f , s2 ) ( s2 , f , s7 ) ( s3 , f , s0 ) ( s4 , f , s6 ) ( s5 , f , s7 ) ( s6 , f , s6 ) ( s7 , f , s4 ) ( s8 , f , s0 ) ( s0 , g , s3 ) ( s1 , g , s4 ) ( s2 , g , s0 ) ( s3 , g , s7 ) ( s4 , g , s2 ) ( s5 , g , s0 ) ( s6 , g , s1 ) ( s7 , g , s3 ) ( s8 , g , s3 )
a249da30-1b3a-4ec8-8952-fa0ee67b8224
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g
s6
1
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
7447f7a7-b244-4853-8e82-1098eb99e18c
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f
s6
2
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
7dfcc831-3108-4dc7-8588-ad519e84176b
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c
s4
3
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
e3a6a8e2-eb48-4f6b-8bad-9ba53d2ec811
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h
s1
4
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
0b007ba8-fcf8-4fec-8351-f942836ef644
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g
s7
5
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
08069600-5eeb-4add-aa50-d0906bc766fc
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b
s3
6
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
7311d062-9789-4808-8b17-679cbefde55c
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b b
s1
7
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
50ac5523-c8af-4857-abd6-a7e3863290c9
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b b a
s5
8
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
3c5886fa-57b2-497d-a605-17464dd42ac2
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b b a e
s8
9
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
90bf282f-8ac4-4299-890e-c3245e5ad7bd
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b b a e g
s6
10
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
77e2b3e0-936f-4b81-a578-11d36cdb2d12
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b b a e g d
s7
11
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
1f465403-89cc-4e2d-91ea-d242fe089281
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b b a e g d c
s6
12
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
b0d5a322-cc36-4b89-b7a2-a260bca9f8b2
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b b a e g d c e
s6
13
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
ed430e2a-d685-4d9a-96f3-60bdf4b5c337
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b b a e g d c e g
s8
14
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
65cfadb4-7368-46bf-beb8-b3eaf31b8231
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b b a e g d c e g c
s0
15
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
4128b827-66e8-43a8-a96e-0df81fd6a8b2
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b b a e g d c e g c f
s7
16
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
3f4fa189-5a2f-4661-9893-a7c406f84211
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b b a e g d c e g c f c
s6
17
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
6e0a7aed-e71c-408f-9f6e-b58505ff2daa
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b b a e g d c e g c f c c
s4
18
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
4930c7c4-f0f3-4332-aa7b-88ca6d5bce33
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b b a e g d c e g c f c c e
s7
19
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
f0e04bb8-0dd0-4c63-bfd6-8d1e44ef069e
9959fe0a-4cac-4459-acab-0e548dcf0faa
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s5", "s8", "s0", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s7"]}]}
4
{"a":{"s0":"s1","s1":"s5","s2":"s5","s3":"s7","s4":"s4","s5":"s7","s6":"s8","s7":"s4","s8":"s7"},"b":{"s0":"s2","s1":"s0","s2":"s1","s3":"s1","s4":"s7","s5":"s2","s6":"s5","s7":"s3","s8":"s7"},"c":{"s0":"s8","s1":"s0","s2":"s4","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s6","s8":"s0"},"d":{"s0":"s6","s1":"s8","s2":"s6","s3":"s5","s4":"s4","s5":"s3","s6":"s7","s7":"s0","s8":"s4"},"e":{"s0":"s0","s1":"s3","s2":"s2","s3":"s2","s4":"s7","s5":"s8","s6":"s6","s7":"s0","s8":"s8"},"f":{"s0":"s7","s1":"s2","s2":"s2","s3":"s5","s4":"s4","s5":"s4","s6":"s6","s7":"s5","s8":"s4"},"g":{"s0":"s6","s1":"s7","s2":"s8","s3":"s4","s4":"s7","s5":"s8","s6":"s8","s7":"s3","s8":"s6"},"h":{"s0":"s6","s1":"s3","s2":"s5","s3":"s3","s4":"s1","s5":"s3","s6":"s5","s7":"s5","s8":"s7"}}
Given the following FSM transition rules: ( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 ) With the initial state: s0, and accepting states: ['s5', 's8', 's0', 's3', 's2'], What will be the state after reading the following input: g f c h g b b a e g d c e g c f c c e h
s5
20
9
8
9_8
( s0 , a , s1 ) ( s1 , a , s5 ) ( s2 , a , s5 ) ( s3 , a , s7 ) ( s4 , a , s4 ) ( s5 , a , s7 ) ( s6 , a , s8 ) ( s7 , a , s4 ) ( s8 , a , s7 ) ( s0 , b , s2 ) ( s1 , b , s0 ) ( s2 , b , s1 ) ( s3 , b , s1 ) ( s4 , b , s7 ) ( s5 , b , s2 ) ( s6 , b , s5 ) ( s7 , b , s3 ) ( s8 , b , s7 ) ( s0 , c , s8 ) ( s1 , c , s0 ) ( s2 , c , s4 ) ( s3 , c , s0 ) ( s4 , c , s4 ) ( s5 , c , s6 ) ( s6 , c , s4 ) ( s7 , c , s6 ) ( s8 , c , s0 ) ( s0 , d , s6 ) ( s1 , d , s8 ) ( s2 , d , s6 ) ( s3 , d , s5 ) ( s4 , d , s4 ) ( s5 , d , s3 ) ( s6 , d , s7 ) ( s7 , d , s0 ) ( s8 , d , s4 ) ( s0 , e , s0 ) ( s1 , e , s3 ) ( s2 , e , s2 ) ( s3 , e , s2 ) ( s4 , e , s7 ) ( s5 , e , s8 ) ( s6 , e , s6 ) ( s7 , e , s0 ) ( s8 , e , s8 ) ( s0 , f , s7 ) ( s1 , f , s2 ) ( s2 , f , s2 ) ( s3 , f , s5 ) ( s4 , f , s4 ) ( s5 , f , s4 ) ( s6 , f , s6 ) ( s7 , f , s5 ) ( s8 , f , s4 ) ( s0 , g , s6 ) ( s1 , g , s7 ) ( s2 , g , s8 ) ( s3 , g , s4 ) ( s4 , g , s7 ) ( s5 , g , s8 ) ( s6 , g , s8 ) ( s7 , g , s3 ) ( s8 , g , s6 ) ( s0 , h , s6 ) ( s1 , h , s3 ) ( s2 , h , s5 ) ( s3 , h , s3 ) ( s4 , h , s1 ) ( s5 , h , s3 ) ( s6 , h , s5 ) ( s7 , h , s5 ) ( s8 , h , s7 )
f04c34a1-6375-4604-a2b7-7230ce09141e
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f
s2
1
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
09c3b2ca-028b-4b48-bf09-82b9c01d6cae
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g
s7
2
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
e99f4cd4-480d-435c-b7f6-38b7b56ad536
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a
s6
3
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
ec76ff8b-1b12-44f3-b143-95f00881a4f8
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g
s0
4
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
d793f60e-7ec2-417a-a655-a2e08e9856c8
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b
s8
5
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
75a5010c-1baa-42dd-8a81-29883656157c
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e
s4
6
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
1d02579f-c387-46d4-b3a4-931c6351bfe7
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e a
s5
7
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
2b95d8ff-451a-4334-a552-1e8335de5e48
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e a a
s8
8
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
b5c3b2a6-28b8-4685-8bd9-a6222d00c048
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e a a f
s2
9
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
db03ea66-e3b8-4251-9d0f-51a776ac75de
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e a a f f
s8
10
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
b19ae473-2363-4460-a134-71406b988f05
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e a a f f d
s3
11
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
8ba3ffd4-90f4-4f33-8ac3-693ff57847f4
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e a a f f d d
s1
12
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
5373b282-78f4-4465-b208-877f9b3b9ca9
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e a a f f d d a
s0
13
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
d9926102-2a71-4815-87f0-30e60f268a56
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e a a f f d d a c
s7
14
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
ba84444c-52fd-45dd-89b0-ec82db884296
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e a a f f d d a c b
s6
15
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
ae7d8737-64ee-4b6c-ade2-4fb28e7db636
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e a a f f d d a c b b
s8
16
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
666326ef-65ac-4e8f-80c6-0c25626dd629
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e a a f f d d a c b b e
s4
17
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
4c2e0bb6-7aef-43d9-afa0-627b8a5fd0c0
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e a a f f d d a c b b e f
s8
18
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
ba877c84-d444-4048-9f97-0681c0a5fa38
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e a a f f d d a c b b e f f
s2
19
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )
bdf81377-8902-4eab-a619-f10c3be07736
6a5f68b7-f777-422b-b895-5c19db6c38bf
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefg", "accepting_states": ["s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s5"]}]}
4
{"a":{"s0":"s2","s1":"s0","s2":"s3","s3":"s3","s4":"s5","s5":"s8","s6":"s0","s7":"s6","s8":"s6"},"b":{"s0":"s8","s1":"s3","s2":"s5","s3":"s0","s4":"s3","s5":"s6","s6":"s8","s7":"s6","s8":"s7"},"c":{"s0":"s7","s1":"s7","s2":"s2","s3":"s1","s4":"s7","s5":"s5","s6":"s3","s7":"s4","s8":"s6"},"d":{"s0":"s6","s1":"s7","s2":"s0","s3":"s1","s4":"s7","s5":"s6","s6":"s2","s7":"s7","s8":"s3"},"e":{"s0":"s4","s1":"s0","s2":"s7","s3":"s6","s4":"s3","s5":"s4","s6":"s5","s7":"s3","s8":"s4"},"f":{"s0":"s2","s1":"s8","s2":"s8","s3":"s6","s4":"s8","s5":"s7","s6":"s8","s7":"s4","s8":"s2"},"g":{"s0":"s2","s1":"s5","s2":"s7","s3":"s8","s4":"s4","s5":"s2","s6":"s0","s7":"s0","s8":"s5"}}
Given the following FSM transition rules: ( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 ) With the initial state: s0, and accepting states: ['s6'], What will be the state after reading the following input: f g a g b e a a f f d d a c b b e f f c
s2
20
9
7
9_7
( s0 , a , s2 ) ( s1 , a , s0 ) ( s2 , a , s3 ) ( s3 , a , s3 ) ( s4 , a , s5 ) ( s5 , a , s8 ) ( s6 , a , s0 ) ( s7 , a , s6 ) ( s8 , a , s6 ) ( s0 , b , s8 ) ( s1 , b , s3 ) ( s2 , b , s5 ) ( s3 , b , s0 ) ( s4 , b , s3 ) ( s5 , b , s6 ) ( s6 , b , s8 ) ( s7 , b , s6 ) ( s8 , b , s7 ) ( s0 , c , s7 ) ( s1 , c , s7 ) ( s2 , c , s2 ) ( s3 , c , s1 ) ( s4 , c , s7 ) ( s5 , c , s5 ) ( s6 , c , s3 ) ( s7 , c , s4 ) ( s8 , c , s6 ) ( s0 , d , s6 ) ( s1 , d , s7 ) ( s2 , d , s0 ) ( s3 , d , s1 ) ( s4 , d , s7 ) ( s5 , d , s6 ) ( s6 , d , s2 ) ( s7 , d , s7 ) ( s8 , d , s3 ) ( s0 , e , s4 ) ( s1 , e , s0 ) ( s2 , e , s7 ) ( s3 , e , s6 ) ( s4 , e , s3 ) ( s5 , e , s4 ) ( s6 , e , s5 ) ( s7 , e , s3 ) ( s8 , e , s4 ) ( s0 , f , s2 ) ( s1 , f , s8 ) ( s2 , f , s8 ) ( s3 , f , s6 ) ( s4 , f , s8 ) ( s5 , f , s7 ) ( s6 , f , s8 ) ( s7 , f , s4 ) ( s8 , f , s2 ) ( s0 , g , s2 ) ( s1 , g , s5 ) ( s2 , g , s7 ) ( s3 , g , s8 ) ( s4 , g , s4 ) ( s5 , g , s2 ) ( s6 , g , s0 ) ( s7 , g , s0 ) ( s8 , g , s5 )