in Theory of Computation
11,385 views
37 votes
37 votes

Which of the following is true?

  1. The complement of a recursive language is recursive
  2. The complement of a recursively enumerable language is recursively enumerable
  3. The complement of a recursive language is either recursive or recursively enumerable
  4. The complement of a context-free language is context-free
in Theory of Computation
11.4k views

4 Comments

Thank you sir
1
1
I have a confusion with the term 'or' here.

"The complement of a recursive language is either recursive or recursively enumerable"

the above statement has 2 cases:
1>the complement is recursive (so it is recursively enumerable)
2>the complement is not recursive but recursively enumerable.

case 2 is also impled by the statement .which is wrong as we know recursive languages are closed under complememntation.

I think if the option would have had 'and' in place of 'or' then C would have been true.
3
3
Option C is more like

L’ is a RE => L’ is REL too

or

L’ is a REL => L’ may or may not be RE => which is is false as it is always RE
0
0

5 Answers

36 votes
36 votes
Best answer

When a language is Recursive then there is a Total Turing machine means a Turing machine which have only two options either accept or rejects so if we complement a recursive language it works according to second figures hence it is recursive too. 

For a recursively enumerable language there is Turing machine and so it has three options either accept, reject or loop. Hence its complement can be either recursively enumerable or not even recursively enumerable.

Among the options A is the best one though C is also not wrong as it includes the statement of A in an either clause. 

Best Option: A

edited by

4 Comments

Thanks buddy
0
0

you can remember not closed one’s and rest all are closed ( remembering after taking examples will help).

1
1
Hi All, incase if the question is multiple select then what options i should select?

Option A and Option C or only option A

Please share your thoughts.
0
0
20 votes
20 votes
Complement of recursive language is always recursive.
edited by

11 Comments

L is recursive means TM for L accepts all words in L and rejects all words not in L.So, just by changing the accept to reject and vice verse we get a TM for L'. Thus L' must also be recursive.
13
13
Technically C is also correct.
2
2

@kjdcoswesmvo yes, i think so! C is technically correct 

1
1
i think A and C both are correct. but strong is option A..
1
1
I got confused between option A and C too .... how do I decide which is stronger?
0
0
How's C true? Then only stronger comes to picture. As long as there exists a language which is recursively enumerable and its complement not being recursively enumerable C is false.
4
4
@arjun sir please explain how c is logically correct.
0
0

I think option C would have been true if in option they mention recursive AND recursive enumerable.

0
0

 If L is recursively enumerable, then the complement of L is recursively enumerable if and only if L is also recursive.

0
0
Either A or B means $A \oplus B$

so option C is means

"The complement of a recursive language is recursive or recursively enumerable but not both"

That's obviously not true
1
1

@

How you decide Either $A$ or $B$ means $A\oplus B?$

and $A$ or $B$ means $A+B?$

can you explain option $(C)$ please$?$

3
3
0 votes
0 votes
If a language L and L' are both recursively enumerable then both languages are recursive.

If L is recursive then L' is  also recursive and consequently bothe are Recursively enumerable.
0 votes
0 votes
Option A) is true, The complement of a recursive language is recursive.
Answer:

Related questions