Machine-translated by Google. Questions are authored in English.
Top

Recursively Enumerable Languages Questions and Answers

1.

Consider the following types of languages: \(L_{1}\) : Regular, \(L_{2}\) : Context-free, \(L_{3}\) : Recursive, \(L_{4}\) : Recursively enumerable. Which of the following is/are TRUE?

I. \(\overline{L_{3}} \cup L_{4}\) is recursively enumerable
II. \(\overline{L_{2}} \cup L_{3}\) is recursive
III. \(L_{1}^{*} \cap L_{2}\) is context-free
IV. \(L_{1} \cup \overline{L_{2}}\) is context-free

Exam Year(s)

GATE CS - 2016,

Answer: D

The true statements are I, II and III only.

  • I: the complement of a recursive language is recursive, hence recursively enumerable, and the union of two recursively enumerable languages is recursively enumerable. True.
  • II: every context-free language is recursive (membership is decidable, for example by the CYK algorithm), so its complement is recursive, and recursive languages are closed under union. True.
  • III: \(L_{1}^{*}\) is regular, and the intersection of a regular language with a context-free language is context-free. True.
  • IV: context-free languages are not closed under complement, so \(\overline{L_{2}}\) need not be context-free, and its union with a regular language need not be either. Not always true.

So the options listing only I, or I with III, leave out true statements, and the option including IV includes a false one.

Please log in or register to report this question.

2.

The set of all recursively enumerable languages is

Exam Year(s)

GATE CS - 2018,

Answer: B

The recursively enumerable languages are closed under intersection.

Given Turing machines that accept L1 and L2, a new machine can run both on the input, alternating steps, and accept once both have accepted. It accepts exactly the strings in both languages, so L1 ∩ L2 is recursively enumerable.

The others are false. RE languages are not closed under complement: the halting language is RE, but its complement is not, since a language whose complement is also RE would be recursive. The recursive languages are a subset of the RE ones, not the other way round. And there are only countably many Turing machines, so the set of RE languages is countable.

Please log in or register to report this question.

3.

Which of the following production forms belongs to unrestricted grammar (Type 0) :

(i) S → ASA A → BCa BC → Aa
(ii) S → aSa/∈
(iii) BSA → aSb/ASB, A → aB/b B → Bb/a

Exam Year(s)

MH SET - 2020, SET Exam - 2020,

Answer: D

All three belong to unrestricted grammars, so the answer is (i), (ii) and (iii) only.

A Type 0 (unrestricted) grammar allows productions \(\alpha \rightarrow \beta\) where \(\alpha\) is any string containing at least one non-terminal and \(\beta\) is any string. Every production in the three sets has a non-terminal on its left-hand side, including the context-sensitive looking BC → Aa and BSA → aSb, and the context-free S → aSa/∈.

Because the Chomsky hierarchy is nested, context-free and context-sensitive productions are also Type 0, so no set is excluded and the narrower options are wrong.

Please log in or register to report this question.

4.

Which of the following are incorrect statements ?

(i) A language L is said to be recursively enumerable if there exists a Turing machine that accepts L
(ii) Let K \(\ge\) 1 be an integer. Any K-tape Turing machine cannot be converted to an equivalent one tape Turing machine
(iii) Every computational process which can be considered to be algorithm can be converted to a Turing machine

Exam Year(s)

MH SET - 2021, SET Exam - 2021,

Answer: B

Only statement (ii) is incorrect, so the answer is (ii) only.

Statement (ii) is false: for any integer K \(\ge\) 1, a K-tape Turing machine can be converted into an equivalent single-tape Turing machine, which stores the K tapes as tracks on one tape and marks each head position. The simulation is slower, roughly quadratic in time, but accepts the same language.

Statement (i) is the definition of a recursively enumerable language: some Turing machine accepts it. Statement (iii) is the Church-Turing thesis, accepted as true. Options that include (i) or (iii) are therefore wrong.

Please log in or register to report this question.

5.

Which of the following is a partial recursive function ?

Exam Year(s)

Tripura Public Service Commission - 2019,

Answer: D

The answer is All of the above.

Post systems, the λ-calculus (printed 'x-calculus') and the random access machine (RAM) are each a model of computation that computes exactly the partial recursive functions, the same class a Turing machine computes. Their equivalence is the basis of the Church-Turing thesis.

So none of the three is singled out: each is an equivalent formulation of partial recursive computation, and choosing just one leaves out the other two.

Please log in or register to report this question.

6.

Given the following statements :

(i) Recursive enumerable sets are closed under complementation.
(ii) Recursive sets are closed under complementation. Which is/are the correct statements ?

Exam Year(s)

UGC NET - 2012,

Answer: B

Recursive sets are closed under complementation: if a total machine decides the set, swapping its accepting and rejecting states decides the complement, so statement (ii) is true. Recursively enumerable sets are not closed under complementation, since if a set and its complement were both recursively enumerable, the set would be recursive, and the halting set is recursively enumerable but not recursive. So statement (i) is false. The keyed answer is only (ii).

Please log in or register to report this question.

7.

Consider the following statements :

I. Recursive languages are closed under complementation.
II. Recursively enumerable languages are closed under union.
III. Recursively enumerable languages are closed under complementation.
Which of the above statements are true ?

Exam Year(s)

UGC NET - 2012,

Answer: B

Statements I and II are true, so the answer is I and II.

Recursive languages are closed under complementation, because a machine that always halts can swap its accepting and rejecting answers (I). Recursively enumerable languages are closed under union, because a machine can run the two machines in turn and accept if either accepts (II). They are not closed under complementation (III): if both a language and its complement were recursively enumerable, the language would be recursive, and there are recursively enumerable languages that are not recursive. So statement III is false, and the options containing III are wrong.

Please log in or register to report this question.

8.

Given the following statements : S1 : Every context-sensitive language L is recursive. S2 : There exists a recursive language that is not context sensitive. Which statement is correct ?

Exam Year(s)

UGC NET - 2013,

Answer: D

Both statements are correct. S1: every context-sensitive language is recursive, since a linear-bounded automaton has a finite number of configurations for an input and so always halts. S2: there exist recursive languages that are not context sensitive, which can be shown by a diagonalization argument over the enumerable context-sensitive grammars.

So the context-sensitive languages are a proper subset of the recursive languages, and only the option saying both are correct fits.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: Recursively Enumerable Languages Questions and Answers || Recursively Enumerable Languages MCQ Questions and Answers || Recursively Enumerable Languages GK Questions and Answers || Recursively Enumerable Languages GK MCQ Questions || Recursively Enumerable Languages Multiple Choice Questions and Answers || Recursively Enumerable Languages GK || GK on Recursively Enumerable Languages || Theory of Computation Questions and Answers || Theory of Computation MCQ Questions and Answers || Theory of Computation GK Questions and Answers || GK on Theory of Computation