• edited by
15,263 views
49 49 votes

Nobody knows yet if $P=NP$. Consider the language $L$ defined as follows.$$L = \begin{cases} (0+1)^* & \text{ if } P = NP \\ \phi & otherwise \end{cases} $$Which of the following statements is true?

  1. $L$ is recursive
  2. $L$ is recursively enumerable but not recursive
  3. $L$ is not recursively enumerable
  4. Whether $L$ is recursively enumerable or not will be known after we find out if $P=NP$

6 Answers

Best answer
67 67 votes

Correct Option: A

$L$ is recursive. If $P=NP$, $L$ is $\Sigma^*$ which is recursive (in fact regular). If not, $L = \phi$ which is again recursive. So, in both cases $L$ is recursive.

• edited by
9 9 votes

we have two problems one is P and another is NP
now we give these 2 problems to TM then acc to condition given if both P and NP are equal then it will give (0+1)∗ otherwise ϕ , not others will be given 
so we make total TM for this becoz it say "YES" or "NOT", never fall into loop
and if we make Total TM for language then that language is recursive
hence Ans is A 

4 4 votes
Here, we have two possibilities, whether
P = NP (or) P != NP
→ If P=NP then L=(0+1)* which is regular, then it is recursive.
→ If P!=NP then L becomes ɸ which is also regular, then it is recursive.
So, finally L is recursive.
1 1 vote
The answer is A. There are two turing machines one which accepts (a+b)* and one which accepts {} one of them is correct. We don't need to know which one is correct, but as we can see one does exist.
• edited by
0 0 votes

The correct statement is A. $L$ is recursive.

Here is the reasoning:

  1. The $P \text{ vs } NP$ problem is a mathematical statement that is either true or false. It is a fixed, but unknown, answer.

  2. This means the language $L$ is one of two specific languages; we just don't know which one. We must analyze both possibilities:

    • Case 1: Assume $P = NP$ is true.

      In this case, the language is $L = (0+1)^*$, which is the set of all possible strings. This is a regular language. Every regular language is also recursive (decidable). A Turing machine can easily decide this by immediately halting and accepting any input.

    • Case 2: Assume $P \ne NP$ is true.

      In this case, the language is $L = \emptyset$, the empty language. This is also a regular language. Every regular language is recursive. A Turing machine can decide this by immediately halting and rejecting any input.

Since $L$ is recursive in both possible scenarios, $L$ is, by definition, a recursive language. We don't need to know the answer to $P \text{ vs } NP$ to know that $L$ is decidable; we know that whatever $L$ turns out to be, it's one of two languages that are both decidable.

Answer:
Position:
Show:

Related questions

61 61 votes
5 answers 5 answers
14.7k
14.7k views
Kathleen asked Sep 17, 2014
14,663 views
A program consists of two modules executed sequentially. Let $f_1(t)$ and $f_2(t)$ respectively denote the probability density functions of time taken to execute the two ...
75 75 votes
7 answers 7 answers
26.7k
26.7k views
gauravsachan9188 asked Aug 24, 2014
26,659 views
If the strings of a language $L$ can be effectively enumerated in lexicographic (i.e., alphabetic) order, which of the following statements is true?$L$ is necessarily fin...
92 92 votes
8 answers 8 answers
40.0k
40.0k views
Arjun asked Sep 8, 2014
39,989 views
Define languages $L_0$ and $L_1$ as follows :$L_0 = \{\langle M, w, 0 \rangle \mid M \text{ halts on }w\} $$L_1 = \{\langle M, w, 1 \rangle \mid M \text{ does not halts o...
68 68 votes
8 answers 8 answers
23.9k
23.9k views
Kathleen asked Sep 17, 2014
23,919 views
Consider the NFA $M$ shown below.Let the language accepted by $M$ be $L$. Let $L_1$ be the language accepted by the NFA $M_1$ obtained by changing the accepting state of ...