$L_1 =(a^nb^n)$ and $L_2 =(a^nb^2n)$. Is $L_1 cup L_2$ DCFL?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I think that since $a^nb^n$ is not regular (applied pumping lemma), so is $L_2$.
Therefore, $L_1 cup L_2$ is not cfL.
Is that correct?
context-free-grammar regular-expressions
add a comment |Â
up vote
1
down vote
favorite
I think that since $a^nb^n$ is not regular (applied pumping lemma), so is $L_2$.
Therefore, $L_1 cup L_2$ is not cfL.
Is that correct?
context-free-grammar regular-expressions
Being CFL is entirely different from being a DCFL and both are entirely different from being regular. Which do you actually want?
â Steven Stadnicki
Dec 11 '14 at 8:47
Is it DCFL or not/am i understanding correctly being DCFL means it can be accepted by a deterministic PDA
â Sachin Divakar
Dec 11 '14 at 8:59
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I think that since $a^nb^n$ is not regular (applied pumping lemma), so is $L_2$.
Therefore, $L_1 cup L_2$ is not cfL.
Is that correct?
context-free-grammar regular-expressions
I think that since $a^nb^n$ is not regular (applied pumping lemma), so is $L_2$.
Therefore, $L_1 cup L_2$ is not cfL.
Is that correct?
context-free-grammar regular-expressions
context-free-grammar regular-expressions
edited Dec 11 '14 at 8:36
asked Dec 11 '14 at 7:52
Sachin Divakar
1076
1076
Being CFL is entirely different from being a DCFL and both are entirely different from being regular. Which do you actually want?
â Steven Stadnicki
Dec 11 '14 at 8:47
Is it DCFL or not/am i understanding correctly being DCFL means it can be accepted by a deterministic PDA
â Sachin Divakar
Dec 11 '14 at 8:59
add a comment |Â
Being CFL is entirely different from being a DCFL and both are entirely different from being regular. Which do you actually want?
â Steven Stadnicki
Dec 11 '14 at 8:47
Is it DCFL or not/am i understanding correctly being DCFL means it can be accepted by a deterministic PDA
â Sachin Divakar
Dec 11 '14 at 8:59
Being CFL is entirely different from being a DCFL and both are entirely different from being regular. Which do you actually want?
â Steven Stadnicki
Dec 11 '14 at 8:47
Being CFL is entirely different from being a DCFL and both are entirely different from being regular. Which do you actually want?
â Steven Stadnicki
Dec 11 '14 at 8:47
Is it DCFL or not/am i understanding correctly being DCFL means it can be accepted by a deterministic PDA
â Sachin Divakar
Dec 11 '14 at 8:59
Is it DCFL or not/am i understanding correctly being DCFL means it can be accepted by a deterministic PDA
â Sachin Divakar
Dec 11 '14 at 8:59
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
Hint:
$L_1$ is produced by
S := $epsilon$
| aSb
$L_2$ is produced by
S := $epsilon$
| aSbb
(assuming $a^a$ is a typo, meaning $a^n$)
yes $a^n$ but is it dCFL
â Sachin Divakar
Dec 11 '14 at 8:32
1
Both $L_1$ and $L_2$ are DCFL. Their union isn't because it cannot be deterministically decided to process single b's or pairs of b's after a sequence of a's.
â Ronald
Dec 11 '14 at 10:42
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Hint:
$L_1$ is produced by
S := $epsilon$
| aSb
$L_2$ is produced by
S := $epsilon$
| aSbb
(assuming $a^a$ is a typo, meaning $a^n$)
yes $a^n$ but is it dCFL
â Sachin Divakar
Dec 11 '14 at 8:32
1
Both $L_1$ and $L_2$ are DCFL. Their union isn't because it cannot be deterministically decided to process single b's or pairs of b's after a sequence of a's.
â Ronald
Dec 11 '14 at 10:42
add a comment |Â
up vote
0
down vote
Hint:
$L_1$ is produced by
S := $epsilon$
| aSb
$L_2$ is produced by
S := $epsilon$
| aSbb
(assuming $a^a$ is a typo, meaning $a^n$)
yes $a^n$ but is it dCFL
â Sachin Divakar
Dec 11 '14 at 8:32
1
Both $L_1$ and $L_2$ are DCFL. Their union isn't because it cannot be deterministically decided to process single b's or pairs of b's after a sequence of a's.
â Ronald
Dec 11 '14 at 10:42
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Hint:
$L_1$ is produced by
S := $epsilon$
| aSb
$L_2$ is produced by
S := $epsilon$
| aSbb
(assuming $a^a$ is a typo, meaning $a^n$)
Hint:
$L_1$ is produced by
S := $epsilon$
| aSb
$L_2$ is produced by
S := $epsilon$
| aSbb
(assuming $a^a$ is a typo, meaning $a^n$)
answered Dec 11 '14 at 8:09
Ronald
543410
543410
yes $a^n$ but is it dCFL
â Sachin Divakar
Dec 11 '14 at 8:32
1
Both $L_1$ and $L_2$ are DCFL. Their union isn't because it cannot be deterministically decided to process single b's or pairs of b's after a sequence of a's.
â Ronald
Dec 11 '14 at 10:42
add a comment |Â
yes $a^n$ but is it dCFL
â Sachin Divakar
Dec 11 '14 at 8:32
1
Both $L_1$ and $L_2$ are DCFL. Their union isn't because it cannot be deterministically decided to process single b's or pairs of b's after a sequence of a's.
â Ronald
Dec 11 '14 at 10:42
yes $a^n$ but is it dCFL
â Sachin Divakar
Dec 11 '14 at 8:32
yes $a^n$ but is it dCFL
â Sachin Divakar
Dec 11 '14 at 8:32
1
1
Both $L_1$ and $L_2$ are DCFL. Their union isn't because it cannot be deterministically decided to process single b's or pairs of b's after a sequence of a's.
â Ronald
Dec 11 '14 at 10:42
Both $L_1$ and $L_2$ are DCFL. Their union isn't because it cannot be deterministically decided to process single b's or pairs of b's after a sequence of a's.
â Ronald
Dec 11 '14 at 10:42
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1063132%2fl-1-anbn-and-l-2-anb2n-is-l-1-cup-l-2-dcfl%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Being CFL is entirely different from being a DCFL and both are entirely different from being regular. Which do you actually want?
â Steven Stadnicki
Dec 11 '14 at 8:47
Is it DCFL or not/am i understanding correctly being DCFL means it can be accepted by a deterministic PDA
â Sachin Divakar
Dec 11 '14 at 8:59