What is the complement of the language accepted by the NFA shown below?

Assume ∑ = {a} and ϵ is the empty string

This question was previously asked in
GATE CS 2012 Official Paper
View all GATE CS Papers >
  1. Φ
  2. {ϵ}
  3. a*
  4. (a, ϵ)

Answer (Detailed Solution Below)

Option 2 : {ϵ}
Free
GATE CS Full Mock Test
65 Qs. 100 Marks 180 Mins

Detailed Solution

Download Solution PDF

The correct answer is "option 2".

EXPLANATION:

NFA is:

Consider, ∑ = {a} and ϵ is the empty string

The ∑ = {a} and the NFA accept the following strings:

{a, aa, aaa, aaaa,……}

That means, the language accepted by the regular expression is {a+}

Therefore, the complement of the language is:

= {a* - a+}

ϵ

Hence, the correct answer is "option 2".

Latest GATE CS Updates

Last updated on Jan 8, 2025

-> GATE CS 2025 Admit Card has been released on 7th January 2025.

-> The exam will be conducted on 1st February 2025 in 2 shifts.

-> Candidates applying for the GATE CE must satisfy the GATE Eligibility Criteria.

-> The candidates should have BTech (Computer Science). Candidates preparing for the exam can refer to the GATE CS Important Questions to improve their preparation.

-> Candidates must check their performance with the help of the GATE CS mock tests and GATE CS previous year papers for the GATE 2025 Exam.

Hot Links: lotus teen patti teen patti club apk teen patti game paisa wala teen patti rummy all teen patti master