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) | 34 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 Veteran (55.7k points)

Related questions

+1 vote
1 answer
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
47,894 questions
52,261 answers
67,679 users