retagged by
4,054 views

3 Answers

2 votes
2 votes
If n is only 1,2,3

Then it is regular language as it is finite language therefore it is context free

If n= 1,2,3....

Then

Not context free

Because

We require two stack

Whenever occurence a comes push in one stack

Then occurence b comes push in 2nd stack

And pop one a and one b  from the stack for occurrence of a
1 votes
1 votes
n= 1,2,3 Thats it? or 1,2,3.......?

IF n=1,2,3 then Regular hence Context Free..  Option A

If n=1,2,3...... then  not context free.   Option B
0 votes
0 votes
Since n is finite , the language will have finite cases and can be represented by DFA, making it a regular language.

All the regular languages are context free languages.

Complement of a regular language is regular.

Therefore its complement is also context free.

If the question is correctly put , Answer is (a).

Related questions

0 votes
0 votes
2 answers
1
0 votes
0 votes
2 answers
4
suneetha asked Dec 22, 2018
342 views
i thought that it is the language where both start and end symbols are same and i got 65 but the ans is 29