The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
16 views
What is the Context sensitive Grammar for

a^n * b^n * c^n * d^n

for n>=1
asked ago in Theory of Computation by (13 points) | 16 views

1 Answer

0 votes
for a language more than one grammar can be exit...

i will give one of the grammar which can generate above language

S-->abcd | aAbcd

Ab --> bA

Ac --> cA

Ad --> Ccdd

cC --> Cc

bC --> Bb

bB --> Bb

aB --> aab | aaAb
answered ago by Loyal (7.1k points)


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

36,995 questions
44,571 answers
126,781 comments
43,637 users