2 votes 2 votes Which of the following is/are correct? (Mark all the appropriate choices) A regular grammar is any right-linear or left-linear grammar. $A \rightarrow \alpha A \mid \beta$ is a right linear grammar, where $\alpha,\beta \in T^{\ast},$ where $T$ is the set of terminals $A \rightarrow A \alpha \mid \beta$ is a left linear grammar, where $\alpha,\beta \in T^{\ast},$ where $T$ is the set of terminals Any grammar which generates a regular language, is a regular grammar Theory of Computation go2025-toc-1 regular-grammar multiple-selects + – gatecse asked Sep 29, 2020 gatecse 389 views answer comment Share Follow See 1 comment See all 1 1 comment reply Kabir5454 commented Jan 20, 2022 reply Follow Share option D is wrong . counter example :- S->ABC A→ a B→ b C->c the language generated by the grammar is { abc} which is regular but the grammar is not regular. 1 votes 1 votes Please log in or register to add a comment.
4 votes 4 votes First three are the basic properties of regular grammar. For every regular language there exists a regular grammar. But even a non-regular grammar can generate a regular language. So, option D is false. So, the correct answer is $A;B;C;$ gatecse answered Sep 29, 2020 gatecse comment Share Follow See all 4 Comments See all 4 4 Comments reply prnv28 commented Jan 20, 2022 reply Follow Share A regular grammar is any right-linear or left-linear grammar.According to given statement if we take one right linear grammar let say,A → aaaaA | b;Hear given above is right linear grammar but it is not the type 3 (regular) grammar as given in the Chomsky classification that type 3 grammar is any of the formNon terminal → (Terminal) (Non Terminal)orNon Terminal → Terminal.please clarify this confusion. @gatecse 0 votes 0 votes hsahuja commented Jan 21, 2022 reply Follow Share @prnv28 But this can be converted to Regular Grammer 0 votes 0 votes prnv28 commented Jan 21, 2022 reply Follow Share @hsahuja If we consider one CFG as given below, A → BC B → b C → c Now given below is a equivalent Regular grammar for given CFG, A → bC C → c Here also we can convert CFG to Regular grammar but still given grammar is not regular. So, Is it always valid to say that if we can convert any grammar to regular grammar than that given grammar if fall under Regular Grammar class? 0 votes 0 votes John_Smith commented Dec 18, 2023 i edited by John_Smith Dec 18, 2023 reply Follow Share @prnv28 The following is from the book ‘An Introduction to Formal Languages and Automata’ by Peter Linz (6th edition, page no. – 92) :-A grammar \(G = (V, T, S, P )\) is said to be right-linear if all productions are of the form\[A → xB \ | \ x,\]where \(A, B \in V\) , and \(x \in T^*\). A grammar is said to be left-linear if all productions are of the form\[A → Bx \ | \ x.\]A regular grammar is one that is either right-linear or left-linear.[Note - I put in a '\(|\)' in the productions above because I was facing difficulty introducing line breaks while writing them in latex. Nevertheless, the definition is synonymous to that mentioned in the above provided resource.]This book is a pretty standard resource that is followed by many universities, so I believe the above definition is accurate. Also, grammars given in option (B) and (C) are regular grammars, producing the languages \(L\big((\alpha)^*\beta\big)\) and \(L\big(\beta(\alpha)^*)\big)\), respectively.P. S. - As per the above definition, even a production of the form \(A \rightarrow B\), where \(A, B \in V\), can be present in a regular grammar \(G = (V, T, S, P )\). 0 votes 0 votes Please log in or register to add a comment.