Is $L = {a^{i+j}b^{j+k}c^{i+k} | i,j,k > 0}$ context free?
$begingroup$
This is not an assignment question. Professor gave this for us to think about. I want to say its not context free since in the case $i=j=k$ then we have the language $a^nb^nc^n$ which we know is not a CFL.
formal-languages context-free-grammar
$endgroup$
add a comment |
$begingroup$
This is not an assignment question. Professor gave this for us to think about. I want to say its not context free since in the case $i=j=k$ then we have the language $a^nb^nc^n$ which we know is not a CFL.
formal-languages context-free-grammar
$endgroup$
$begingroup$
That doesn't make sense. you just showed that the given language contains another one which is not context free. where is the contradiction?
$endgroup$
– Federico
Dec 7 '18 at 19:51
$begingroup$
Your proof does not work
$endgroup$
– Federico
Dec 7 '18 at 20:40
$begingroup$
Noted. What if my proof is forgotten, is L context free? Im having a hard time thinking of a grammar (I know its not a valid reason).
$endgroup$
– sharprabbitz
Dec 7 '18 at 20:44
add a comment |
$begingroup$
This is not an assignment question. Professor gave this for us to think about. I want to say its not context free since in the case $i=j=k$ then we have the language $a^nb^nc^n$ which we know is not a CFL.
formal-languages context-free-grammar
$endgroup$
This is not an assignment question. Professor gave this for us to think about. I want to say its not context free since in the case $i=j=k$ then we have the language $a^nb^nc^n$ which we know is not a CFL.
formal-languages context-free-grammar
formal-languages context-free-grammar
edited Dec 7 '18 at 21:03
Shaun
8,951113682
8,951113682
asked Dec 7 '18 at 19:42
sharprabbitzsharprabbitz
31
31
$begingroup$
That doesn't make sense. you just showed that the given language contains another one which is not context free. where is the contradiction?
$endgroup$
– Federico
Dec 7 '18 at 19:51
$begingroup$
Your proof does not work
$endgroup$
– Federico
Dec 7 '18 at 20:40
$begingroup$
Noted. What if my proof is forgotten, is L context free? Im having a hard time thinking of a grammar (I know its not a valid reason).
$endgroup$
– sharprabbitz
Dec 7 '18 at 20:44
add a comment |
$begingroup$
That doesn't make sense. you just showed that the given language contains another one which is not context free. where is the contradiction?
$endgroup$
– Federico
Dec 7 '18 at 19:51
$begingroup$
Your proof does not work
$endgroup$
– Federico
Dec 7 '18 at 20:40
$begingroup$
Noted. What if my proof is forgotten, is L context free? Im having a hard time thinking of a grammar (I know its not a valid reason).
$endgroup$
– sharprabbitz
Dec 7 '18 at 20:44
$begingroup$
That doesn't make sense. you just showed that the given language contains another one which is not context free. where is the contradiction?
$endgroup$
– Federico
Dec 7 '18 at 19:51
$begingroup$
That doesn't make sense. you just showed that the given language contains another one which is not context free. where is the contradiction?
$endgroup$
– Federico
Dec 7 '18 at 19:51
$begingroup$
Your proof does not work
$endgroup$
– Federico
Dec 7 '18 at 20:40
$begingroup$
Your proof does not work
$endgroup$
– Federico
Dec 7 '18 at 20:40
$begingroup$
Noted. What if my proof is forgotten, is L context free? Im having a hard time thinking of a grammar (I know its not a valid reason).
$endgroup$
– sharprabbitz
Dec 7 '18 at 20:44
$begingroup$
Noted. What if my proof is forgotten, is L context free? Im having a hard time thinking of a grammar (I know its not a valid reason).
$endgroup$
– sharprabbitz
Dec 7 '18 at 20:44
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Look at it this way:
$$L = {a^ia^jb^jb^kc^kc^i mid i,j,k > 0}$$
Which is exactly the same (replacing the sum with concatenation is clearly not a change, and addition is commutative.)
$endgroup$
$begingroup$
Ahh that makes it clear. Thanks!
$endgroup$
– sharprabbitz
Dec 8 '18 at 6:32
add a comment |
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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3030298%2fis-l-aijbjkcik-i-j-k-0-context-free%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Look at it this way:
$$L = {a^ia^jb^jb^kc^kc^i mid i,j,k > 0}$$
Which is exactly the same (replacing the sum with concatenation is clearly not a change, and addition is commutative.)
$endgroup$
$begingroup$
Ahh that makes it clear. Thanks!
$endgroup$
– sharprabbitz
Dec 8 '18 at 6:32
add a comment |
$begingroup$
Look at it this way:
$$L = {a^ia^jb^jb^kc^kc^i mid i,j,k > 0}$$
Which is exactly the same (replacing the sum with concatenation is clearly not a change, and addition is commutative.)
$endgroup$
$begingroup$
Ahh that makes it clear. Thanks!
$endgroup$
– sharprabbitz
Dec 8 '18 at 6:32
add a comment |
$begingroup$
Look at it this way:
$$L = {a^ia^jb^jb^kc^kc^i mid i,j,k > 0}$$
Which is exactly the same (replacing the sum with concatenation is clearly not a change, and addition is commutative.)
$endgroup$
Look at it this way:
$$L = {a^ia^jb^jb^kc^kc^i mid i,j,k > 0}$$
Which is exactly the same (replacing the sum with concatenation is clearly not a change, and addition is commutative.)
answered Dec 7 '18 at 23:43
ricirici
37829
37829
$begingroup$
Ahh that makes it clear. Thanks!
$endgroup$
– sharprabbitz
Dec 8 '18 at 6:32
add a comment |
$begingroup$
Ahh that makes it clear. Thanks!
$endgroup$
– sharprabbitz
Dec 8 '18 at 6:32
$begingroup$
Ahh that makes it clear. Thanks!
$endgroup$
– sharprabbitz
Dec 8 '18 at 6:32
$begingroup$
Ahh that makes it clear. Thanks!
$endgroup$
– sharprabbitz
Dec 8 '18 at 6:32
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3030298%2fis-l-aijbjkcik-i-j-k-0-context-free%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
That doesn't make sense. you just showed that the given language contains another one which is not context free. where is the contradiction?
$endgroup$
– Federico
Dec 7 '18 at 19:51
$begingroup$
Your proof does not work
$endgroup$
– Federico
Dec 7 '18 at 20:40
$begingroup$
Noted. What if my proof is forgotten, is L context free? Im having a hard time thinking of a grammar (I know its not a valid reason).
$endgroup$
– sharprabbitz
Dec 7 '18 at 20:44