The Chomsky Hierarchy Flashcards

1
Q

The Chomsky Hierarchy

A

Classes of language

  • Regular
  • Context-Free
  • Context-Sensitive
  • Turing Machine
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Regular Grammar

A

The class of languages such that there exists any finite state automaton that recognizes them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Context-Free Grammar

A

The class of languages that can be generated by context-free grammar

a^n b^n | N > 0 is context-free but not regular

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Context-Sensitive Grammar

A

Cannot be generated by a context-free grammar

a^n b^n c^n | N > 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Turing Machine

A

Unrestricted grammar

Infinite tape, can go forwards and backwards, read and write

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Human language

A

Human language is recursive

Mildly context sensitive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly