The Gateway to Computer Science Excellence
0 votes

Consider the language defined as L = { $a^pb^qa^r$ | p = q or q = r} .

L complement is

  1. Regular
  2. CFL but not regular
  3. CSL but not CSL
  4. DCFL
in Theory of Computation by
reshown by | 54 views
Complement shall be p!=q and q!=r

CSL it must be

1 Answer

+1 vote
Best answer
Actually the language L is CFL, and we know that CFL are not closed under Compliment and Intersection.

So compliment of given language will be CSL.
by Junior
selected by
L is Non-deterministic context free right?

@balchandar reddy san Yes L is Non-Deterministic Context Free Language.

We generally use NDCFL as CFL only and Deterministic Context Free Language as DCFL.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
52,218 questions
59,876 answers
118,119 users