Match List I with List II: Choose the correct answer from the options given below:List I List II (A) Type 0 (I) Finite automata (B) Type 1 (II) Tuning machine (C) Type 2 (III) Linear bound automata (D) Type 3 (IV) Pushdown automata
(A) - (II), (B) - (III), (C) - (IV), (D) - (I)
The Chomsky Hierarchy is a classification of formal grammars. It groups grammars into four types (Type 0, Type 1, Type 2, and Type 3) based on their generative power. Each type of grammar corresponds to a specific class of formal languages, and these language classes, in turn, are recognized by specific types of automata.
Let's break down the correspondence between the grammar types listed in List I and the automata models listed in List II:
Based on the standard Chomsky Hierarchy correspondence, we can create the following matches:
| List I (Grammar Type) | List II (Automata) | Match |
|---|---|---|
| (A) Type 0 | (II) Turing Machine | (A) - (II) |
| (B) Type 1 | (III) Linear Bound Automata | (B) - (III) |
| (C) Type 2 | (IV) Pushdown Automata | (C) - (IV) |
| (D) Type 3 | (I) Finite Automata | (D) - (I) |
Putting these matches together, we get the combination: (A) - (II), (B) - (III), (C) - (IV), (D) - (I).
This arrangement correctly pairs each type of grammar from the Chomsky hierarchy with the corresponding abstract machine (automaton) that recognizes the languages generated by that type of grammar.
| Type | Grammar Type | Language Type | Automaton | Production Rule Form (\(\alpha \rightarrow \beta\)) |
|---|---|---|---|---|
| 0 | Unrestricted | Recursively Enumerable | Turing Machine | No restrictions on \(\alpha\) and \(\beta\) (except \(\alpha \neq \epsilon\)) |
| 1 | Context-Sensitive | Context-Sensitive | Linear Bounded Automaton (LBA) | \(|\alpha| \le |\beta|\) (except possible \(\epsilon\) from start symbol S under certain conditions) |
| 2 | Context-Free | Context-Free | Pushdown Automaton (PDA) | \(A \rightarrow \beta\), where \(A\) is a single non-terminal |
| 3 | Regular | Regular | Finite Automaton (FA) | \(A \rightarrow aB\) or \(A \rightarrow a\) (right-linear) or \(A \rightarrow Ba\) or \(A \rightarrow a\) (left-linear) |
The Chomsky Hierarchy not only classifies grammars and languages but also establishes a hierarchy of computational power among the automata. As we move from Type 3 to Type 0, the expressive power of the grammars and languages increases, and consequently, the complexity and capabilities of the required automata also increase.
This hierarchy demonstrates that adding memory or computational capability to an automaton allows it to recognize a wider class of languages.
Any string of terminals that can be generated by the following context free grammar (where S is start nonterminal symbol)
S → XY
X → 0X | 1X | 0
Y → Y0 | Y1 | 0
Match List I with List II
List I | List II | ||
Production Rules | Grammar | ||
A. | S → XY X → 0 Y → 1 | I. | Greibach Normal Form |
B. | S → aS| bSS |c | II. | Context Sensitive Grammar |
C. | S → AB A → 0A | 1A | 0 B → 0A | III. | Chomsky Normal Form |
D. | S → aAbc Ab → bA Ac → Bbcc bB → Bb aB → aa | aaA | IV. | S-Grammar |
Choose the correct answer from the options given below :
Consider the following grammars:
G 1: S → aSb|bSa|aa
G 2: S → aSb|bSa|SS|λ
G 3: S → aSb|bSa|SS|a
G 4: S → aSb|bSa|SS|SSS|λ
Which of the following is correct w.r.t. the above grammars?Consider the following language:
L 1= {a n+m bn am | n, m ≥ 0}
L 2= {a n+m bn+m an+m |n, m ≥ 0}
Which one of the following is correct?