Home » Theory of Computation » Theory of computation miscellaneous » Question

Theory of computation miscellaneous

Theory of Computation

  1. If the strings of a language L can be effectively enumerated in lexicographic (i.e., alphabetic) order, which of the following statements is true?
    1. L is necessarily finite
    2. L is regular but not necessarily finite
    3. L is context-free but not necessarily regular
    4. L is recursive but not necessarily context-free
Correct Option: D

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 cannot construct PDA for language L. So, the given language is not context free. Thus, option (D) is correct.



Your comments will be displayed only after manual approval.