Question 51Asked in UGC NET Computer Science, December 2014 (Paper II & III, Selected Questions)

Given two languages : L1 = {(ab)ⁿ aᵏ | n > k, k ≥ 0}

Given two languages : L1 = {(ab)ⁿ aᵏ | n > k, k ≥ 0} L2 = {aⁿ bᵐ | n ≠ m} Using pumping lemma for regular language, it can be shown that
  1. AL₁ is regular and L₂ is not regular
  2. BL₁ is not regular and L₂ is regular
  3. CL₁ is regular and L₂ is regular
  4. DL₁ is not regular and L₂ is not regular
Show answerHide answer

Correct answer: (D) L₁ is not regular and L₂ is not regular

Explanation

The pumping lemma for regular languages can only be used to prove that a language is not regular. Both L₁ (which needs to compare n and k) and L₂ (which needs to compare n and m) require unbounded counting, so neither is regular.

From UGC NET Computer Science PYQ, December 2014 (Paper II & III, Selected Questions)

This is question 51 of UGC NET Computer Science PYQ, December 2014 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.