RACSO
DFA
CFG
Operations:
Reg
,
CF
PDA
Reductions:
K
,
WP
,
CFG
,
NP
,
SAT
ANTLR:
lexical
,
syntactic
Exams
log in
,
register
,
become guest
This site uses cookies only for the purpose of identifying user sessions. This is required to properly register actions.
Exercise
‹
37
›
:
Non-ambiguous CFG for
{
x
c
y
∣
x
,
y
∈
{
a
,
b
}
∗
∧
∣
x
∣
=
∣
y
∣
∧
∣
x
∣
a
a
>
0
}
\{ xcy \mid x,y\in\{a,b\}^* \wedge |x|=|y| \wedge |x|_{aa}>0 \}
{
x
cy
∣
x
,
y
∈
{
a
,
b
}
∗
∧
∣
x
∣
=
∣
y
∣
∧
∣
x
∣
aa
>
0
}
Write a
non-ambiguous
CFG generating the words of the form
x
c
y
xcy
x
cy
, where
x
,
y
x,y
x
,
y
are words over
{
a
,
b
}
\{a,b\}
{
a
,
b
}
with the same length and such that there is some ocurrence of
a
a
aa
aa
in
x
x
x
.
Authors:
Guillem Godoy /
Documentation:
// Write your CFG here...
To be able to submit you need to either
log in
,
register
, or
become a guest
.