Which of the following statements is not correct ?
Recursive languages are not closed under intersection
The question asks us to identify the statement that is not correct regarding formal languages, specifically focusing on recursive and recursively enumerable languages and their properties like closure under operations.
Let's analyze each statement provided in the options:
This statement is a fundamental concept in the theory of computation. A language is recursive if there exists a Turing Machine (TM) that halts on all inputs and accepts exactly the strings in the language. This TM is called a decider.
A language is recursively enumerable (RE) if there exists a Turing Machine that halts and accepts all strings in the language, but may loop forever on strings not in the language. This TM is called a recognizer.
Since a decider TM for a recursive language always halts, it also serves as a recognizer for the same language (it halts and accepts strings in the language, and halts and rejects strings not in the language, which satisfies the condition of a recognizer that halts and accepts strings in the language). Therefore, every recursive language is also recursively enumerable.
This statement is correct.
The language L = {0n 1n 0n | n $\ge$ 1} consists of strings with an equal number of 0s, followed by an equal number of 1s, followed by the same equal number of 0s. For example, 010, 001100, 000111000 are in L.
This language is known to be a context-sensitive language. Context-sensitive languages are a proper subset of recursive languages, and recursive languages are a proper subset of recursively enumerable languages.
A Turing Machine can be constructed to decide this language. The TM could, for instance, scan the input, mark off a 0, then mark off a 1, then mark off a 0, and repeat this process until all characters are marked. If it successfully marks all characters and the counts of 0s in the first and third parts match the count of 1s in the second part, the string is accepted. If at any point the pattern is wrong or the counts don't match, the string is rejected. Since this TM can decide the language (always halts), the language is recursive. As established earlier, every recursive language is also recursively enumerable.
Therefore, this statement is correct.
Closure under intersection means that if you take two languages L1 and L2 that are both recursive, their intersection L1 $\cap$ L2 is also a recursive language.
Let L1 and L2 be two recursive languages. By definition, there exists a decider TM, say M1, for L1, and a decider TM, say M2, for L2. A decider always halts on all inputs.
To construct a decider for L1 $\cap$ L2, we can build a new Turing Machine, say M3. For any input string w, M3 can do the following:
Since both M1 and M2 are deciders and always halt, M3 will also always halt on any input w. M3 accepts w if and only if both M1 and M2 accept w, which means w is in L1 $\cap$ L2. Thus, M3 is a decider for L1 $\cap$ L2.
Therefore, L1 $\cap$ L2 is a recursive language. This shows that recursive languages are closed under intersection.
This statement is correct.
This statement directly contradicts the conclusion reached from the analysis of Statement 3. We have shown constructively that if two languages L1 and L2 are recursive, their intersection L1 $\cap$ L2 is also recursive. This means recursive languages *are* closed under intersection.
Therefore, this statement is not correct.
Based on our analysis, Statements 1, 2, and 3 are correct properties or facts about recursive and recursively enumerable languages. Statement 4 is false.
| Statement | Analysis | Correctness |
|---|---|---|
| Every recursive language is recursively enumerable. | Deciders for recursive languages are also recognizers. | Correct |
| L = {0n 1n 0n | n = 1, 2, 3, ....} is recursively enumerable. | This language is recursive (decidable), thus recursively enumerable. | Correct |
| Recursive languages are closed under intersection. | A decider for L1 $\cap$ L2 can be constructed from deciders for L1 and L2. | Correct |
| Recursive languages are not closed under intersection. | This contradicts the closure property shown above. | Not Correct |
The statement that is not correct is that recursive languages are not closed under intersection.
| Property | Recursive Languages | Recursively Enumerable Languages |
|---|---|---|
| Union | Closed | Closed |
| Intersection | Closed | Closed |
| Complementation | Closed | Not Closed |
| Concatenation | Closed | Closed |
| Kleene Star (*) | Closed | Closed |
The key difference between a recursive language and a recursively enumerable (RE) language lies in the behavior of the Turing Machine on inputs not in the language.
The set of recursive languages is a proper subset of the set of recursively enumerable languages. This means there exist recursively enumerable languages that are not recursive. An example of such a language is the Halting Problem: LH = { <M>, w > | Turing Machine M halts on input w }. This language is recursively enumerable but not recursive.
The closure properties under set operations like union, intersection, complementation, concatenation, and Kleene star are important for classifying language classes. Recursive languages are closed under all these standard operations except complementation, which distinguishes them from recursively enumerable languages (RE languages are closed under everything except complementation).
Consider two lists A and B of three strings on {0, 1}
X:
List A | List B |
1 | 111 |
10111 | 10 |
10 | 0 |
Y:
List A | List B |
10 | 101 |
011 | 11 |
101 | 011 |
Which of the following is true?
Consider the following statements:
S 1: These exists no algorithm for deciding if any two Turing machines M 1and M 2accept the same language.
S 2: Let M 1and M 2be arbitrary Turing machines. The problem to determine L(M 1) ⊆ L(M 2) is undecidable.
Which of the statements is (are) correct?Which of the following problems is/are decidable problem(s) (recursively enumerable) on a Turing machine M?
(a) G is a CFG with L(G) = ϕ
(b) There exist two TMs M1 and M2 such that L(M) ⊆{L(M1) U L(M2)} = language of all TMs
(c) M is a TM that accepts w using at most 2 |w| cells of tape
Given below are two statements:
Statement I: The problem "Is L 1∧ L 2 = ϕ?" is undecidable for context sensitive languages L 1 and L 2.
Statement II: The problem "Is WϵL?" is decidable for context sensitive language L, (where W is a string).
In the light of the above statements, choose the correct answer from the options given below
Let G 1and G 2be arbitrary context free languages and R an arbitrary regular language.
Consider the following problems:
(A) Is L(G 1) = L(G 2)?
(B) Is L(G 2) ≤ L(G 1)?
(C) Is L(G 1) = R?
Which of the problems are undecidable ?
Choose the correct answer from the options given below: