is {ww^Rw | w in {0,1}*} context free?
I say yes...
I can think of a PDA that accepts this language as the following:
Put all the symbols in w onto the stack, non-deterministically check to
see if we have the reverse string by popping them off the stack.
If we reach an empty stack state then check the rest of the string to
see if it is in w.
Am I correct?
.
Relevant Pages
- Re: is {ww^Rw | w in {0,1}*} context free?
... I can think of a PDA that accepts this language as the following: ... Put all the symbols in w onto the stack, ... see if we have the reverse string by popping them off the stack. ... (comp.theory) - Re: Is C99 the final C? (some suggestions)
... You mean vague terminologies like "stack"? ... wrap whatever "spawn" mechanism you have in your language (or use some ... >> and because of Java's bignum class, it meant that exposing a widening multiply ... >> you use to determine this is just related to examining the carry flag. ... (comp.lang.c) - Re: The Promise of Forth
... Do you think Ada and PL/1 would be as high as they are ... They can keep a language alive at the fringes. ... still another bunch of complications when the stack holds mixed types. ... For a different data type it would have to be *completely* rewritten: ... (comp.lang.forth) - Re: FORTH levels
... Most working on a collaborative project do not choose the programming language they are using: it is thrust upon them by the needs of the collaboration. ... When Iverson and Hui came up with J-- in part to remove APL's special character set and make it more "user friendly" not much of a community formed around it. ... But RPN does not require a visible stack, any more than any language requires a visible stack to rebuild its semantic trees from its flat expression. ... (comp.lang.forth) - Re: Statement on Schildt submitted to wikipedia today
... the C language definition clearly says otherwise. ... stack functionality at a minimum ... There was because it became unfashionably "racist" to speak of German ... have an appropriate newsgroups line in your header for your mail to be seen, ... (comp.lang.c.moderated) |
|