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
‹
12
›
:
CFG for
{
a
i
b
j
c
k
∣
i
=
j
∨
j
=
k
∨
i
=
k
}
\{ a^i b^j c^k \mid i=j \vee j=k \vee i=k \}
{
a
i
b
j
c
k
∣
i
=
j
∨
j
=
k
∨
i
=
k
}
Write a CFG (
which will be ambiguous
) generating the words of the form
a
i
b
j
c
k
a^i b^j c^k
a
i
b
j
c
k
where the number of
a
a
a
’s equals the number of
b
b
b
’s, or the number of
b
b
b
’s equals the number of
c
c
c
’s, or the number of
c
c
c
’s equals the number of
a
a
a
’s.
Authors:
Guillem Godoy /
Documentation:
// Write your CFG here...
To be able to submit you need to either
log in
,
register
, or
become a guest
.