Consider the regular expression (0+1) (0+1)_n times. The minimum state finite automation that recognizes the language represented by this regular expression contains
A
n + 2 states
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
None of these
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
n states
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
n + 1 states
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution
The correct option is D n + 1 states The minimum state finite automation that recognizes the language represented by regular expression (0+1) (0+1) ...n times is n + 1.
This language contains strings with exactly length n.
(n+1) states are required to count length upto n. No trap state is required since we are making minimal FA, not minimal DFA.