Let w be a binary string over {0, 1}* and d(w) denote its decimal value. The number of states in the minimal DFA corresponding to the set of all binary w, such that w ends with 1 end d(w) is even, is
A
1
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
4
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
3
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
6
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is A 1 If a number is even. It will always end with a 0. So there is no such string w which is both even, as well as ends will a 1. Always remember, LSB = 0 implies number is even, else odd.
Hence language generated in this case will be empty.
Therefore for empty language, the number of states required = 1.