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
412
1.46k
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
example_query_id
stringclasses
160 values
example_fsm_id
stringclasses
160 values
input_alphabet
stringlengths
1
20
simulated_solution
stringclasses
15 values
solution_verbose
stringlengths
77
381
query_zero_shot
stringlengths
161
624
ef57028a-05f5-4e45-b14c-0845b51f8878
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b ?
s9
11
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabbaaabb
s9
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) (s4, 'a', s1) (s1, 'a', s4) (s4, 'a', s1) (s1, 'b', s6) (s6, 'b', s9) Final state: s9
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b ?
b33c7632-ae9a-42c5-b34a-087ca965a7f1
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a b a a a b ?
s6
18
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabbaaabbaabaaab
s6
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) (s4, 'a', s1) (s1, 'a', s4) (s4, 'a', s1) (s1, 'b', s6) (s6, 'b', s9) (s9, 'a', s5) (s5, 'a', s8) (s8, 'b', s8) (s8, 'a', s6) (s6, 'a', s4) (s4, 'a', s1) (s1, 'b', s6) Final state: s6
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a b a a a b ?
9990e236-2da6-4a03-a4b1-e47f33070dc3
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a b a a a ?
s1
17
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabbaaabbaabaaa
s1
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) (s4, 'a', s1) (s1, 'a', s4) (s4, 'a', s1) (s1, 'b', s6) (s6, 'b', s9) (s9, 'a', s5) (s5, 'a', s8) (s8, 'b', s8) (s8, 'a', s6) (s6, 'a', s4) (s4, 'a', s1) Final state: s1
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a b a a a ?
f76c9ff1-7d33-4f37-84b8-ffc08404e114
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a b a a ?
s4
16
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabbaaabbaabaa
s4
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) (s4, 'a', s1) (s1, 'a', s4) (s4, 'a', s1) (s1, 'b', s6) (s6, 'b', s9) (s9, 'a', s5) (s5, 'a', s8) (s8, 'b', s8) (s8, 'a', s6) (s6, 'a', s4) Final state: s4
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a b a a ?
8c4f64b9-f8e1-4b89-8ce4-1d7397767c57
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a b a ?
s6
15
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabbaaabbaaba
s6
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) (s4, 'a', s1) (s1, 'a', s4) (s4, 'a', s1) (s1, 'b', s6) (s6, 'b', s9) (s9, 'a', s5) (s5, 'a', s8) (s8, 'b', s8) (s8, 'a', s6) Final state: s6
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a b a ?
8d1c115f-2602-48d1-bc3c-0f188c28e824
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a b ?
s8
14
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabbaaabbaab
s8
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) (s4, 'a', s1) (s1, 'a', s4) (s4, 'a', s1) (s1, 'b', s6) (s6, 'b', s9) (s9, 'a', s5) (s5, 'a', s8) (s8, 'b', s8) Final state: s8
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a b ?
76fe3578-decf-406a-be32-0e95c29916fa
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a ?
s8
13
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabbaaabbaa
s8
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) (s4, 'a', s1) (s1, 'a', s4) (s4, 'a', s1) (s1, 'b', s6) (s6, 'b', s9) (s9, 'a', s5) (s5, 'a', s8) Final state: s8
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a ?
28017e37-5382-4594-95fa-fa54c2490692
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a ?
s5
12
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabbaaabba
s5
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) (s4, 'a', s1) (s1, 'a', s4) (s4, 'a', s1) (s1, 'b', s6) (s6, 'b', s9) (s9, 'a', s5) Final state: s5
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a ?
3399a567-cd04-4cc5-86ec-5817409cb560
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b ?
s6
10
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabbaaab
s6
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) (s4, 'a', s1) (s1, 'a', s4) (s4, 'a', s1) (s1, 'b', s6) Final state: s6
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b ?
4b1ae812-1fba-444c-beb1-d79e500ffd2d
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a ?
s2
1
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
a
s2
Transitions (current_state, input, next_state): (s0, 'a', s2) Final state: s2
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a ?
a47d9dfe-15d6-45e2-9e41-adf62aca902a
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a ?
s4
8
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabbaa
s4
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) (s4, 'a', s1) (s1, 'a', s4) Final state: s4
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a ?
d4cdd9f6-e782-4fa7-909b-191d349d927b
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a ?
s1
7
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabba
s1
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) (s4, 'a', s1) Final state: s1
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a ?
22551282-1f02-437d-a7ec-a0b679ddebbf
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b ?
s4
6
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabb
s4
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) Final state: s4
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b ?
f1caa1d7-27af-4512-be83-2a585a8b4f86
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b ?
s9
5
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaab
s9
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) Final state: s9
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b ?
56e036b0-e9c7-4e2b-863a-710d0a07f4a2
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a ?
s6
4
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaa
s6
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) Final state: s6
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a ?
60f080d9-fc01-4cc0-bd5f-fd4dd888f2af
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a ?
s8
3
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaa
s8
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) Final state: s8
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a ?
044a974c-f4c0-445f-abb2-7473175775d9
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a ?
s5
2
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aa
s5
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) Final state: s5
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a ?
86c97c41-1c04-4a04-93a2-4daa3d0123ea
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a b a a a b b ?
s9
19
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabbaaabbaabaaabb
s9
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) (s4, 'a', s1) (s1, 'a', s4) (s4, 'a', s1) (s1, 'b', s6) (s6, 'b', s9) (s9, 'a', s5) (s5, 'a', s8) (s8, 'b', s8) (s8, 'a', s6) (s6, 'a', s4) (s4, 'a', s1) (s1, 'b', s6) (s6, 'b', s9) Final state: s9
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a b a a a b b ?
46c4f260-5b59-498c-bfbd-656e90614441
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a ?
s1
9
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabbaaa
s1
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) (s4, 'a', s1) (s1, 'a', s4) (s4, 'a', s1) Final state: s1
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a ?
9d782176-f09f-4792-b745-791c06697e02
e5311ea0-4abe-428a-80b4-f5162087eadb
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "ab", "accepting_states": ["s2", "s5", "s9"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s4"]}]}
3
{"a":{"s0":"s2","s1":"s4","s2":"s5","s3":"s4","s4":"s1","s5":"s8","s6":"s4","s7":"s8","s8":"s6","s9":"s5"},"b":{"s0":"s3","s1":"s6","s2":"s0","s3":"s6","s4":"s6","s5":"s7","s6":"s9","s7":"s3","s8":"s8","s9":"s4"}}
Given the following FSM: a b s0 s2 s10 s1 s9 s2 s2 s8 s10 s3 s5 s5 s5 s8 s5 s6 s8 s1 s7 s7 s7 s8 s8 s0 s9 s7 s3 s10 s10 s6 With the initial state: s0, and accepting states: ['s3', 's1', 's5', 's6', 's8', 's0', 's9', 's10', 's7'], What will be the state after reading the following input: b a a b a a a b b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s10) (s10, 'a', s10) (s10, 'a', s10) (s10, 'b', s6) (s6, 'a', s8) (s8, 'a', s8) (s8, 'a', s8) (s8, 'b', s0) (s0, 'b', s10) Final state: s10 Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a b a a a b b a ?
s5
20
10
2
10_2
af5740ea-75b8-43a5-b740-77a295c86f9b
177e1684-e4d5-4afe-b430-471520774e56
aaaabbaaabbaabaaabba
s5
Transitions (current_state, input, next_state): (s0, 'a', s2) (s2, 'a', s5) (s5, 'a', s8) (s8, 'a', s6) (s6, 'b', s9) (s9, 'b', s4) (s4, 'a', s1) (s1, 'a', s4) (s4, 'a', s1) (s1, 'b', s6) (s6, 'b', s9) (s9, 'a', s5) (s5, 'a', s8) (s8, 'b', s8) (s8, 'a', s6) (s6, 'a', s4) (s4, 'a', s1) (s1, 'b', s6) (s6, 'b', s9) (s9, 'a', s5) Final state: s5
Given the following FSM: a b s0 s2 s3 s1 s4 s6 s2 s5 s0 s3 s4 s6 s4 s1 s6 s5 s8 s7 s6 s4 s9 s7 s8 s3 s8 s6 s8 s9 s5 s4 With the initial state: s0, and accepting states: ['s2', 's5', 's9'], What will be the state after reading the following input: a a a a b b a a a b b a a b a a a b b a ?
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ?
s6
1
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
b
s6
Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ?
aca870e8-1e7e-403a-934b-1a4bc1bb209e
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c ?
s2
2
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bc
s2
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) Final state: s2
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c ?
ecb8242e-fb73-4910-b423-6abc5aafd3d0
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c c a b c a b ?
s2
19
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbcacababbccabcab
s2
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) (s3, 'c', s9) (s9, 'a', s8) (s8, 'b', s2) (s2, 'a', s0) (s0, 'b', s6) (s6, 'b', s4) (s4, 'c', s7) (s7, 'c', s4) (s4, 'a', s5) (s5, 'b', s2) (s2, 'c', s9) (s9, 'a', s8) (s8, 'b', s2) Final state: s2
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c c a b c a b ?
28b6424a-8159-4666-a54e-ebc9dec86962
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c c a b c a ?
s8
18
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbcacababbccabca
s8
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) (s3, 'c', s9) (s9, 'a', s8) (s8, 'b', s2) (s2, 'a', s0) (s0, 'b', s6) (s6, 'b', s4) (s4, 'c', s7) (s7, 'c', s4) (s4, 'a', s5) (s5, 'b', s2) (s2, 'c', s9) (s9, 'a', s8) Final state: s8
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c c a b c a ?
5057d01b-c90e-450e-8eba-0fe0c1d4fde2
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c c a b c ?
s9
17
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbcacababbccabc
s9
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) (s3, 'c', s9) (s9, 'a', s8) (s8, 'b', s2) (s2, 'a', s0) (s0, 'b', s6) (s6, 'b', s4) (s4, 'c', s7) (s7, 'c', s4) (s4, 'a', s5) (s5, 'b', s2) (s2, 'c', s9) Final state: s9
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c c a b c ?
b08f9f00-10b9-4c15-a7f7-af26fc318d69
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c c a b ?
s2
16
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbcacababbccab
s2
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) (s3, 'c', s9) (s9, 'a', s8) (s8, 'b', s2) (s2, 'a', s0) (s0, 'b', s6) (s6, 'b', s4) (s4, 'c', s7) (s7, 'c', s4) (s4, 'a', s5) (s5, 'b', s2) Final state: s2
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c c a b ?
3564a949-b183-4d81-be16-f7d2f0c85018
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c c a ?
s5
15
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbcacababbcca
s5
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) (s3, 'c', s9) (s9, 'a', s8) (s8, 'b', s2) (s2, 'a', s0) (s0, 'b', s6) (s6, 'b', s4) (s4, 'c', s7) (s7, 'c', s4) (s4, 'a', s5) Final state: s5
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c c a ?
fbf5bd7b-dacf-4229-b807-604284b1d36e
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c c ?
s4
14
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbcacababbcc
s4
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) (s3, 'c', s9) (s9, 'a', s8) (s8, 'b', s2) (s2, 'a', s0) (s0, 'b', s6) (s6, 'b', s4) (s4, 'c', s7) (s7, 'c', s4) Final state: s4
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c c ?
f9a5a856-c163-48ec-be3c-b4da58f0bd7c
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c ?
s7
13
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbcacababbc
s7
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) (s3, 'c', s9) (s9, 'a', s8) (s8, 'b', s2) (s2, 'a', s0) (s0, 'b', s6) (s6, 'b', s4) (s4, 'c', s7) Final state: s7
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c ?
815c7898-ec63-49f0-b3b9-f018c2410105
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b ?
s4
12
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbcacababb
s4
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) (s3, 'c', s9) (s9, 'a', s8) (s8, 'b', s2) (s2, 'a', s0) (s0, 'b', s6) (s6, 'b', s4) Final state: s4
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b ?
537aa988-de6c-4e9c-bfeb-c04911829a0d
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c c a b c a b a ?
s0
20
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbcacababbccabcaba
s0
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) (s3, 'c', s9) (s9, 'a', s8) (s8, 'b', s2) (s2, 'a', s0) (s0, 'b', s6) (s6, 'b', s4) (s4, 'c', s7) (s7, 'c', s4) (s4, 'a', s5) (s5, 'b', s2) (s2, 'c', s9) (s9, 'a', s8) (s8, 'b', s2) (s2, 'a', s0) Final state: s0
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b b c c a b c a b a ?
9346157f-0b06-4eab-90f9-da8938f48ce3
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a ?
s0
10
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbcacaba
s0
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) (s3, 'c', s9) (s9, 'a', s8) (s8, 'b', s2) (s2, 'a', s0) Final state: s0
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a ?
91a8e883-2158-4d2d-a60b-681c036463e0
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b ?
s2
9
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbcacab
s2
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) (s3, 'c', s9) (s9, 'a', s8) (s8, 'b', s2) Final state: s2
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b ?
5314808e-3f9b-4c74-97ad-582d7c071352
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a ?
s8
8
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbcaca
s8
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) (s3, 'c', s9) (s9, 'a', s8) Final state: s8
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a ?
1295e78f-7ed5-4238-be29-c984fdc00d52
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c ?
s9
7
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbcac
s9
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) (s3, 'c', s9) Final state: s9
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c ?
2801d168-4a51-4044-a6db-6be10863fa8d
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a ?
s3
6
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbca
s3
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) Final state: s3
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a ?
f9698352-d9e3-4d62-bc67-819de6ca3e94
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c ?
s7
5
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbc
s7
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) Final state: s7
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c ?
a67d8b25-dc59-4580-b476-4d5c060420f5
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b ?
s4
4
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbb
s4
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) Final state: s4
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b ?
4367e5e4-92fd-4aab-bed3-cbc07605c22f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b ?
s3
3
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcb
s3
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) Final state: s3
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b ?
3c616657-6040-4cfb-a82a-de27d818977d
11393a98-fb5b-4f51-a804-c16b3dd8f77d
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s9", "s0", "s8", "s2"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s2"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s1"]}]}
3
{"a":{"s0":"s0","s1":"s2","s2":"s0","s3":"s0","s4":"s5","s5":"s7","s6":"s4","s7":"s3","s8":"s2","s9":"s8"},"b":{"s0":"s6","s1":"s6","s2":"s3","s3":"s4","s4":"s3","s5":"s2","s6":"s4","s7":"s9","s8":"s2","s9":"s2"},"c":{"s0":"s9","s1":"s9","s2":"s9","s3":"s9","s4":"s7","s5":"s3","s6":"s2","s7":"s4","s8":"s4","s9":"s1"}}
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ? Solution: Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4 Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b ?
s6
11
10
3
10_3
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
bcbbcacabab
s6
Transitions (current_state, input, next_state): (s0, 'b', s6) (s6, 'c', s2) (s2, 'b', s3) (s3, 'b', s4) (s4, 'c', s7) (s7, 'a', s3) (s3, 'c', s9) (s9, 'a', s8) (s8, 'b', s2) (s2, 'a', s0) (s0, 'b', s6) Final state: s6
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b c b b c a c a b a b ?
a963feb4-ad65-42db-9a39-3e63b42dc893
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ?
s4
8
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababccac
s4
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c ?
786443df-6ee5-4aae-8477-1846a23fae34
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a ?
s2
7
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababcca
s2
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) Final state: s2
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a ?
49d844d8-0e04-44f3-9407-26b7e8d56ddb
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b ?
s5
4
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
abab
s5
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) Final state: s5
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b ?
15427e7b-0db9-4169-85f2-33f708041f2b
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c ?
s6
5
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababc
s6
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) Final state: s6
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c ?
de82d770-b72f-4357-99bc-034701fe43c2
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b ?
s6
10
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababccacab
s6
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) Final state: s6
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b ?
1f5e2949-1de7-45b2-8133-96220083fdbb
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a ?
s8
3
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
aba
s8
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) Final state: s8
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a ?
eb58d45c-601c-4852-9b63-e0968ac78475
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c ?
s2
6
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababcc
s2
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) Final state: s2
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c ?
6974f88d-a898-44c6-85e9-2315fbfe0e39
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c ?
s2
11
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababccacabc
s2
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'c', s2) Final state: s2
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c ?
6511b125-8566-481f-8ff1-1f5caff2d89c
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c a b ?
s6
15
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababccacabcacab
s6
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) Final state: s6
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c a b ?
ffcc2603-13ac-43a1-920a-458e9ec0c27d
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c ?
s4
13
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababccacabcac
s4
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) Final state: s4
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c ?
18264c6e-ba3e-4844-9159-811844a370c7
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c a ?
s2
14
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababccacabcaca
s2
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) Final state: s2
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c a ?
26635294-3c4b-4bc8-9c94-009e0beece20
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c a b a ?
s8
16
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababccacabcacaba
s8
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'a', s8) Final state: s8
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c a b a ?
837466d2-5cb1-4ab7-acd6-b8c0916a9747
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c a b a c ?
s5
17
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababccacabcacabac
s5
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'a', s8) (s8, 'c', s5) Final state: s5
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c a b a c ?
617c1850-424c-4871-9d66-52dc89f23f0b
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c a b a c b ?
s6
18
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababccacabcacabacb
s6
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'a', s8) (s8, 'c', s5) (s5, 'b', s6) Final state: s6
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c a b a c b ?
45e615b9-630d-4169-8ec9-e93a0834c4c7
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c a b a c b c ?
s2
19
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababccacabcacabacbc
s2
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'a', s8) (s8, 'c', s5) (s5, 'b', s6) (s6, 'c', s2) Final state: s2
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c a b a c b c ?
ef5bb32f-0a87-4c3f-9d80-69fb1810cc60
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b ?
s6
2
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ab
s6
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) Final state: s6
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b ?
7d507423-07e6-403a-a83d-64ff5b21872e
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c a b a c b c c ?
s4
20
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababccacabcacabacbcc
s4
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'a', s8) (s8, 'c', s5) (s5, 'b', s6) (s6, 'c', s2) (s2, 'c', s4) Final state: s4
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a c a b a c b c c ?
aa1ff9f1-9450-41b4-b519-165928998ba1
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a ?
s2
12
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababccacabca
s2
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) (s2, 'b', s6) (s6, 'c', s2) (s2, 'a', s2) Final state: s2
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a b c a ?
10df2486-d041-42df-8edc-40fe0a9426cb
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a ?
s1
1
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
a
s1
Transitions (current_state, input, next_state): (s0, 'a', s1) Final state: s1
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a ?
9105f793-1c6b-479b-87e9-f565ad63615e
4385d77a-f252-468a-a00d-d3377b2feaa6
{"states": ["s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "s8", "s9"], "alphabets": "abc", "accepting_states": ["s0"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s5"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s2", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s2", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s2", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s3"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s2"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s2"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s1"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s3"]}]}
3
{"a":{"s0":"s1","s1":"s5","s2":"s2","s3":"s7","s4":"s2","s5":"s9","s6":"s8","s7":"s0","s8":"s6","s9":"s7"},"b":{"s0":"s7","s1":"s6","s2":"s6","s3":"s6","s4":"s6","s5":"s6","s6":"s0","s7":"s0","s8":"s5","s9":"s6"},"c":{"s0":"s2","s1":"s5","s2":"s4","s3":"s3","s4":"s9","s5":"s6","s6":"s2","s7":"s1","s8":"s5","s9":"s3"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a ?
s2
9
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ababccaca
s2
Transitions (current_state, input, next_state): (s0, 'a', s1) (s1, 'b', s6) (s6, 'a', s8) (s8, 'b', s5) (s5, 'c', s6) (s6, 'c', s2) (s2, 'a', s2) (s2, 'c', s4) (s4, 'a', s2) Final state: s2
Given the following FSM: a b c s0 s1 s7 s2 s1 s5 s6 s5 s2 s2 s6 s4 s3 s7 s6 s3 s4 s2 s6 s9 s5 s9 s6 s6 s6 s8 s0 s2 s7 s0 s0 s1 s8 s6 s5 s5 s9 s7 s6 s3 With the initial state: s0, and accepting states: ['s0'], What will be the state after reading the following input: a b a b c c a c a ?
74ef2cfa-31d5-4e69-9c07-6c441a4ef27f
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a c b b a a b ?
s3
19
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbbbbcbabacbbaab
s3
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) (s6, 'b', s3) (s3, 'b', s5) (s5, 'c', s6) (s6, 'b', s3) (s3, 'a', s10) (s10, 'b', s11) (s11, 'a', s11) (s11, 'c', s9) (s9, 'b', s7) (s7, 'b', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s3) Final state: s3
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a c b b a a b ?
725b8a34-f294-4f50-b32e-6689c08bfe86
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c ?
s4
1
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
c
s4
Transitions (current_state, input, next_state): (s0, 'c', s4) Final state: s4
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c ?
e40afa2b-5e82-48c5-b1de-e1a704703a67
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a ?
s6
2
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
ca
s6
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) Final state: s6
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a ?
1f8d740c-b4ff-4556-8f5b-d4f25b9919c1
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b ?
s3
3
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cab
s3
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) Final state: s3
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b ?
9530bd95-732d-4a16-bcc5-b9d513ba282e
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c ?
s0
4
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabc
s0
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) Final state: s0
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c ?
a58f9b01-dee3-4d7e-8b87-471b643593c9
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b ?
s6
6
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbb
s6
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) Final state: s6
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b ?
490a66f5-2322-4c87-b285-f824fcb71836
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b ?
s3
7
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbbb
s3
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) (s6, 'b', s3) Final state: s3
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b ?
1f0bf7e0-2a20-4cda-8eca-5ae155ddb040
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b ?
s5
8
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbbbb
s5
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) (s6, 'b', s3) (s3, 'b', s5) Final state: s5
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b ?
a607675c-f85b-4d7d-a589-2247ce3e57e5
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c ?
s6
9
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbbbbc
s6
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) (s6, 'b', s3) (s3, 'b', s5) (s5, 'c', s6) Final state: s6
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c ?
10a16d20-4f25-4981-89bd-cb8abb955987
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b ?
s1
5
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcb
s1
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) Final state: s1
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b ?
d37fa2da-966f-4671-b642-7d7a7eddb2ba
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a ?
s10
11
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbbbbcba
s10
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) (s6, 'b', s3) (s3, 'b', s5) (s5, 'c', s6) (s6, 'b', s3) (s3, 'a', s10) Final state: s10
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a ?
aa606e7b-4cf6-4204-8a95-29aceb34f929
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b ?
s3
10
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbbbbcb
s3
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) (s6, 'b', s3) (s3, 'b', s5) (s5, 'c', s6) (s6, 'b', s3) Final state: s3
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b ?
424c9e77-2793-4264-9ff1-2622025f5c78
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a c b b a a ?
s6
18
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbbbbcbabacbbaa
s6
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) (s6, 'b', s3) (s3, 'b', s5) (s5, 'c', s6) (s6, 'b', s3) (s3, 'a', s10) (s10, 'b', s11) (s11, 'a', s11) (s11, 'c', s9) (s9, 'b', s7) (s7, 'b', s0) (s0, 'a', s4) (s4, 'a', s6) Final state: s6
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a c b b a a ?
aba96c9d-0287-4b89-90e9-4696498cd90e
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a c b b a ?
s4
17
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbbbbcbabacbba
s4
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) (s6, 'b', s3) (s3, 'b', s5) (s5, 'c', s6) (s6, 'b', s3) (s3, 'a', s10) (s10, 'b', s11) (s11, 'a', s11) (s11, 'c', s9) (s9, 'b', s7) (s7, 'b', s0) (s0, 'a', s4) Final state: s4
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a c b b a ?
c1a5b85a-b04d-4bdd-8e48-97ce9ee75c6d
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a c b b ?
s0
16
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbbbbcbabacbb
s0
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) (s6, 'b', s3) (s3, 'b', s5) (s5, 'c', s6) (s6, 'b', s3) (s3, 'a', s10) (s10, 'b', s11) (s11, 'a', s11) (s11, 'c', s9) (s9, 'b', s7) (s7, 'b', s0) Final state: s0
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a c b b ?
9d64d625-431e-43dc-bdaf-11b03d6665f6
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a c b b a a b b ?
s5
20
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbbbbcbabacbbaabb
s5
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) (s6, 'b', s3) (s3, 'b', s5) (s5, 'c', s6) (s6, 'b', s3) (s3, 'a', s10) (s10, 'b', s11) (s11, 'a', s11) (s11, 'c', s9) (s9, 'b', s7) (s7, 'b', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'b', s5) Final state: s5
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a c b b a a b b ?
43113294-e24d-4a2f-a4ea-de6b6af1857f
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a c ?
s9
14
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbbbbcbabac
s9
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) (s6, 'b', s3) (s3, 'b', s5) (s5, 'c', s6) (s6, 'b', s3) (s3, 'a', s10) (s10, 'b', s11) (s11, 'a', s11) (s11, 'c', s9) Final state: s9
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a c ?
5285e1c6-5e66-4b0c-919f-96905d404434
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a ?
s11
13
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbbbbcbaba
s11
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) (s6, 'b', s3) (s3, 'b', s5) (s5, 'c', s6) (s6, 'b', s3) (s3, 'a', s10) (s10, 'b', s11) (s11, 'a', s11) Final state: s11
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a ?
ae74ca37-04ca-4ca8-a9b4-4f7f1323aa7d
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b ?
s11
12
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbbbbcbab
s11
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) (s6, 'b', s3) (s3, 'b', s5) (s5, 'c', s6) (s6, 'b', s3) (s3, 'a', s10) (s10, 'b', s11) Final state: s11
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b ?
452daa1a-c30d-4cee-9339-c274ef22024a
44125723-88fb-45b8-a92b-c07b0029ab20
{"states": ["s0", "s1", "s3", "s4", "s5", "s6", "s7", "s9", "s10", "s11"], "alphabets": "abc", "accepting_states": ["s1", "s9", "s10", "s4", "s3"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s1", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s1", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s3", "symbol": "b", "toStates": ["s5"]}, {"fromState": "s3", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s1"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s7"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s6"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s3"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s10"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s3"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s11"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s6"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}]}
4
{"a":{"s0":"s4","s1":"s6","s3":"s10","s4":"s6","s5":"s7","s6":"s10","s7":"s10","s9":"s3","s10":"s6","s11":"s11"},"b":{"s0":"s1","s1":"s6","s3":"s5","s4":"s1","s5":"s3","s6":"s3","s7":"s0","s9":"s7","s10":"s11","s11":"s6"},"c":{"s0":"s4","s1":"s5","s3":"s0","s4":"s5","s5":"s6","s6":"s10","s7":"s4","s9":"s9","s10":"s11","s11":"s9"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a c b ?
s7
15
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
cabcbbbbcbabacb
s7
Transitions (current_state, input, next_state): (s0, 'c', s4) (s4, 'a', s6) (s6, 'b', s3) (s3, 'c', s0) (s0, 'b', s1) (s1, 'b', s6) (s6, 'b', s3) (s3, 'b', s5) (s5, 'c', s6) (s6, 'b', s3) (s3, 'a', s10) (s10, 'b', s11) (s11, 'a', s11) (s11, 'c', s9) (s9, 'b', s7) Final state: s7
Given the following FSM: a b c s0 s4 s1 s4 s1 s6 s6 s5 s3 s10 s5 s0 s4 s6 s1 s5 s5 s7 s3 s6 s6 s10 s3 s10 s7 s10 s0 s4 s9 s3 s7 s9 s10 s6 s11 s11 s11 s11 s6 s9 With the initial state: s0, and accepting states: ['s1', 's9', 's10', 's4', 's3'], What will be the state after reading the following input: c a b c b b b b c b a b a c b ?
da790c51-6ff6-4abe-8b41-ed866d69eb61
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a ?
s4
11
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaaabcca
s4
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'c', s5) (s5, 'c', s0) (s0, 'a', s4) Final state: s4
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a ?
b3b6aba2-5922-48ae-8275-eb4966104dfd
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b a b a c b ?
s4
18
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaaabccaababacb
s4
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'c', s5) (s5, 'c', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'a', s6) (s6, 'b', s9) (s9, 'a', s6) (s6, 'c', s0) (s0, 'b', s4) Final state: s4
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b a b a c b ?
6d58817b-b958-45ef-8438-f38ffccc73f0
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b a b a c ?
s0
17
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaaabccaababac
s0
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'c', s5) (s5, 'c', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'a', s6) (s6, 'b', s9) (s9, 'a', s6) (s6, 'c', s0) Final state: s0
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b a b a c ?
9055a2cc-7fcf-4aa1-aae1-8b8e342fd2d1
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b a b a ?
s6
16
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaaabccaababa
s6
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'c', s5) (s5, 'c', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'a', s6) (s6, 'b', s9) (s9, 'a', s6) Final state: s6
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b a b a ?
a58fc6aa-1362-4f69-91f0-d7fdbdfa5610
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b a b ?
s9
15
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaaabccaabab
s9
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'c', s5) (s5, 'c', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'a', s6) (s6, 'b', s9) Final state: s9
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b a b ?
db230f13-5d3d-426d-9414-f8e42b35cb5e
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b a ?
s6
14
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaaabccaaba
s6
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'c', s5) (s5, 'c', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'a', s6) Final state: s6
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b a ?
38b5ef98-44bc-40c8-bd1b-bd3788304642
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b ?
s9
13
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaaabccaab
s9
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'c', s5) (s5, 'c', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) Final state: s9
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b ?
c40016ab-7ef4-487e-b93b-b48a1b63b2ac
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a ?
s6
12
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaaabccaa
s6
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'c', s5) (s5, 'c', s0) (s0, 'a', s4) (s4, 'a', s6) Final state: s6
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a ?
bdc2f7a3-9e9a-4aa5-80ca-45fbcb0662cd
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b a b a c b c ?
s11
19
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaaabccaababacbc
s11
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'c', s5) (s5, 'c', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'a', s6) (s6, 'b', s9) (s9, 'a', s6) (s6, 'c', s0) (s0, 'b', s4) (s4, 'c', s11) Final state: s11
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b a b a c b c ?
e0a5f2a5-2c73-4496-9ae7-b04837e2fd37
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c ?
s5
9
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaaabc
s5
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'c', s5) Final state: s5
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c ?
64e2827b-d46d-41fa-ae79-c2495aa4751d
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b ?
s9
8
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaaab
s9
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) Final state: s9
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b ?
4aaca7f9-a9d1-4421-aa92-358464dc538a
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c ?
s0
10
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaaabcc
s0
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'c', s5) (s5, 'c', s0) Final state: s0
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c ?
6998c1a2-a9d9-4074-8373-6621744e434e
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b ?
s4
1
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
b
s4
Transitions (current_state, input, next_state): (s0, 'b', s4) Final state: s4
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b ?
2a1a6366-1a52-45b7-8e63-5a7e549f0c3c
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b ?
s11
2
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bb
s11
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) Final state: s11
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b ?
19e591c0-db5f-49cb-bd71-bae39b723ee7
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a ?
s8
3
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bba
s8
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) Final state: s8
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a ?
cfe1d93a-48ad-4c75-8683-27a4e08757e8
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b a b a c b c a ?
s8
20
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaaabccaababacbca
s8
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'c', s5) (s5, 'c', s0) (s0, 'a', s4) (s4, 'a', s6) (s6, 'b', s9) (s9, 'a', s6) (s6, 'b', s9) (s9, 'a', s6) (s6, 'c', s0) (s0, 'b', s4) (s4, 'c', s11) (s11, 'a', s8) Final state: s8
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a b c c a a b a b a c b c a ?
a6eaf414-ce3f-4da4-ac84-0a95ad16c518
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a ?
s0
5
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaa
s0
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) Final state: s0
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a ?
a53ba3bd-03a6-4fbd-a3d0-ace8a735a64f
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a ?
s4
6
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaa
s4
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) Final state: s4
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a ?
c4b005ee-270d-4bb8-9c7e-8645b3358316
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a ?
s6
7
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaaaaa
s6
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) (s6, 'a', s0) (s0, 'a', s4) (s4, 'a', s6) Final state: s6
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a a a a ?
27745b5b-a72e-40c3-a302-23c483a7ca87
4e460e36-5bbf-472f-b74e-27d3aa517626
{"states": ["s0", "s4", "s5", "s6", "s7", "s8", "s9", "s10", "s11", "s12"], "alphabets": "abc", "accepting_states": ["s4", "s11", "s8", "s9", "s5", "s12", "s6"], "initial_state": "s0", "transitions": [{"fromState": "s0", "symbol": "a", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s0", "symbol": "c", "toStates": ["s4"]}, {"fromState": "s4", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s4", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s4", "symbol": "c", "toStates": ["s11"]}, {"fromState": "s5", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s5", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s5", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "a", "toStates": ["s0"]}, {"fromState": "s6", "symbol": "b", "toStates": ["s9"]}, {"fromState": "s6", "symbol": "c", "toStates": ["s0"]}, {"fromState": "s7", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "b", "toStates": ["s12"]}, {"fromState": "s7", "symbol": "c", "toStates": ["s10"]}, {"fromState": "s8", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s8", "symbol": "b", "toStates": ["s0"]}, {"fromState": "s8", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s9", "symbol": "a", "toStates": ["s6"]}, {"fromState": "s9", "symbol": "b", "toStates": ["s7"]}, {"fromState": "s9", "symbol": "c", "toStates": ["s5"]}, {"fromState": "s10", "symbol": "a", "toStates": ["s9"]}, {"fromState": "s10", "symbol": "b", "toStates": ["s11"]}, {"fromState": "s10", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s11", "symbol": "a", "toStates": ["s8"]}, {"fromState": "s11", "symbol": "b", "toStates": ["s10"]}, {"fromState": "s11", "symbol": "c", "toStates": ["s9"]}, {"fromState": "s12", "symbol": "a", "toStates": ["s12"]}, {"fromState": "s12", "symbol": "b", "toStates": ["s4"]}, {"fromState": "s12", "symbol": "c", "toStates": ["s5"]}]}
4
{"a":{"s0":"s4","s4":"s6","s5":"s8","s6":"s0","s7":"s12","s8":"s6","s9":"s6","s10":"s9","s11":"s8","s12":"s12"},"b":{"s0":"s4","s4":"s11","s5":"s4","s6":"s9","s7":"s12","s8":"s0","s9":"s7","s10":"s11","s11":"s10","s12":"s4"},"c":{"s0":"s4","s4":"s11","s5":"s0","s6":"s0","s7":"s10","s8":"s5","s9":"s5","s10":"s9","s11":"s9","s12":"s5"}}
Given the following FSM: a b c s0 s0 s6 s9 s1 s2 s6 s9 s2 s0 s3 s9 s3 s0 s4 s9 s4 s5 s3 s7 s5 s7 s2 s3 s6 s4 s4 s2 s7 s3 s9 s4 s8 s2 s2 s4 s9 s8 s2 s1 With the initial state: s0, and accepting states: ['s9', 's0', 's8', 's2'], What will be the state after reading the following input: b ? Solution: Transitions (current_state, input, next_state): (s0, 'b', s6) Final state: s6 Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a ?
s6
4
10
3
10_3
c54485ec-caf6-47e8-a047-b5b7e062fc6f
11393a98-fb5b-4f51-a804-c16b3dd8f77d
bbaa
s6
Transitions (current_state, input, next_state): (s0, 'b', s4) (s4, 'b', s11) (s11, 'a', s8) (s8, 'a', s6) Final state: s6
Given the following FSM: a b c s0 s4 s4 s4 s4 s6 s11 s11 s5 s8 s4 s0 s6 s0 s9 s0 s7 s12 s12 s10 s8 s6 s0 s5 s9 s6 s7 s5 s10 s9 s11 s9 s11 s8 s10 s9 s12 s12 s4 s5 With the initial state: s0, and accepting states: ['s4', 's11', 's8', 's9', 's5', 's12', 's6'], What will be the state after reading the following input: b b a a ?