Skip to main content
1 vote
1 answer
97 views

How to find the grammar of this language: La = {ww^r: w e {0,1}^*, w ends with 1} ? r: is reverse Here is my solution: S -> 0S0|1S1| 0|1|E(epsilon) What can I change here or is the solution the ...
sourga bah's user avatar
1 vote
1 answer
44 views

I have a question involving the Pumping Lemma for Regular Languages and Pumping Lemma for Context-free Languages: Is it possible that there's a language which doesn't meet the criteria for the pumping-...
SmallBrainStudent's user avatar
1 vote
1 answer
924 views

I'm currently studying compiler's and am on the topic of "Chomsky Hierarchy and the 4 languages." But it beats me as to what the practical purpose of all this is? It'd be great if I could ...
jeremy's user avatar
  • 109
0 votes
1 answer
82 views

I actually don't understand how to convert scfg to cnf. I know just how to convert cfg. What should I do with probabilities? Example: S->c W1 g:0.9|c W:0.1 W1->g W2 u:0.8|W2 u:0.2 W2->g W3 c:...
Ірина Жижиян's user avatar
2 votes
0 answers
85 views

I am writing a thesis about Robot Framework. I would like include a part about Chomsky Hierarchy, and describe in which hierarchy, does it belong to. As far as i can understand it, most programming ...
Samo Branisa's user avatar
1 vote
2 answers
2k views

Below question was asked in GATE 2008 paper : If L and L' (L complement) are Recursively enumerable then L is ? a) Regular b) CFL c) CSL d) Recursive Correct option was option (d) and I accept that it'...
Avi's user avatar
  • 335
0 votes
1 answer
543 views

I'm asking this question because I've stumbled across the accepted answer of Chomsky Language Types This quote is referring to Type-0 Grammars: This means that if you have a language that is more ...
Novicegrammer's user avatar
3 votes
1 answer
1k views

I'm trying to understand the four levels of the Chomsky hierarchy by using some real languages as models. He thought that all the natural languages can be generated through a Context-free Grammar, but ...
Babbara's user avatar
  • 486
0 votes
1 answer
2k views

How does one convert a regular grammar into a finite automaton (FA)? For instance, what would a finite automaton corresponding to the following regular grammar look like? VN = {S, B, D} (nonterminals)...
Olivia Savitchi's user avatar
1 vote
1 answer
2k views

I see that in this language , by the time we are deciding m=n; then we have no b's left; so we can't sompare them with c's.So, i think it should NOT be CFL. But below solution shows that it is CFL ...
Olivia Pearls's user avatar
0 votes
0 answers
185 views

Does Java sit in Type-0 lavel of Chomsky Hierarchy? As I know, C++ template is Turing-Complete, so C++ sits in Type-0 of Chomsky Hierarchy. Java also have Generic, Does Java sit in Type-0 lavel of ...
Anonemous's user avatar
  • 319
2 votes
2 answers
989 views

Looking at the Chomsky hierarchy of grammars I find that for Type 2 grammars (context free grammars) very good tools exist to aid in creating software to read these from text into a usable data ...
Niels Basjes's user avatar
  • 10.7k
2 votes
1 answer
858 views

We are learning the chomsky hiearchy in my introduction to computer science course. My professor has mention lrk grammars multiple times, but they're not taught in the book. From my understanding, ...
maddie's user avatar
  • 1,954
0 votes
0 answers
184 views

As Recursively enumerable grammar is unrestricted, is it possible to have a production with one or more terminal(s) in the LHS (ie no non-terminals)?
Shardul's user avatar
  • 110
0 votes
1 answer
2k views

So I know the basic 4 step way of doing it. Removing the epsilons, then the variables less than 2 and so on. However, that way takes way too long for the problems we will have to do on the test. ...
Kurt Anderson's user avatar

15 30 50 per page