Machine-translated by Google. Questions are authored in English.
Top

Discussion

What is the Chomsky hierarchy ?

  • A.Classification of programming languages
  • B.Classification of formal grammars and languages
  • C.Classification of algorithms
  • D.Classification of data structures.

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.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.