Consider the following grammar over the alphabet abc given below S and T are non terminals gate computer science 2017

The Eduladder is a community of students, teachers, and programmers just interested to make you pass any exams. So we solve previous year question papers for you.
See Our team
Wondering how we keep quality?
Got unsolved questions?

Ask Questions

GATE-Computer-Science-Engineering-2017-->View question

Consider the following grammar over the alphabet {a,b,c} given below, S and T are non-terminals. -gate computer science 2017

G1: S-->aSb|T
T--> cT|∈

G2: S-->bSa|T
T--> cT|∈
The language L1(G1) ∩ L2(G2).
A) Finite
B) Non-finite but regular
C) Context-free but not regular
D) Recursive but not context-free

B) Non-finite but regular

The language generated by grammar G1 is anc*bn where n>=0 
The language generated by grammar G2 is bnc*an where n>=0 
The intersection of two languages will be c* (putting n=0 in both languages)
We know that c* is a regular language and infinite, so option b is correct.
This explanation is contributed by Deepak Raj

Answerd By:deepuckraj

Be first to like this answer

Be first to dislike this answer
Talk about this  Delete  Like  Dislike

Can you help us to add better answer here? Please see this

Below are some of the videos from our collection.Check out our video platform here.

Lets together make the web is a better place

We made eduladder by keeping the ideology of building a supermarket of all the educational material available under one roof. We are doing it with the help of individual contributors like you, interns and employees. So the resources you are looking for can be easily available and accessible also with the freedom of remix reuse and reshare our content under the terms of creative commons license with attribution required close.

You can also contribute to our vision of "Helping student to pass any exams" with these.
Answer a question: You can answer the questions not yet answered in eduladder.How to answer a question
Career: Work or do your internship with us.Work with us
Create a video: You can teach anything and everything each video should be less than five minutes should cover the idea less than five min.How to upload a video on eduladder

Not the answer you're looking for? Browse other questions from this Question paper or ask your own question.

Ask your question?