Answer to Question #227652 in Algorithms for kkk

Question #227652

​c) Classify each of the following grammar rules according to Noam Chomsky’s classification of ​grammars (in each case give the largest – i.e. most restricted - classification type that applies):

​1. aSb → aAcBb

​2. B → aA

​3. S → aBc

​4. S → aBc

​5. Ab → b

​6. AB → BA


1
Expert's answer
2021-08-19T14:31:56-0400

​1. aSb → aAcBb Type-1 grammar or the context-sensitive

​2. B → aA Type-3 grammar or regular gramma

​3. S → aBc Type-2 grammar or context-free

​4. S → aBc Type-2 grammar or context-free

​5. Ab → b Type-1 grammar or context-sensitive

​6. AB → BA Type-1 grammar or context-sensitive



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS