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 |
---|---|---|---|---|---|---|---|---|---|---|---|
90992913-c719-4a63-9d93-6530bfc91ce9 | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h | s6 | 1 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
fe72ff20-0e8a-496d-9250-928338090be9 | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f | s3 | 2 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
37278509-2927-43ff-90fd-91cb6909eae2 | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e | s8 | 3 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
1f724928-774c-4f05-8d0e-b6c93f483b3e | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c | s8 | 4 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
03ae322f-abb2-4bcb-add2-9d3c1301ebc7 | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b | s1 | 5 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
364c3f04-5d93-456b-bcd0-86fc76964338 | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g | s4 | 6 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
3d46b62c-003c-4621-96eb-28b488b33286 | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g f | s6 | 7 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
2c33482f-7cfa-4f33-a473-24d5822d7039 | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g f g | s3 | 8 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
f8f3c123-54bc-4a2d-ad6a-91da34718215 | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g f g a | s2 | 9 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
8f4104ad-28b4-45fd-b026-cf8b4cc4224f | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g f g a a | s8 | 10 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
032bf1e3-d4d4-421e-a727-544de930bf32 | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g f g a a c | s8 | 11 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
b084fb94-3469-412e-b228-adfec1a0bb25 | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g f g a a c g | s8 | 12 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
93cb21c5-4e9c-49e8-838b-d7045e6f8898 | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g f g a a c g a | s8 | 13 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
802a8310-e35a-492f-941a-171cb3458d3c | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g f g a a c g a b | s1 | 14 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
a261e1c4-a992-4ab1-816e-98381530a5b7 | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g f g a a c g a b d | s6 | 15 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
9705c6b6-a8fc-4fbd-b9f2-e8288268b53a | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g f g a a c g a b d e | s6 | 16 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
b8d6af9a-45aa-4499-8a77-3d094d7cb07e | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g f g a a c g a b d e f | s3 | 17 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
f0064322-d9fe-4a35-bbee-07c6d8ff4e8f | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g f g a a c g a b d e f d | s3 | 18 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
2ad0dafe-98c0-454a-90f7-522d029c7cd1 | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g f g a a c g a b d e f d f | s4 | 19 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
c5b53193-16ab-492c-825c-0d5eb72d7dc6 | abcea387-e675-4e96-9b77-be41ae9980c8 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s1", "s4", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s3"]}]} | 4 | {"a":{"s0":"s8","s1":"s4","s2":"s8","s3":"s2","s4":"s7","s5":"s3","s6":"s0","s7":"s2","s8":"s8"},"b":{"s0":"s2","s1":"s3","s2":"s6","s3":"s8","s4":"s7","s5":"s4","s6":"s1","s7":"s2","s8":"s1"},"c":{"s0":"s1","s1":"s1","s2":"s5","s3":"s5","s4":"s3","s5":"s3","s6":"s8","s7":"s3","s8":"s8"},"d":{"s0":"s1","s1":"s6","s2":"s6","s3":"s3","s4":"s8","s5":"s7","s6":"s8","s7":"s1","s8":"s7"},"e":{"s0":"s0","s1":"s5","s2":"s2","s3":"s8","s4":"s2","s5":"s8","s6":"s6","s7":"s1","s8":"s1"},"f":{"s0":"s1","s1":"s0","s2":"s2","s3":"s4","s4":"s6","s5":"s0","s6":"s3","s7":"s5","s8":"s3"},"g":{"s0":"s6","s1":"s4","s2":"s0","s3":"s1","s4":"s7","s5":"s8","s6":"s3","s7":"s0","s8":"s8"},"h":{"s0":"s6","s1":"s3","s2":"s7","s3":"s4","s4":"s5","s5":"s0","s6":"s8","s7":"s0","s8":"s3"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 )
With the initial state: s0, and accepting states: ['s6', 's8', 's1', 's4', 's2'],
What will be the state after reading the following input: h f e c b g f g a a c g a b d e f d f c | s3 | 20 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s4 )
( s2 , a , s8 )
( s3 , a , s2 )
( s4 , a , s7 )
( s5 , a , s3 )
( s6 , a , s0 )
( s7 , a , s2 )
( s8 , a , s8 )
( s0 , b , s2 )
( s1 , b , s3 )
( s2 , b , s6 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s4 )
( s6 , b , s1 )
( s7 , b , s2 )
( s8 , b , s1 )
( s0 , c , s1 )
( s1 , c , s1 )
( s2 , c , s5 )
( s3 , c , s5 )
( s4 , c , s3 )
( s5 , c , s3 )
( s6 , c , s8 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s6 )
( s2 , d , s6 )
( s3 , d , s3 )
( s4 , d , s8 )
( s5 , d , s7 )
( s6 , d , s8 )
( s7 , d , s1 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s5 )
( s2 , e , s2 )
( s3 , e , s8 )
( s4 , e , s2 )
( s5 , e , s8 )
( s6 , e , s6 )
( s7 , e , s1 )
( s8 , e , s1 )
( s0 , f , s1 )
( s1 , f , s0 )
( s2 , f , s2 )
( s3 , f , s4 )
( s4 , f , s6 )
( s5 , f , s0 )
( s6 , f , s3 )
( s7 , f , s5 )
( s8 , f , s3 )
( s0 , g , s6 )
( s1 , g , s4 )
( s2 , g , s0 )
( s3 , g , s1 )
( s4 , g , s7 )
( s5 , g , s8 )
( s6 , g , s3 )
( s7 , g , s0 )
( s8 , g , s8 )
( s0 , h , s6 )
( s1 , h , s3 )
( s2 , h , s7 )
( s3 , h , s4 )
( s4 , h , s5 )
( s5 , h , s0 )
( s6 , h , s8 )
( s7 , h , s0 )
( s8 , h , s3 ) |
9ee1759e-7b07-47f3-b1f4-5ae747b79b89 | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h | s6 | 1 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
ea693c2c-63b2-4ac1-8d9e-8de452fd249c | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g | s2 | 2 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
c2ec5f71-e0dc-4cf0-8ce4-c756e8dd3ee4 | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a | s1 | 3 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
2b06959b-b7c8-421e-b945-bd1bde25d93f | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h | s6 | 4 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
d475b4c9-baf8-4666-9c1a-b9814de78a8b | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g | s2 | 5 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
4c8f5c77-84f7-4d66-874d-7c91a9f2345d | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e | s5 | 6 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
98b7cb56-aae1-4961-9f0c-4e49dad0043b | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e d | s1 | 7 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
ffa9ed2c-fd05-4b00-be01-b409ee194aad | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e d e | s1 | 8 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
d3f68639-1cf9-4069-ba7f-1002ba75c1a3 | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e d e d | s2 | 9 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
f5b2d300-9c7a-4136-8fb3-dcce174a615b | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e d e d h | s1 | 10 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
1619c3cc-2133-4765-89db-5967bfe15cfc | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e d e d h f | s4 | 11 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
2725a718-670a-4047-b55d-951c44d3e4c5 | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e d e d h f h | s0 | 12 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
5dd08bc5-f527-4203-983d-be4e2b9db8da | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e d e d h f h a | s3 | 13 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
fd819918-6439-4ff5-99de-b2138fb9a4df | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e d e d h f h a h | s1 | 14 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
6b4021ba-394a-4fbf-89d0-d8a13290f64c | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e d e d h f h a h f | s4 | 15 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
0c12f3c4-681f-46ee-9881-69bf38675e37 | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e d e d h f h a h f a | s3 | 16 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
52519b6b-8037-40c7-812b-4d1687ccf831 | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e d e d h f h a h f a a | s2 | 17 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
ace866ba-931e-4fc0-94eb-0d31513494af | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e d e d h f h a h f a a h | s1 | 18 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
c9a991e3-c8e2-49a4-af41-d4f4d87dcd1e | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e d e d h f h a h f a a h a | s4 | 19 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
88b93c5b-0d07-4e62-9ade-7b84d8b20934 | 701839a8-290b-41db-b80a-384ab25bbcc2 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s0", "s5", "s1", "s8"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s3","s1":"s4","s2":"s1","s3":"s2","s4":"s3","s5":"s2","s6":"s3","s7":"s0","s8":"s0"},"b":{"s0":"s4","s1":"s8","s2":"s5","s3":"s8","s4":"s7","s5":"s0","s6":"s8","s7":"s4","s8":"s3"},"c":{"s0":"s5","s1":"s5","s2":"s2","s3":"s1","s4":"s3","s5":"s2","s6":"s6","s7":"s3","s8":"s6"},"d":{"s0":"s7","s1":"s2","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s8","s7":"s0","s8":"s0"},"e":{"s0":"s4","s1":"s1","s2":"s5","s3":"s0","s4":"s6","s5":"s2","s6":"s1","s7":"s7","s8":"s3"},"f":{"s0":"s3","s1":"s4","s2":"s0","s3":"s0","s4":"s2","s5":"s8","s6":"s4","s7":"s2","s8":"s0"},"g":{"s0":"s4","s1":"s2","s2":"s4","s3":"s2","s4":"s3","s5":"s3","s6":"s2","s7":"s4","s8":"s1"},"h":{"s0":"s6","s1":"s6","s2":"s1","s3":"s1","s4":"s0","s5":"s2","s6":"s7","s7":"s0","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s0', 's5', 's1', 's8'],
What will be the state after reading the following input: h g a h g e d e d h f h a h f a a h a g | s3 | 20 | 9 | 8 | 9_8 | ( s0 , a , s3 )
( s1 , a , s4 )
( s2 , a , s1 )
( s3 , a , s2 )
( s4 , a , s3 )
( s5 , a , s2 )
( s6 , a , s3 )
( s7 , a , s0 )
( s8 , a , s0 )
( s0 , b , s4 )
( s1 , b , s8 )
( s2 , b , s5 )
( s3 , b , s8 )
( s4 , b , s7 )
( s5 , b , s0 )
( s6 , b , s8 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s5 )
( s1 , c , s5 )
( s2 , c , s2 )
( s3 , c , s1 )
( s4 , c , s3 )
( s5 , c , s2 )
( s6 , c , s6 )
( s7 , c , s3 )
( s8 , c , s6 )
( s0 , d , s7 )
( s1 , d , s2 )
( s2 , d , s7 )
( s3 , d , s5 )
( s4 , d , s4 )
( s5 , d , s1 )
( s6 , d , s8 )
( s7 , d , s0 )
( s8 , d , s0 )
( s0 , e , s4 )
( s1 , e , s1 )
( s2 , e , s5 )
( s3 , e , s0 )
( s4 , e , s6 )
( s5 , e , s2 )
( s6 , e , s1 )
( s7 , e , s7 )
( s8 , e , s3 )
( s0 , f , s3 )
( s1 , f , s4 )
( s2 , f , s0 )
( s3 , f , s0 )
( s4 , f , s2 )
( s5 , f , s8 )
( s6 , f , s4 )
( s7 , f , s2 )
( s8 , f , s0 )
( s0 , g , s4 )
( s1 , g , s2 )
( s2 , g , s4 )
( s3 , g , s2 )
( s4 , g , s3 )
( s5 , g , s3 )
( s6 , g , s2 )
( s7 , g , s4 )
( s8 , g , s1 )
( s0 , h , s6 )
( s1 , h , s6 )
( s2 , h , s1 )
( s3 , h , s1 )
( s4 , h , s0 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s0 )
( s8 , h , s6 ) |
7c3996c7-5d64-40aa-b26e-d4bd776b81fe | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g | s8 | 1 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
10b3eda5-797b-4cff-b854-c3bf4a199b29 | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e | s0 | 2 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
1675183a-826c-4888-b067-5430412dcb5a | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c | s5 | 3 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
caa6cbe4-4054-4027-907c-eb8a94d78871 | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g | s6 | 4 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
3ef1fa8a-ca03-4a8b-96e6-f0858a2ad9e1 | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g | s1 | 5 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
1b8cb2bd-608c-49d3-9933-6b0d7a9afd09 | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g | s0 | 6 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
92a1fa0d-8dc9-4933-82fb-11bbe3c020e1 | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g e | s6 | 7 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
92b91820-8623-41cb-9db9-84883f1a5e64 | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g e b | s7 | 8 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
4df222c9-1a12-42a1-bea4-7709f29f2516 | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g e b g | s3 | 9 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
682a09bf-e956-433c-a0d4-dce77b17fa2a | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g e b g e | s8 | 10 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
a881a24c-f0d7-426b-b275-8447f59cf27e | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g e b g e f | s4 | 11 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
d7a45496-fe3e-4473-9640-3cabf0747959 | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g e b g e f f | s5 | 12 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
bf252020-5101-4a8d-9296-79be0b3c58aa | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g e b g e f f g | s6 | 13 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
d65e736e-ce74-4a3c-9e06-2e0c5ce0457c | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g e b g e f f g d | s7 | 14 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
f017485e-8cee-44e0-ba7b-c1af80b07a4c | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g e b g e f f g d b | s0 | 15 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
f14adb35-ce80-4e1c-bd3b-1fb9f8446d5b | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g e b g e f f g d b a | s7 | 16 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
1479bfc5-d060-4d52-ad57-2bae5c7bd67e | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g e b g e f f g d b a h | s2 | 17 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
1db75510-3fc0-42a2-a184-c0c68e0dcc91 | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g e b g e f f g d b a h e | s3 | 18 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
46fa14c8-2a5d-49f2-a5bd-048a2acd837f | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g e b g e f f g d b a h e d | s1 | 19 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
7f25241c-87bd-4011-a096-5d117784716f | d6580051-d55c-4e95-9a5f-4e9cd95143b3 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s6", "s8", "s7", "s5", "s4", "s0", "s1", "s3", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s1"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s1"]}]} | 4 | {"a":{"s0":"s7","s1":"s5","s2":"s3","s3":"s3","s4":"s3","s5":"s6","s6":"s3","s7":"s4","s8":"s1"},"b":{"s0":"s8","s1":"s1","s2":"s2","s3":"s0","s4":"s8","s5":"s5","s6":"s7","s7":"s0","s8":"s8"},"c":{"s0":"s5","s1":"s2","s2":"s7","s3":"s2","s4":"s7","s5":"s6","s6":"s0","s7":"s7","s8":"s8"},"d":{"s0":"s1","s1":"s1","s2":"s3","s3":"s1","s4":"s3","s5":"s5","s6":"s7","s7":"s1","s8":"s4"},"e":{"s0":"s6","s1":"s6","s2":"s3","s3":"s8","s4":"s3","s5":"s2","s6":"s5","s7":"s1","s8":"s0"},"f":{"s0":"s0","s1":"s1","s2":"s8","s3":"s6","s4":"s5","s5":"s4","s6":"s3","s7":"s3","s8":"s4"},"g":{"s0":"s8","s1":"s0","s2":"s8","s3":"s3","s4":"s4","s5":"s6","s6":"s1","s7":"s3","s8":"s0"},"h":{"s0":"s6","s1":"s5","s2":"s5","s3":"s7","s4":"s7","s5":"s2","s6":"s7","s7":"s2","s8":"s1"}} | Given the following FSM transition rules:
( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 )
With the initial state: s0, and accepting states: ['s6', 's8', 's7', 's5', 's4', 's0', 's1', 's3', 's2'],
What will be the state after reading the following input: g e c g g g e b g e f f g d b a h e d e | s6 | 20 | 9 | 8 | 9_8 | ( s0 , a , s7 )
( s1 , a , s5 )
( s2 , a , s3 )
( s3 , a , s3 )
( s4 , a , s3 )
( s5 , a , s6 )
( s6 , a , s3 )
( s7 , a , s4 )
( s8 , a , s1 )
( s0 , b , s8 )
( s1 , b , s1 )
( s2 , b , s2 )
( s3 , b , s0 )
( s4 , b , s8 )
( s5 , b , s5 )
( s6 , b , s7 )
( s7 , b , s0 )
( s8 , b , s8 )
( s0 , c , s5 )
( s1 , c , s2 )
( s2 , c , s7 )
( s3 , c , s2 )
( s4 , c , s7 )
( s5 , c , s6 )
( s6 , c , s0 )
( s7 , c , s7 )
( s8 , c , s8 )
( s0 , d , s1 )
( s1 , d , s1 )
( s2 , d , s3 )
( s3 , d , s1 )
( s4 , d , s3 )
( s5 , d , s5 )
( s6 , d , s7 )
( s7 , d , s1 )
( s8 , d , s4 )
( s0 , e , s6 )
( s1 , e , s6 )
( s2 , e , s3 )
( s3 , e , s8 )
( s4 , e , s3 )
( s5 , e , s2 )
( s6 , e , s5 )
( s7 , e , s1 )
( s8 , e , s0 )
( s0 , f , s0 )
( s1 , f , s1 )
( s2 , f , s8 )
( s3 , f , s6 )
( s4 , f , s5 )
( s5 , f , s4 )
( s6 , f , s3 )
( s7 , f , s3 )
( s8 , f , s4 )
( s0 , g , s8 )
( s1 , g , s0 )
( s2 , g , s8 )
( s3 , g , s3 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s0 )
( s0 , h , s6 )
( s1 , h , s5 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s7 )
( s5 , h , s2 )
( s6 , h , s7 )
( s7 , h , s2 )
( s8 , h , s1 ) |
b8a366a2-1500-4268-8553-0f0d0d6f8ce8 | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e | s0 | 1 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
026d6000-8236-4893-a541-a03e9de8f398 | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g | s8 | 2 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
688bcdee-608f-4b8d-afb5-efbf0e9501da | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c | s8 | 3 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
92dc05f3-1676-49b8-821b-60ba44f00736 | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f | s2 | 4 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
ef3a2523-8c24-4eb2-af84-42c1222fd587 | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c | s4 | 5 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
5851c98e-b303-44ac-a32e-ac8b1fd86425 | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c | s0 | 6 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
282a5d9e-e3f2-4cbc-9a18-db2f9ee08c19 | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c a | s1 | 7 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
d9762079-d9a3-480f-ae8f-5805d59ca286 | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c a f | s0 | 8 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
cb5a355b-bbc3-4dfd-bad7-ab24d0cf6faf | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c a f c | s5 | 9 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
f0564d41-926c-41ad-93c9-49800e8d5fc1 | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c a f c a | s7 | 10 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
39734c57-c9be-44b9-896e-cb56e3ed464d | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c a f c a g | s3 | 11 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
7849f808-e5f6-44c7-9101-937edce08705 | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c a f c a g g | s0 | 12 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
3e6ca23c-413b-4750-88b0-e9fa7620d687 | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c a f c a g g d | s4 | 13 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
10597de2-cd47-436a-9635-76d34e86f8ce | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c a f c a g g d h | s0 | 14 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
b1842b6d-72fc-4caf-9c95-4c59e827e0b0 | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c a f c a g g d h a | s1 | 15 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
85bd25b0-dc51-4420-937f-ce8322c4b268 | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c a f c a g g d h a c | s8 | 16 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
c880172c-944a-4ac5-9e80-c9e3e230a93b | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c a f c a g g d h a c b | s4 | 17 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
5c1d92c0-debd-42f1-ba73-0c2e4513ecbf | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c a f c a g g d h a c b h | s0 | 18 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
2f19ccfd-15e0-45d3-983f-afa4e2cd10c9 | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c a f c a g g d h a c b h g | s8 | 19 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
bb017d8c-b88b-43bc-bec7-d4d90796b0f8 | 18becdf9-2e35-47d9-9bed-6b6add76e60d | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s1", "s0", "s3", "s8", "s2", "s5", "s6", "s7", "s4"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s7"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s2"]}]} | 4 | {"a":{"s0":"s1","s1":"s8","s2":"s8","s3":"s4","s4":"s7","s5":"s7","s6":"s6","s7":"s8","s8":"s5"},"b":{"s0":"s1","s1":"s3","s2":"s7","s3":"s5","s4":"s4","s5":"s1","s6":"s3","s7":"s0","s8":"s4"},"c":{"s0":"s5","s1":"s8","s2":"s4","s3":"s1","s4":"s0","s5":"s2","s6":"s1","s7":"s3","s8":"s8"},"d":{"s0":"s4","s1":"s7","s2":"s5","s3":"s8","s4":"s1","s5":"s0","s6":"s7","s7":"s2","s8":"s7"},"e":{"s0":"s0","s1":"s0","s2":"s2","s3":"s3","s4":"s2","s5":"s0","s6":"s3","s7":"s7","s8":"s2"},"f":{"s0":"s4","s1":"s0","s2":"s6","s3":"s0","s4":"s0","s5":"s3","s6":"s4","s7":"s6","s8":"s2"},"g":{"s0":"s8","s1":"s7","s2":"s2","s3":"s0","s4":"s8","s5":"s3","s6":"s1","s7":"s3","s8":"s1"},"h":{"s0":"s0","s1":"s6","s2":"s5","s3":"s7","s4":"s0","s5":"s5","s6":"s6","s7":"s1","s8":"s2"}} | Given the following FSM transition rules:
( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 )
With the initial state: s0, and accepting states: ['s1', 's0', 's3', 's8', 's2', 's5', 's6', 's7', 's4'],
What will be the state after reading the following input: e g c f c c a f c a g g d h a c b h g d | s7 | 20 | 9 | 8 | 9_8 | ( s0 , a , s1 )
( s1 , a , s8 )
( s2 , a , s8 )
( s3 , a , s4 )
( s4 , a , s7 )
( s5 , a , s7 )
( s6 , a , s6 )
( s7 , a , s8 )
( s8 , a , s5 )
( s0 , b , s1 )
( s1 , b , s3 )
( s2 , b , s7 )
( s3 , b , s5 )
( s4 , b , s4 )
( s5 , b , s1 )
( s6 , b , s3 )
( s7 , b , s0 )
( s8 , b , s4 )
( s0 , c , s5 )
( s1 , c , s8 )
( s2 , c , s4 )
( s3 , c , s1 )
( s4 , c , s0 )
( s5 , c , s2 )
( s6 , c , s1 )
( s7 , c , s3 )
( s8 , c , s8 )
( s0 , d , s4 )
( s1 , d , s7 )
( s2 , d , s5 )
( s3 , d , s8 )
( s4 , d , s1 )
( s5 , d , s0 )
( s6 , d , s7 )
( s7 , d , s2 )
( s8 , d , s7 )
( s0 , e , s0 )
( s1 , e , s0 )
( s2 , e , s2 )
( s3 , e , s3 )
( s4 , e , s2 )
( s5 , e , s0 )
( s6 , e , s3 )
( s7 , e , s7 )
( s8 , e , s2 )
( s0 , f , s4 )
( s1 , f , s0 )
( s2 , f , s6 )
( s3 , f , s0 )
( s4 , f , s0 )
( s5 , f , s3 )
( s6 , f , s4 )
( s7 , f , s6 )
( s8 , f , s2 )
( s0 , g , s8 )
( s1 , g , s7 )
( s2 , g , s2 )
( s3 , g , s0 )
( s4 , g , s8 )
( s5 , g , s3 )
( s6 , g , s1 )
( s7 , g , s3 )
( s8 , g , s1 )
( s0 , h , s0 )
( s1 , h , s6 )
( s2 , h , s5 )
( s3 , h , s7 )
( s4 , h , s0 )
( s5 , h , s5 )
( s6 , h , s6 )
( s7 , h , s1 )
( s8 , h , s2 ) |
57e2d961-313e-4d18-b916-adf9976b4a96 | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e | s4 | 1 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
9d36d74e-3676-42e3-a871-de999b010b38 | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d | s8 | 2 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
49913ee7-cec4-41a5-af11-e7c79953e5f8 | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g | s8 | 3 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
2d12e613-0659-4f8f-8442-2d9757aa2578 | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h | s6 | 4 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
a12c3c15-9be9-44bc-8e1d-cbb3fbcf70eb | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h | s4 | 5 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
cecb82a4-e124-4340-8d15-e93bd61091f9 | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d | s8 | 6 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
0148dd6d-16ae-4e65-889a-f77b1aa70e71 | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d g | s8 | 7 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
37b2349d-ee67-4035-a23e-b8c28f95e7bb | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d g g | s8 | 8 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
e9d912e5-ff15-4493-a680-afe083060194 | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d g g g | s8 | 9 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
b848669a-4e50-48ba-a1d3-996feb9947f6 | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d g g g h | s6 | 10 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
5aa7be83-b978-46c3-8c6f-18a1c720bdac | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d g g g h c | s0 | 11 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
c8f7ab79-62db-4798-977b-c7b3aaabb432 | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d g g g h c d | s5 | 12 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
45579e23-a7c7-435d-9f4f-b768d2fb6e49 | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d g g g h c d e | s8 | 13 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
69fec875-0d90-4c88-8b72-93111836e69c | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d g g g h c d e e | s2 | 14 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
4181b61e-8b73-4e34-aed6-0fcca5c271f2 | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d g g g h c d e e a | s7 | 15 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
ea60d801-dc9a-4875-b4ba-0af2015539be | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d g g g h c d e e a b | s4 | 16 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
637101bf-0d6e-48f6-b06d-6d3e74baab0d | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d g g g h c d e e a b f | s4 | 17 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
40b5244b-18e3-496f-a6c6-82ec996b532f | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d g g g h c d e e a b f h | s7 | 18 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
9ea470ea-9850-4e5c-a0e8-2c80451679c0 | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d g g g h c d e e a b f h f | s5 | 19 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |
9d9a96e1-6b80-4446-9f49-469f2ed66f39 | 623ddd6c-8471-422a-a479-257e5459ea31 | {"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8"], "alphabets": "abcdefgh", "accepting_states": ["s3", "s4", "s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s0", "symbol": "e", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s1", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "f", "toStates": ["s8"]}, {"fromState": "s1", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "h", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "d", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "f", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "g", "toStates": ["s7"]}, {"fromState": "s2", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "d", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s3", "symbol": "f", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s4", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "h", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "d", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "e", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "f", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "g", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "h", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "d", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "e", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "f", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "g", "toStates": ["s5"]}, {"fromState": "s6", "symbol": "h", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "e", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "f", "toStates": ["s5"]}, {"fromState": "s7", "symbol": "g", "toStates": ["s4"]}, {"fromState": "s7", "symbol": "h", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "d", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "e", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "f", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "g", "toStates": ["s8"]}, {"fromState": "s8", "symbol": "h", "toStates": ["s6"]}]} | 4 | {"a":{"s0":"s8","s1":"s7","s2":"s7","s3":"s5","s4":"s6","s5":"s8","s6":"s8","s7":"s7","s8":"s5"},"b":{"s0":"s7","s1":"s5","s2":"s7","s3":"s1","s4":"s3","s5":"s3","s6":"s4","s7":"s4","s8":"s3"},"c":{"s0":"s2","s1":"s7","s2":"s7","s3":"s0","s4":"s1","s5":"s8","s6":"s0","s7":"s4","s8":"s8"},"d":{"s0":"s5","s1":"s3","s2":"s5","s3":"s0","s4":"s8","s5":"s2","s6":"s3","s7":"s8","s8":"s8"},"e":{"s0":"s4","s1":"s3","s2":"s2","s3":"s2","s4":"s0","s5":"s8","s6":"s3","s7":"s0","s8":"s2"},"f":{"s0":"s6","s1":"s8","s2":"s3","s3":"s0","s4":"s4","s5":"s6","s6":"s4","s7":"s5","s8":"s1"},"g":{"s0":"s7","s1":"s4","s2":"s7","s3":"s6","s4":"s4","s5":"s6","s6":"s5","s7":"s4","s8":"s8"},"h":{"s0":"s1","s1":"s2","s2":"s4","s3":"s6","s4":"s7","s5":"s6","s6":"s4","s7":"s1","s8":"s6"}} | Given the following FSM transition rules:
( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 )
With the initial state: s0, and accepting states: ['s3', 's4', 's0'],
What will be the state after reading the following input: e d g h h d g g g h c d e e a b f h f a | s8 | 20 | 9 | 8 | 9_8 | ( s0 , a , s8 )
( s1 , a , s7 )
( s2 , a , s7 )
( s3 , a , s5 )
( s4 , a , s6 )
( s5 , a , s8 )
( s6 , a , s8 )
( s7 , a , s7 )
( s8 , a , s5 )
( s0 , b , s7 )
( s1 , b , s5 )
( s2 , b , s7 )
( s3 , b , s1 )
( s4 , b , s3 )
( s5 , b , s3 )
( s6 , b , s4 )
( s7 , b , s4 )
( s8 , b , s3 )
( s0 , c , s2 )
( s1 , c , s7 )
( s2 , c , s7 )
( s3 , c , s0 )
( s4 , c , s1 )
( s5 , c , s8 )
( s6 , c , s0 )
( s7 , c , s4 )
( s8 , c , s8 )
( s0 , d , s5 )
( s1 , d , s3 )
( s2 , d , s5 )
( s3 , d , s0 )
( s4 , d , s8 )
( s5 , d , s2 )
( s6 , d , s3 )
( s7 , d , s8 )
( s8 , d , s8 )
( s0 , e , s4 )
( s1 , e , s3 )
( s2 , e , s2 )
( s3 , e , s2 )
( s4 , e , s0 )
( s5 , e , s8 )
( s6 , e , s3 )
( s7 , e , s0 )
( s8 , e , s2 )
( s0 , f , s6 )
( s1 , f , s8 )
( s2 , f , s3 )
( s3 , f , s0 )
( s4 , f , s4 )
( s5 , f , s6 )
( s6 , f , s4 )
( s7 , f , s5 )
( s8 , f , s1 )
( s0 , g , s7 )
( s1 , g , s4 )
( s2 , g , s7 )
( s3 , g , s6 )
( s4 , g , s4 )
( s5 , g , s6 )
( s6 , g , s5 )
( s7 , g , s4 )
( s8 , g , s8 )
( s0 , h , s1 )
( s1 , h , s2 )
( s2 , h , s4 )
( s3 , h , s6 )
( s4 , h , s7 )
( s5 , h , s6 )
( s6 , h , s4 )
( s7 , h , s1 )
( s8 , h , s6 ) |