in Theory of Computation edited by
25,042 views
79 votes
79 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
in Theory of Computation edited by
25.0k views

4 Comments

edited by

II There exists a regular language A such that for all languages B, A ∩ B is regular.

In II as soon as you see  “there exist” keyword, immediately we need to remember in there exist if for atleast one example the statement holds( ie true) the entire statement becomes true according to discrete math logic. 

Example: let A={ab,b} B={b} both A and B are regular. B can be any language as its mentioned for all languages in question. A ∩ B = {b} = Regular 

Concentrate on there exist key word

2
2
If instead of NFA there is DFA then that statement will be true.
0
0
No, its different.
0
0

3 Answers

149 votes
149 votes
Best answer
  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

4 Comments

yes
0
0
So, option 2 is false.
0
0
No

The statement says there exists (asking for atleast one language) where A (regular) intersection B(any other language) is regular.

So its true.
1
1
3 votes
3 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.
 

0 votes
0 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

by

1 comment

Right. A can be an infinite language as well.Ex : A={a$^{2n}$:n>=0},B={a$^{2n+1}$:n>=0}, A$\cap$B={} => regular language.
1
1
Answer:

Related questions