Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about the set of languages (equivalently) described by context-free grammars or accepted by (non-deterministic) pushdown automata.
1
vote
0
answers
232
views
Context-free or not: $a^nww^Ra^n$
Is the following a context-free language?
$$L = \{a^n w w^R a^n \mid n \geq 0, w \in \{a,b\}^*\}$$
I think no because the number of $w$'s is not equal.
Somebody please guide me.
1
vote
1
answer
68
views
Formal languages: What is $2n_c$?
I have got following question:
Determine whether the following language is context free or not:
$$L = \{ w \in \{a,b,c\}^*: n_a (w) = n_b (w) = 2n_c (w)\}. $$
What is the meaning of $2n_c$ in the a …
1
vote
2
answers
80
views
Difference between $a^{2n} b^n$ and $n_a(w) = 2n_b(w)$
I have encountered two questions related to npda:
Construct an npda for $L_1 = \{a^{2n} b^n \mid n \geq 0\}$ as a language over $\Sigma = \{a,b,c\}$.
Construct an npda for $L_2 = \{w \in \{a, b, c\} …