The total number of states to build the given language using DFA: L = {w | w has exactly 2 a’s and at least 2 b’s}

The total number of states to build the given language using DFA:
L = {w | w has exactly 2 a’s and at least 2 b’s}
A. 10
B. 11
C. 12
D. 13
 
Answer: A
Explanation: We need to make the number of a as fixed i.e. 2 and b can be 2 or more. Thus, using this condition a finite automata can be created using 1 states.
 

Tìm kiếm

Back
Top