The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
0 votes
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) | 21 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 (27.8k 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

39,828 questions
46,802 answers
58,948 users