edited by
45,721 views
112 112 votes

Consider the following two statements:

  1. If all states of an NFA are accepting states then the language accepted by the NFA is $\Sigma_{}^{*}$.
  2. There exists a regular language $A$ such that for all languages $B$, $A \cap B$ is regular.

Which one of the following is CORRECT?

  1. Onlyis true
  2. Only II is true
  3. Bothand II are true
  4. Both I and II are false

8 Answers

Best answer
189 189 votes
  1. False, as in NFA, it is not necessary that all states have transitions for all symbols. 
  2. True, there exists a regular language $A=\{\}$, such that for all languages $B$, $A\cap B =\{\}$ is regular 

So, answer is option B.

edited by
11 11 votes

Its False, suppose language is finite for example L = { $\epsilon$ , a , aa, aab, aabb } over alphabet {a,b}
Its NFA will look something like this.

Even though all states are final state in NFA, there are many string which is present in ∑* , but NFA is not capable of accepting it.
 

2 2 votes
  1. all transitions may not be defined in an NFA so even if all states are final then also NFA may not accept $Σ^∗$-------------false
  2. take any finite language so it is regular. Intersection of finite language with any language B is finite so$ A∩B$ is regular

Answer is B II only

2 2 votes
Answer is option B . You can refer to any of the answers above .

This comment is added just to emphasize the importance of quantifier.

In option B we have THERE EXIST a regular language A such that for all languages B, A intersection B is regular.

This becomes True as let A={} and B =a^nb^n

So ther intersection is {} which is regular

Now suppose option goes like FOR ALL regular language A ,A intersection B is regular.

This would have been False

Ex- let A=(a+b)* and B =a^nb^n

Then A intersection B is a^nb^b which is DCFL but not regular
2 2 votes
Correcr Answer :: B

Statement 1 = If all states of DFA are accepting states then we can say that langusge accepted by it is (sigma*) , but we cant say this in case of NFA so statement 1 is wrong

Statement 2 = it is correct as intersection of regular language to any language is regular language
1 1 vote
1) I think that in NFA transitions to other states may or may not be present. Let's say we have to States A and B which are connected by only "a".Taking Sigma={a,b}.THUS "b" can never be accepted by this NFA.

HENCE {a,b}★ also can't be accepted.

 

2) INTERSECTION WITH REGULAR LANGUAGE IS ALWAYS REGULAR
Answer:
Position:
Show:

Related questions

46 46 votes
5 answers 5 answers
24.2k
24.2k views
Akash Kanase asked Feb 12, 2016
24,244 views
The number of states in the minimum sized DFA that accepts the language defined by the regular expression.$(0+1)^{*} (0+1) (0+1)^{*}$is ________.
70 70 votes
7 answers 7 answers
35.6k
35.6k views
Akash Kanase asked Feb 12, 2016
35,555 views
Consider the following languages:$L_{1}=\left\{a^{n}b^{m}c^{n+m}:m, n\geq 1\right\}$$L_{2}=\left\{a^{n}b^{n}c^{2n} :n\geq 1\right\}$Which one of the following is TRUE?Bot...
65 65 votes
4 answers 4 answers
20.8k
20.8k views
Akash Kanase asked Feb 12, 2016
20,765 views
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 TRU...
141 141 votes
15 answers 15 answers
39.7k
39.7k views
Akash Kanase asked Feb 12, 2016
39,674 views
Suppose the functions $F$ and $G$ can be computed in $5$ and $3$ nanoseconds by functional units $U_{F}$ and $U_{G}$, respectively. Given two instances of $U_{F}$ and two...