If the strings of a language L can be effectively enumerated in lexicographic (i.e., alphabetic) order, which of the following statements is true?
A
L is regular but not necessarily finite
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
L is context free but not necessarily regular
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
L is recursive but not necessarily context free
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
L is necessarily finite
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is C L is recursive but not necessarily context free Theorem: A language is recursive if and only if it can be effectively enumerated in lexicographic order.
Based on this theorem clearly the answer is (d).