CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

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.

For example, for n = 2 the design is shown below.

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Evolutionary Relationships_Tackle
Watch in App
Join BYJU'S Learning Program
CrossIcon