in Theory of Computation
757 views
1 vote
1 vote

  1.   LC may be CFL
  2.   LC cannot be CFL
  3.   LC may be regular
  4.   LC may or may not be CFL
in Theory of Computation
757 views

1 comment

LA ->CFL

LB ->Regular

LA U LB ->CFL

CFL intersection LC -> CFL

As CFL is not closed under intersection, LC is regular & not CFL

Option (1) is wrong

1
1

2 Answers

1 vote
1 vote
all options are correct except b) Lc cannot be CFL

All the closure properties are 1-way.

CFLs are not closed in intersection, it means that the intersection is not always a CFL, i.e., it may or may not be CFL.
0 votes
0 votes
Option 1 is wrong

CFL is not closed under intersection complementation and subtraction.

So Lc can be regular

Related questions