Consider L = L1 ∩ L2

Where L1 = {0m1m20n1n |m, n >= 0}

L2 = {0m1n2k | m, n, k ≥ 0}

Then, the language L is

This question was previously asked in
UGC NET Computer Science (Paper 2) 2020 Official Paper
View all UGC NET Papers >
  1. Recursively enumerable but not context free
  2. Regular
  3. Context free but not regular
  4. Not recursive

Answer (Detailed Solution Below)

Option 3 : Context free but not regular
Free
UGC NET Paper 1: Held on 21st August 2024 Shift 1
13 K Users
50 Questions 100 Marks 60 Mins

Detailed Solution

Download Solution PDF

The correct answer is option 3.

Key Points

  • L1 will first contain 0's followed by an equal number of 1's. After that, there will be a single 2 which will again be followed by 0's and an equal number of 1's i.e.   L1={2,012,00112,20011,01201,0011201,0120011,001120011,........}
  • L2={epsilon,0,1,2,01,12,012,00112,20011,01201,0011201,0120011,001120011,............}
  • L=L1∩L2={2,012,00112,0001112,........}
  • L=L1∩L2={0m1m2/ m>=0}, which is a context free language but not regular language.

∴ Hence the correct answer is Context-free but not regular.

Additional Information

F1 Shraddha Raju 03.04.2021 D30 

Latest UGC NET Updates

Last updated on Jun 12, 2025

-> The UGC NET June 2025 exam will be conducted from 25th to 29th June 2025.

-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.

-> The exam is conducted bi-annually - in June and December cycles.

-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions. 

-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.

More Context Free Grammars Questions

More Context Free Languages and Pushdown Automata Questions

Get Free Access Now
Hot Links: teen patti royal teen patti pro teen patti casino apk