edited by
622 views
1 votes
1 votes

Consider a language $L$ that is recognized by a machine $M$. Which of the following statements might not be true?

  1. If $M$ is a deterministic finite automaton, then $L$ can be represented by a regular expression.
  2. If $M$ is a Turing machine, then $L$ is recursive.
  3. If $M$ is a deterministic pushdown automaton, then $L$ can be represented by a context-free grammar.
  4. If $M$ is a non-deterministic pushdown automaton, then $L$ is recursively enumerable.
edited by

2 Answers

Best answer
2 votes
2 votes
The Chomsky hierarchy of language classes and the corresponding machines that decide them.

Regular languages are the simplest. L is regular if and only if there exists a deterministic finite state automaton M that decides L.

Also, L is regular if and only if there exists a nondeterministic finite state automaton M that decides L. Finally, L is regular if and only if there exists a regular expression E such that E generates a string w if and only if w is an element of L.

All regular languages are context free. L is context free if and only if there exists a nondeterministic pushdown automaton M that decides L. (Note: The class of languages decided by deterministic pushdown automata is a strict subset of the class of context free languages.)
L is context free if and only if there exists a context free grammar G such that G generates a string w if and only if w is an element of L.

All context free languages are recursive. L is recursive if and only if there exists a Turing machine M that decides L. (It appears that the decidable languages are not technically a member of the Chomsky hierarchy, but they fit in there nicely.)

All recursive languages are recursively enumerable. L is recursively enumerable if and only if there exists a Turing machine M that recognizes L.

Choice B is not true because if L is recognized by Turing machine M, then this only implies that L is recursively enumerable. It does not imply that L is recursive, since M might not be able to decide L.
selected by
–1 votes
–1 votes
how?

in option D,

it is CFl then it RE also.

so why not option D?
Answer:

Related questions

5 votes
5 votes
1 answer
2
1 votes
1 votes
5 answers
3
Bikram asked Jan 24, 2017
781 views
$S\rightarrow A0 B$$A\rightarrow BB \mid 0$$B\rightarrow AA \mid 1$ The number of terminal strings of length $5$ generated by the context-free grammar shown above is ____...
3 votes
3 votes
1 answer
4
Bikram asked Jan 24, 2017
835 views
Consider these three grammars.$$\begin{array}{|c|c|c|} \hline \textbf{Grammar G1:} & \textbf{Grammar G2:} & \textbf{Grammar G3:} \\ \hline E\rightarrow E+T \mid T & E\r...