...
Nielit Scientist-B CS 4-12-2016
April 5, 2025
Nielit Scientist-B CS 4-12-2016
April 5, 2025
Nielit Scientist-B CS 4-12-2016
April 5, 2025
Nielit Scientist-B CS 4-12-2016
April 5, 2025

Nielit Scientist-B CS 4-12-2016

Question 3
If L1 is CSL and L2 is regular language which of the following is false?
A
L1-L2 is not context free
B
L1 intersection L2 is context free
C
~L1 is context free
D
Both (A) and (C)
Question 3 Explanation: 
A is false: L1 is CSL and L2 is regular
L1-L2 means L1 intersection L2(complement) == CSL Intersect (regular complement)

Since regular is closed under complement hence regular complement= regular
So it is equal to CSL intersect regular which is equal to CSL

Option A says L1-L2 is not context free . Now as we get L1-L2 is CSL and every context free is also CSL, so L1-L2 can be CFL also.
Hence A is false.

Please note closure property gives worst case possibility Means CSL intersect regular is CSL it means in worst case it is CSL and hence it can be regular as well as CFL also but in worst case it must be CSL.
Similarly with other options

Correct Answer: D
Question 3 Explanation: 
A is false: L1 is CSL and L2 is regular
L1-L2 means L1 intersection L2(complement) == CSL Intersect (regular complement)

Since regular is closed under complement hence regular complement= regular
So it is equal to CSL intersect regular which is equal to CSL

Option A says L1-L2 is not context free . Now as we get L1-L2 is CSL and every context free is also CSL, so L1-L2 can be CFL also.
Hence A is false.

Please note closure property gives worst case possibility Means CSL intersect regular is CSL it means in worst case it is CSL and hence it can be regular as well as CFL also but in worst case it must be CSL.
Similarly with other options

Leave a Reply

Your email address will not be published. Required fields are marked *