$L_1 =(a^nb^n)$ and $L_2 =(a^nb^2n)$. Is $L_1 cup L_2$ DCFL?

The name of the pictureThe name of the pictureThe name of the pictureClash 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?










share|cite|improve this question























  • 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















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?










share|cite|improve this question























  • 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













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?










share|cite|improve this question















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






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








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

















  • 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











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$)






share|cite|improve this answer




















  • 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










Your Answer




StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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






























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$)






share|cite|improve this answer




















  • 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














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$)






share|cite|improve this answer




















  • 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












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$)






share|cite|improve this answer












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$)







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










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
















  • 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

















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































這個網誌中的熱門文章

How to combine Bézier curves to a surface?

Carbon dioxide

Why am i infinitely getting the same tweet with the Twitter Search API?