Which of the following is ε-free grammar?
Type-1
The Chomsky hierarchy classifies grammars by the form of their productions \(\alpha \to \beta\).
Type-0 (unrestricted) grammars allow any \(\alpha \to \beta\) with α non-empty, including \(\beta = \varepsilon\), so they may contain ε-productions.
Type-1 (context-sensitive) grammars require \(|\alpha| \le |\beta|\) for every production. A production \(A \to \varepsilon\) would shrink the sentential form, so it is forbidden (at most the start symbol may derive ε as a special exception). Type-1 grammars are therefore the non-contracting, ε-free class.
Type-2 (context-free) grammars allow \(A \to \varepsilon\), and Type-3 (regular) grammars also allow \(A \to \varepsilon\); both may contain ε-productions in their general definition.
Type-1 option is correct.
Match the following :
| List – I | List – II | ||
| a. | Context free grammar | i. | Linear bounded automaton |
| b. | Regular grammar | ii. | Pushdown automaton |
| c. | Context sensitive grammar | iii. | Turing machine |
| d. | Unrestricted grammar | iv. | Deterministic finite automaton |
Codes :
a b c d
Given the recursively enumerable language (\(L_{RE}\)), the context sensitive language (\(L_{CS}\)), the recursive language (\(L_{REC}\)), the context free language (\(L_{CF}\)) and deterministic context free language (\(L_{DCF}\)). The relationship between these families is given by
The family of context sensitive languages is __________ under union and __________ under reversal.
Match the LIST-I with LIST-II
| LIST-I | LIST-II |
|---|---|
| A. Type - 0 grammar | I. Linear Grammar |
| B. Type - 1 grammar | II. GNF |
| C. Type - 2 grammar | III. x→y, |x|<|y|; x, y ∈ {V ∪ T}* |
| D. Type - 3 grammar | IV. Recursively Enumerable |
Choose the correct answer from the options given below:
Arrange the following Language Classes in ascending order according to their expressive power, as defined by Chomsky hierarchy :
(A) Context-free languages
(B) Context-sensitive languages
(C) Regular languages
(D) Unrestricted Grammars
Choose the correct answer from the options given below :
Which of the following pairs have different expressive power ?
Given the following statements :
(A) A class of languages that is closed under union and complementation has to be closed under intersection.
(B) A class of languages that is closed under union and intersection has to be closed under complementation.
Which of the following options is correct ?
| List I | List II |
| A. Type 3 Grammar | I. V $\rightarrow$ (V $\cup$$\Sigma$)* |
| B. Type 2 Grammar | II. $\lambda$V$\beta$ $\rightarrow$ $\lambda$(V $\cup$$\Sigma$)*$\beta$, where ($\lambda$,$\beta$)$\epsilon$(V $\cup$$\Sigma$)* |
| C. Type 1 Grammar | III. (V $\cup$$\Sigma$)* $\rightarrow$ (V $\cup$$\Sigma$)* |
| D. Type 0 Grammar | IV. V $\rightarrow$ V$\Sigma$|$\Sigma$ |
Match the following :
| List – I | List – II | ||
| a. | Context free grammar | i. | Linear bounded automaton |
| b. | Regular grammar | ii. | Pushdown automaton |
| c. | Context sensitive grammar | iii. | Turing machine |
| d. | Unrestricted grammar | iv. | Deterministic finite automaton |
Codes :
a b c d
Given the recursively enumerable language (\(L_{RE}\)), the context sensitive language (\(L_{CS}\)), the recursive language (\(L_{REC}\)), the context free language (\(L_{CF}\)) and deterministic context free language (\(L_{DCF}\)). The relationship between these families is given by
The family of context sensitive languages is __________ under union and __________ under reversal.