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 necessarily finite
(B) L is regular but not necessarily finite
(C) L is context free but not necessarily regular
(D) L is recursive but not necessarily context free
Answer: (D)
Explanation:
The strings of a language L can be effectively enumerated means a Turing machine exists for language L which will enumerate all valid strings of the language.
If the string is in lexicographic order then TM will accept the string and halt in the final state.
But, if the string is not lexicographic order then TM will reject the string and halt in non-final state.
Thus, L is recursive language.
We can not construct PDA for language L. So, the given language is not context free.
Thus, option (D) is correct.
Please comment below if you find anything wrong in the above post.
Recommended Posts:
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 2
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 3
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 4
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 6
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 7
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 8
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 9
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 10
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 11
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 12
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 13
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 14
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 23
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 5
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 1
- GATE | Sudo GATE 2020 Mock III (24 January 2019) | Question 24
- GATE | Sudo GATE 2020 Mock II (10 January 2019) | Question 30
- GATE | Sudo GATE 2020 Mock II (10 January 2019) | Question 46
- GATE | Sudo GATE 2020 Mock II (10 January 2019) | Question 47
- GATE | Sudo GATE 2020 Mock II (10 January 2019) | Question 48

