in Theory of Computation retagged by
8,066 views
3 votes
3 votes

Choose the correct statement -

  1. $A=\{a^nb^n \mid n= 1, 2, 3, \ldots\}$ is a regular language
  2. The set $B$, consisting of all strings made up of only $a's$ and $b's$ having equal number of $a's$ and $bs$ defines a regular language
  3. $L(A^*B)\cap B$ gives the set $A$
  4. None of the above
in Theory of Computation retagged by
by
8.1k views

3 Answers

10 votes
10 votes
Best answer

option d  is right.

  • $^{a^nb^n}$ is DCFL but not reguler. so option a is false.
  • equal no of a's and equal no of b's is also DCFL but  not reguler.option b is false.
  •  L(A*B)$\cap$ B gives the set B. SO OPTION c is also false.
selected by
6 votes
6 votes

(a) A={anbn| n=1,2..} is DCFL .So,(a) is False

(b)The set B,consisting of all strings made up of only a's and b's having equal number of a's and b's is a DCFL. So,(b) is False.

(c) L(A*B) $\cap$ B

A= {anbn| n=1,2..}

B=consisting of all strings made up of only a's and b's having equal number of a's and b's

L(A*B)= L( { B + AB + AAB + ...} )

Now, L(A*B) $\cap$ B = B

So,(c) is False.

Ans:(d) None of the above

edited by
by

4 Comments

* represents kleane closure not concatenation answer is still d
0
0
edited by

@VS Here A,B defined as in the option then why you have  taken random definition?

Option C is incorrect.

Here A=a`nb`n  B=equal no. of a's and b's 

On Expanding L(A*B)=L({B+AB+AAB+ ...})

Now on Taking Intersection with B results leads to SET B.

1
1
In my opinion Cfl intersection Cfl is not closed hence the resultant language belongs to Csl so answer is may be A or May be B but not a particular set . If i I am wrong rectify me
0
0

 L(A*B) ∩ B = B

 This would have been correct logic and thinking Since He hasn't mentioned what is A and B (Though from the Questions, It seems His intension was that We assume A and B as the language Set described in the Option 1 and 2 respectively)..But If You say that  L(A*B) ∩ B = B, then You have self-assumed that A and B are some Random Regular expressions or Symbols in some alphabet...But even then, It is wrong. Because we can't intersect a Language with a Regular expression (Though People do because of "Without loss of generality")..Thus the expression must have been either

 (A*B) ∩ B = B with Intersection operation defined on REs

or

 L(A*B) ∩ L(B) = L(B)

So, It is clearly some Printing mistake or Not properly framed question. And It is now "The Interpretation Game"..

People Interpret what they interpret.

2
2
–1 vote
–1 vote
C Correct

1 comment

how?

i think option none
1
1
Answer:

Related questions