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

For S (0+1)* let d(S) denotes the decimal value of S (e.g., d(101) = 5).
Let L = S (0+1)* | d(s) mod 5 = 2 and d(s) mod 7 ≠ 4
Which one of the following statements is true?


A
L is recusively enumerable, but not recursive
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
L is recursive, but not context-free
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
L is context-free, but not regular
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
L is regular
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D L is regular

There is a DFA corresponding to d(S) mod 5 = 2 as well as d(S) mod 7 ≠ 4. Therefore, both of them are regular languages. Let, they be L1 and L2. The given language is L1 L2
Since regular languages are closed under intersection and complementation, the given language is also regular.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Ethanol and Ethanoic Acid
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon