Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged regular-grammar
1
votes
1
answer
31
Grammar to DFA Construction
For the given Grammar S->aA|bB A->bC|aS B->aC|bS C->aB|bA Construct DFA I am getting confused in understanding how to take the final state.
For the given GrammarS->aA|bBA->bC|aSB->aC|bSC->aB|bA Construct DFA I am getting confused in understanding how to take the final state.
sripo
1.3k
views
sripo
asked
Oct 13, 2018
Theory of Computation
theory-of-computation
finite-automata
regular-grammar
number-of-dfa
minimal-state-automata
+
–
0
votes
0
answers
32
regular grammar
If a is a terminal and S, A, B are three non-terminals, then which of the following are regular grammars? (a) S → ε, A → aS|b (b) A → aB|a, B → bA|b (c) A → Ba|Bab (d) A → abB|aB answer given is b. but I think all are regular grammars. please clear my doubt.
If a is a terminal and S, A, B are three non-terminals, then which of the following are regular grammars?(a) S → ε, A → aS|b(b) A → aB|a, B → bA|b(c) A → Ba|Ba...
Ananya Jaiswal 1
577
views
Ananya Jaiswal 1
asked
Sep 29, 2018
Theory of Computation
theory-of-computation
regular-grammar
+
–
1
votes
1
answer
33
conversion of right linear grammar to DFA
In converting right linear regular grammar to DFA how to determine the final states? Can anyone tell the procedure?
In converting right linear regular grammar to DFA how to determine the final states?Can anyone tell the procedure?
sushmita
693
views
sushmita
asked
Sep 16, 2018
Theory of Computation
theory-of-computation
finite-automata
regular-grammar
+
–
0
votes
1
answer
34
Regular Grammar
Is there any difference between Type 3 grammar and regular grammar?
Is there any difference between Type 3 grammar and regular grammar?
Gaurav Parashar
481
views
Gaurav Parashar
asked
Jul 5, 2018
Theory of Computation
regular-grammar
theory-of-computation
compiler-design
+
–
0
votes
1
answer
35
self doubt
What is the differene between { Φ } and λ and what happens when we concatenate this with a regular language ??
What is the differene between { Φ } and λ and what happens when we concatenate this with a regular language ??
ankit aingh
315
views
ankit aingh
asked
Apr 25, 2018
Theory of Computation
theory-of-computation
regular-grammar
+
–
1
votes
3
answers
36
Regular Grammars
$S\rightarrow AB$ $A\rightarrow a$ $B\rightarrow b$ The language generated by the above grammar is ab and since we can give a FA for the language then it must be a regular language.Now,since the given grammar generates a regular language then it must be a ... grammar but again it is not in the form of TYPE 3 or regular grammar,then how to identify if the grammar is regular or not?
$S\rightarrow AB$$A\rightarrow a$$B\rightarrow b$The language generated by the above grammar is ab and since we can give a FA for the language then it must be a regular ...
Sourav_35
1.6k
views
Sourav_35
asked
Apr 6, 2018
Theory of Computation
regular-grammar
theory-of-computation
finite-automata
+
–
0
votes
1
answer
37
regular grammar
What will be regular grammar for given regular expression $r=(ab^*+b)^*ab$
What will be regular grammar for given regular expression$r=(ab^*+b)^*ab$
saurabh rai
406
views
saurabh rai
asked
Mar 27, 2018
Theory of Computation
theory-of-computation
regular-grammar
regular-language
+
–
0
votes
1
answer
38
Peter Linz Edition 4 Exercise 3.1 Question 27 (Page No. 77)
Find a regular expression that denotes all bit strings whose value, when interpreted as a binary integer, is greater than or equal to 40.
Find a regular expression that denotes all bit strings whose value, when interpreted as a binary integer, is greater than or equal to 40.
Mk Utkarsh
960
views
Mk Utkarsh
asked
Mar 15, 2018
Theory of Computation
theory-of-computation
peter-linz
peter-linz-edition4
regular-expression
regular-grammar
+
–
0
votes
0
answers
39
#TOC Doubt
L = anbm / n,m>=1 What type pf Language is this? Also, please tell are n,m are independent or dependent i.e can we have like n=2 and m=3 or both n,m have to have same values!?
L = anbm / n,m>=1What type pf Language is this? Also, please tell are n,m are independent or dependent i.e can we have like n=2 and m=3 or both n,m have to have same valu...
iarnav
202
views
iarnav
asked
Jan 30, 2018
Theory of Computation
theory-of-computation
finite-automata
regular-expression
regular-grammar
+
–
1
votes
0
answers
40
MadeEasy Test Series 2018: Theory of Computation - Regular Grammer
What is the correct way to solve questions of this kind where equations like these are given and you are asked to determine what languages do the variables X1 X2 X3.. represent?
What is the correct way to solve questions of this kind where equations like these are given and you are asked to determine what languages do the variables X1 X2 X3.. rep...
smriti bhati
315
views
smriti bhati
asked
Jan 26, 2018
Theory of Computation
theory-of-computation
regular-grammar
made-easy-test-series
+
–
1
votes
0
answers
41
MadeEasy Test Series 2018: Theory Of Computation - Regular Expressions
Rishi yadav
296
views
Rishi yadav
asked
Jan 4, 2018
Theory of Computation
made-easy-test-series
theory-of-computation
regular-grammar
regular-expression
+
–
1
votes
0
answers
42
TOC Regular Grammar
gauravkc
915
views
gauravkc
asked
Dec 29, 2017
Theory of Computation
theory-of-computation
normal
regular-grammar
+
–
0
votes
1
answer
43
#TOC DOUBT
A)Is it useful to draw FA if we need to tell the language of the following grammar...? B)What is the language of the following grammar..? C) What will be the final state Of FA and what is the criteria to find out final state.if a given a regular grammar.? S→aB|bA A→aS|bAA|a B→bS|aBB|b
A)Is it useful to draw FA if we need to tell the language of the following grammar...?B)What is the language of the following grammar..?C) What will be the final state O...
Sahil1994
826
views
Sahil1994
asked
Dec 12, 2017
Theory of Computation
theory-of-computation
finite-automata
regular-grammar
+
–
1
votes
1
answer
44
Regular Grammar
A regular grammar is always linear but not all linear grammar are regular. Please explain why this statement is true
A regular grammar is always linear but not all linear grammar are regular.Please explain why this statement is true
Shivi rao
543
views
Shivi rao
asked
Dec 9, 2017
Compiler Design
regular-grammar
compiler-design
+
–
3
votes
2
answers
45
Need help to draw a DFA from a Right Linear grammar
.............................................................. .
...............................................................
Tuhin Dutta
2.4k
views
Tuhin Dutta
asked
Nov 22, 2017
Theory of Computation
theory-of-computation
finite-automata
regular-grammar
+
–
3
votes
1
answer
46
Compiler
Which of the following statements are correct and why.....? Every regular set has LR(1) grammar Every regular grammar is LR(1).
Which of the following statements are correct and why.....?Every regular set has LR(1) grammarEvery regular grammar is LR(1).
shivangi5
503
views
shivangi5
asked
Oct 30, 2017
Compiler Design
compiler-design
grammar
regular-grammar
lr-parser
+
–
6
votes
2
answers
47
REGULAR GRAMMARS
if a is a terminal and S, A, B are three non-terminals, then which of the following are regular grammars? (a) S → ε, A → aS|b (b) A → aB|a, B → bA|b (c) A → Ba|Bab (d) A → abB|aB please explain how u proceed? The answer is given "b"
if a is a terminal and S, A, B are three non-terminals, then which of the following are regular grammars?(a) S → ε, A → aS|b (b) A → aB|a, B → bA|b(c) A → Ba|B...
VIKRAM KASANA
3.0k
views
VIKRAM KASANA
asked
Oct 1, 2017
Compiler Design
regular-grammar
compiler-design
regular-language
+
–
0
votes
0
answers
48
Regular Grammar
https://gateoverflow.in/?qa=blob&qa_blobid=12864829104497909178
https://gateoverflow.in/?qa=blob&qa_blobid=12864829104497909178
LORD ofKINGS
204
views
LORD ofKINGS
asked
Sep 19, 2017
Theory of Computation
regular-grammar
theory-of-computation
+
–
0
votes
0
answers
49
Left linear regular grammar to machine
Can we directly convert a given Left linear regular grammar to machine ? or First convert Left linear regular grammar to Right linear regular grammar and then to machine . http://scanftree.com/automata/conversion-of-left-linear-grammar-to-finite-automata
Can we directly convert a given Left linear regular grammar to machine ?orFirst convert Left linear regular grammar to Right linear regular grammar and then to machine .h...
VS
1.1k
views
VS
asked
Sep 5, 2017
Compiler Design
regular-grammar
theory-of-computation
+
–
2
votes
0
answers
50
Regular Grammar
According to the definition - "A grammar is regular if it is either left linear or right linear." Now, "Set of all strings over {a, b} starting with an 'a' and ending with a 'b'" represents a regular ... think that's possible as the language is regular) Or, are there any exceptions in rules of regular grammar? Please explain. Thanks!
According to the definition - "A grammar is regular if it is either left linear or right linear."Now, "Set of all strings over {a, b} starting with an 'a' and ending with...
Akash Mishra
877
views
Akash Mishra
asked
Sep 5, 2017
Theory of Computation
regular-grammar
theory-of-computation
regular-language
+
–
0
votes
0
answers
51
regular grammar
how to convert FA to Left linear regular grammar??
how to convert FA to Left linear regular grammar??
Hira Thakur
161
views
Hira Thakur
asked
Aug 29, 2017
Theory of Computation
regular-grammar
+
–
2
votes
1
answer
52
Peter Linz toc chapter 3 ex3.3 question 13b(page no 97)
Find the regular grammar for the following languages on {a,b}. b) L={w: (na(w)- nb(w))mod3=1} Here na is the no of 'a' in string w, nb is the no of 'b' in string b. Here is my solution. Is this answer correct? Any other approach or solution is also welcomed.
Find the regular grammar for the following languages on {a,b}.b) L={w: (na(w)- nb(w))mod3=1}Here na is the no of 'a' in string w, nb is the no of 'b' in string b.Here is ...
Satyajeet Singh
2.2k
views
Satyajeet Singh
asked
Aug 16, 2017
Theory of Computation
theory-of-computation
regular-grammar
finite-automata
+
–
1
votes
1
answer
53
TOC Grammer equivalence
Which of the following grammars are equivalent?S is non terminal ,e is epsilon,a is terminal 1. S-> aS |e 2. S-> aS | a |e 3. S-> aaS |e
Which of the following grammars are equivalent?S is non terminal ,e is epsilon,a is terminal1. S- aS |e2. S- aS | a |e3. S- aaS |e
rahul sharma 5
1.2k
views
rahul sharma 5
asked
Aug 6, 2017
Theory of Computation
theory-of-computation
regular-grammar
+
–
3
votes
1
answer
54
TOC Linear grammer
As Type(3)/Regular grammars are form of left linear or right linear , Now suppose i have two grammars,G1 and G2 which are generating left linear and right linear grammars respectively.And now my new Grammar G :- has one production as S->S1|S2(where ... it has both left and right linear.But we also know that regular union is regular.So what can be concluded from this scenario ?
As Type(3)/Regular grammars are form of left linear or right linear ,Now suppose i have two grammars,G1 and G2 which are generating left linear and right linear grammars ...
rahul sharma 5
1.0k
views
rahul sharma 5
asked
Jul 31, 2017
Theory of Computation
regular-expression
theory-of-computation
regular-grammar
+
–
1
votes
2
answers
55
Regular grammar form
Regular grammar can be of form :- A->tV or A->Vt or A->t where t is terminal and V is variable. Here is t string of terminals or a single terminal? I am seeing different definitions of terminal everywhere.
Regular grammar can be of form :-A->tV or A->Vt or A->t where t is terminal and V is variable.Here is t string of terminals or a single terminal? I am seeing different de...
Xylene
708
views
Xylene
asked
Jul 12, 2017
Theory of Computation
theory-of-computation
regular-grammar
+
–
1
votes
1
answer
56
Regular Language to Regular Grammar
I think the below language is Regular- L = {xy | na(x) = nb(y) where x,y $\in$ (a,b)* } Doubt : Since if we consider any string in given language is split in such a way so that we satisfy the required condition. like (abbbaa)(bbaba), (bbbbb)(a) etc. (Note - brackets are just for understanding purpose). Can some one write the regular grammar for this language?
I think the below language is Regular-L = {xy | na(x) = nb(y) where x,y $\in$ (a,b)* }Doubt : Since if we consider any string in given language is split in such a way so...
Shubhanshu
1.2k
views
Shubhanshu
asked
Jul 5, 2017
Theory of Computation
theory-of-computation
regular-language
regular-grammar
+
–
1
votes
3
answers
57
Peter Linz Edition 4 Exercise 3.1 Question 7 (Page No. 76) Exercise 3.3 Question 9 (Page No. 97)
Regular Expression:- Q1) What languages do the expression (∅*)* and a∅ denote? Q2) Find a regular expression and finite automata for all bit strings, with leading bit 1 interpreted as a binary integer, with values not between 10 and 30. ... w ∈ {a, b}* / (number of a in w + 3*number of b) in w is even }
Regular Expression:-Q1) What languages do the expression (∅*)* and a∅ denote?Q2) Find a regular expression and finite automata for all bit strings, with leading b...
Shubhanshu
2.0k
views
Shubhanshu
asked
Jul 5, 2017
Theory of Computation
theory-of-computation
regular-language
regular-expression
regular-grammar
peter-linz
peter-linz-edition4
+
–
20
votes
2
answers
58
GATE CSE 1990 | Question: 15a
Is the language generated by the grammar $G$ regular? If so, give a regular expression for it, else prove otherwise G: $S \rightarrow aB$ $B \rightarrow bC$ $C \rightarrow xB$ $C \rightarrow c$
Is the language generated by the grammar $G$ regular? If so, give a regular expression for it, else prove otherwiseG: $S \rightarrow aB$$B \rightarrow bC$$C \rightarro...
makhdoom ghaya
3.2k
views
makhdoom ghaya
asked
Nov 26, 2016
Theory of Computation
gate1990
descriptive
theory-of-computation
regular-language
regular-grammar
+
–
0
votes
1
answer
59
MadeEasy Test Series: Theory Of Computation - Regular Grammar
The grammer {S--> aA | aB | ε, A--> Ab | ε } is (a) Regular and Linear (b) Regular but not Linear (c) Linear but not Regular (d) Neither Linear nor Regular
The grammer {S aA | aB | ε, A Ab | ε } is(a) Regular and Linear(b) Regular but not Linear(c) Linear but not Regular(d) Neither Linear nor Regular
ARUN KUMAR 3
759
views
ARUN KUMAR 3
asked
Oct 15, 2016
Theory of Computation
made-easy-test-series
theory-of-computation
regular-grammar
+
–
2
votes
2
answers
60
UGC NET CSE | August 2016 | Part 3 | Question: 22
The regular grammar for the language $L$ = {$a^{n}b^{m}$ | $n + m$ is even} is given by (1) $S \rightarrow S_{1} | S_{2}$ $S_{1} \rightarrow a S_{1} | A_{1}$ $A_{1} \rightarrow b A_{1} | \lambda$ ... $S_{2} \rightarrow aaS_{2} | aA_{2}$ $A_{1} \rightarrow bbA_{1} | \lambda$ $A_{2} \rightarrow bbA_{2} | b$
The regular grammar for the language $L$ = {$a^{n}b^{m}$ | $n + m$ is even} is given by(1) $S \rightarrow S_{1} | S_{2}$ $S_{1} \rightarrow a S_{1} | A_{1}$ $A_{...
makhdoom ghaya
1.3k
views
makhdoom ghaya
asked
Oct 1, 2016
Theory of Computation
ugcnetcse-aug2016-paper3
theory-of-computation
regular-grammar
+
–
Page:
« prev
1
2
3
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register