What is the Chomsky hierarchy ?
Tripura Public Service Commission - 2026,
Answer: B
The Chomsky hierarchy is a classification of formal grammars and languages.
Noam Chomsky (1956) arranged grammars in four nested types by how restricted their production rules are: Type 0 unrestricted (recursively enumerable), Type 1 context-sensitive, Type 2 context-free, and Type 3 regular. Each type matches a class of automaton, from Turing machines down to finite automata.
It does not classify programming languages, although they are usually specified with context-free grammars. Nor does it classify algorithms or data structures.
Please log in or register to report this question.