• retagged by
6,101 views
3 3 votes
Given a TM M, complement of L(M) is context-free. True/False?

1 Answer

2 2 votes

"There exists a Non-Context-Free Recursive Language whose complement is Context Free."

We know that CFLs are not closed under Complement.

This implies that there exists a CFL, $L$ such that $\widetilde{L}$ is not Context Free.

Since every Context Free Language is also a Recursive Language, $L$ must be a Recursive Language.

Since Recursive Languages are closed under Complement, $\widetilde{L}$ must be a Recursive Language.

So $\widetilde{L}$ is a Non-Context-Free Recursive Language whose complement is a Context Free Language.


"There exists a Non-Context-Free Recursive language whose complement is not is also not Context Free."

Consider the following language $A$, 

$A =\left \{ a^{p} \mid \text{p is a prime number} \right \}$.

It is known that $A$ is a Non-Context-Free Recursive language.

but checking 

1) If a number is prime &

2)If it is a non-prime,

both requires division.

So I guess here both $A$ and $\widetilde{A}$ are Non-Context-Free Recursive Languages.

So this part should also be true.

Hence, I guess the statement  

"Complement of a Recursive but not Context Free Language is Context Free."

should neither be a Tautology nor a Contradiction, it should be a Contingency.

 

• edited by
Position:
Show:

Related questions

0 0 votes
1 1 answer
2.1k
2.1k views
Xylene asked Jun 15, 2017
2,111 views
Can anyone give me an example of a language which is not a CSL but can be accepted using a Halting TM?
5 5 votes
1 answers 1 answer
2.6k
2.6k views
Shefali asked Sep 11, 2015
2,569 views
Which of the following is not a recursive language?a. Regular languageb. {$\langle M,w \rangle$ | $M$ is a DFA that accepts $w$}c. {$\langle M \rangle$ | $M$ is a TM and ...
0 0 votes
2 2 answers
1.8k
1.8k views
harsh yadav asked Dec 14, 2018
1,824 views
Can a language exist which is undecidable as well as Recursive language ? If yes please give example.
0 0 votes
0 0 answers
513
513 views
Abhisek Tiwari 4 asked Nov 5, 2018
513 views
https://gateoverflow.in/86546/theory-of-computation-22Total recursive functions are similar to a) Recursive Languages b) Recursive Enumerable languages c) can not re...