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

Theory of computation miscellaneous

Theory of Computation

  1. For S ∈ (0 + 1)* let d(s) denotes the decimal value of s (e.g., d(101) = 5)
    Which one of the following statements is true?
    1. L is recursively enumerable but not recursive
    2. L is recursively but not context-free
    3. L is context-free but not regular
    4. L is regular
Correct Option: D

Given that, d(s) mod 5 = 2 and d(s) mod 7 ¹ 4} Both the languages are regular languages, since there exists deterministic finite automata for both of them. We also have an algorithm to check the regular nature of the language therefore L is regular.



Your comments will be displayed only after manual approval.