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

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

for n>=1
asked in Theory of Computation by (19 points) | 23 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 by Boss (36.4k points)

Related questions

0 votes
0 answers
1
+1 vote
1 answer
2
+3 votes
2 answers
7


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

42,619 questions
48,614 answers
155,881 comments
63,863 users