The Complexity of “The Baby Shark Song”.











up vote
17
down vote

favorite
5












This question is just for fun. I hope it's received in the same goofy spirit in which I wrote it.



I just had the pleasure of reading Knuth's "The Complexity of Songs" and I thought it'd be hilarious if someone could do an analysis of the complexity of an infinite version of "The Baby Shark Song" or two, similar to the one done in ibid. on "O' McDonald had a Farm".



Here are the lyrics:



"Baby shark, doo doo doo doo doo doo.



Baby shark, doo doo doo doo doo doo.



Baby shark, doo doo doo doo doo doo.



Baby shark!



"Mommy shark, doo doo doo doo doo doo.



Mommy shark, doo doo doo doo doo doo.



Mommy shark, doo doo doo doo doo doo.



Mommy shark!



"Daddy shark, doo doo doo doo doo doo.



Daddy shark, doo doo doo doo doo doo.



Daddy shark, doo doo doo doo doo doo.



Daddy shark!



"Grandma shark, doo doo doo doo doo doo.



Grandma shark, doo doo doo doo doo doo.



Grandma shark, doo doo doo doo doo doo.



Grandma shark!



"Grandpa shark, doo doo doo doo doo doo.



Grandpa shark, doo doo doo doo doo doo.



Grandpa shark, doo doo doo doo doo doo.



Grandpa shark!



"Let's go hunt, doo doo doo doo doo doo.



Let's go hunt, doo doo doo doo doo doo.



Let's go hunt, doo doo doo doo doo doo.



Let's go hunt!



"Run away, doo doo doo doo doo doo.



Run away, doo doo doo doo doo doo.



Run away, doo doo doo doo doo doo.



Run away!



"Safe at last, doo doo doo doo doo doo.



Safe at last, doo doo doo doo doo doo.



Safe at last, doo doo doo doo doo doo.



Safe at last!



"It's the end, doo doo doo doo doo doo.



It's the end, doo doo doo doo doo doo.



It's the end, doo doo doo doo doo doo.



It's the end!"



Possible schema:



Let $D=text{"doo"}^6$.



Let $R(x)=x, D,, x, D,, x, D,, x$.



Let $$begin{align}
S_b&=text{"baby shark"},\
S_m&=text{"mommy shark"},\
S_d&=text{"daddy shark"},\
S_{gm}&=text{"grandma shark"},\
S_{gp}&=text{"grandpa shark"},\
H&=text{"let's go hunt"}, \
R_a&=text{"run away"}, \
S&=text{"safe at last"}, \
E&=text{"it's the end"}.
end{align}$$



Let $U(a, b, c, d, e, f, g, h, i)=R(a)R(b)R(c)R(d)R(e)R(f)R(g)R(h)R(i)$.



A song of order $m$ would be defined as follows:



$$begin{align}
mathscr{S}_0&=epsilon, \
mathscr{S}_m&=U(a, b, c, d, e, f, g, h, i)mathscr{S}_{m-1}
end{align}$$



for $mge 1$.



And so on . . .



The Problem:



I'm not sure how to take it from there.



Thoughts:



It should be simple. In fact, I think the complexity of the song, as defined, is just $O(1)$.



I'm not happy with the current schema, either. The $R(E)$ should go at "the end" instead of interspersed throughout for one thing.



Alternatively . . .




What would happen to the complexity of the song if we insist that, instead, we go from $R(text{"baby shark"})$ to $R(text{"grandpa shark"})$ as at the beginning but then, with $$V_ell(S_{gm}, S_{gp})=R(G_ell S_{gm})R(G_ell S_{gp}),$$ where $G_ell=text{great}^ell$ for $ellge 1$, we just carry on with the $V_ell$s?




Again, I suspect that it's $O(1)$, but I believe this much less than I do in the first case.



Please help :)










share|cite|improve this question




















  • 4




    I for sure can't help you, but I just gotta say that I love this question (+1)
    – clathratus
    Nov 14 at 2:15






  • 1




    usually credited as achieving the extremum: youtube.com/watch?v=q3svW8PM_jc
    – Will Jagy
    Nov 14 at 2:16






  • 1




    web.archive.org/web/20051226111159/http://www.cs.utexas.edu/…
    – Will Jagy
    Nov 14 at 2:20






  • 5




    Only the dead can know peace from this song.
    – Robert Thingum
    Nov 14 at 2:59















up vote
17
down vote

favorite
5












This question is just for fun. I hope it's received in the same goofy spirit in which I wrote it.



I just had the pleasure of reading Knuth's "The Complexity of Songs" and I thought it'd be hilarious if someone could do an analysis of the complexity of an infinite version of "The Baby Shark Song" or two, similar to the one done in ibid. on "O' McDonald had a Farm".



Here are the lyrics:



"Baby shark, doo doo doo doo doo doo.



Baby shark, doo doo doo doo doo doo.



Baby shark, doo doo doo doo doo doo.



Baby shark!



"Mommy shark, doo doo doo doo doo doo.



Mommy shark, doo doo doo doo doo doo.



Mommy shark, doo doo doo doo doo doo.



Mommy shark!



"Daddy shark, doo doo doo doo doo doo.



Daddy shark, doo doo doo doo doo doo.



Daddy shark, doo doo doo doo doo doo.



Daddy shark!



"Grandma shark, doo doo doo doo doo doo.



Grandma shark, doo doo doo doo doo doo.



Grandma shark, doo doo doo doo doo doo.



Grandma shark!



"Grandpa shark, doo doo doo doo doo doo.



Grandpa shark, doo doo doo doo doo doo.



Grandpa shark, doo doo doo doo doo doo.



Grandpa shark!



"Let's go hunt, doo doo doo doo doo doo.



Let's go hunt, doo doo doo doo doo doo.



Let's go hunt, doo doo doo doo doo doo.



Let's go hunt!



"Run away, doo doo doo doo doo doo.



Run away, doo doo doo doo doo doo.



Run away, doo doo doo doo doo doo.



Run away!



"Safe at last, doo doo doo doo doo doo.



Safe at last, doo doo doo doo doo doo.



Safe at last, doo doo doo doo doo doo.



Safe at last!



"It's the end, doo doo doo doo doo doo.



It's the end, doo doo doo doo doo doo.



It's the end, doo doo doo doo doo doo.



It's the end!"



Possible schema:



Let $D=text{"doo"}^6$.



Let $R(x)=x, D,, x, D,, x, D,, x$.



Let $$begin{align}
S_b&=text{"baby shark"},\
S_m&=text{"mommy shark"},\
S_d&=text{"daddy shark"},\
S_{gm}&=text{"grandma shark"},\
S_{gp}&=text{"grandpa shark"},\
H&=text{"let's go hunt"}, \
R_a&=text{"run away"}, \
S&=text{"safe at last"}, \
E&=text{"it's the end"}.
end{align}$$



Let $U(a, b, c, d, e, f, g, h, i)=R(a)R(b)R(c)R(d)R(e)R(f)R(g)R(h)R(i)$.



A song of order $m$ would be defined as follows:



$$begin{align}
mathscr{S}_0&=epsilon, \
mathscr{S}_m&=U(a, b, c, d, e, f, g, h, i)mathscr{S}_{m-1}
end{align}$$



for $mge 1$.



And so on . . .



The Problem:



I'm not sure how to take it from there.



Thoughts:



It should be simple. In fact, I think the complexity of the song, as defined, is just $O(1)$.



I'm not happy with the current schema, either. The $R(E)$ should go at "the end" instead of interspersed throughout for one thing.



Alternatively . . .




What would happen to the complexity of the song if we insist that, instead, we go from $R(text{"baby shark"})$ to $R(text{"grandpa shark"})$ as at the beginning but then, with $$V_ell(S_{gm}, S_{gp})=R(G_ell S_{gm})R(G_ell S_{gp}),$$ where $G_ell=text{great}^ell$ for $ellge 1$, we just carry on with the $V_ell$s?




Again, I suspect that it's $O(1)$, but I believe this much less than I do in the first case.



Please help :)










share|cite|improve this question




















  • 4




    I for sure can't help you, but I just gotta say that I love this question (+1)
    – clathratus
    Nov 14 at 2:15






  • 1




    usually credited as achieving the extremum: youtube.com/watch?v=q3svW8PM_jc
    – Will Jagy
    Nov 14 at 2:16






  • 1




    web.archive.org/web/20051226111159/http://www.cs.utexas.edu/…
    – Will Jagy
    Nov 14 at 2:20






  • 5




    Only the dead can know peace from this song.
    – Robert Thingum
    Nov 14 at 2:59













up vote
17
down vote

favorite
5









up vote
17
down vote

favorite
5






5





This question is just for fun. I hope it's received in the same goofy spirit in which I wrote it.



I just had the pleasure of reading Knuth's "The Complexity of Songs" and I thought it'd be hilarious if someone could do an analysis of the complexity of an infinite version of "The Baby Shark Song" or two, similar to the one done in ibid. on "O' McDonald had a Farm".



Here are the lyrics:



"Baby shark, doo doo doo doo doo doo.



Baby shark, doo doo doo doo doo doo.



Baby shark, doo doo doo doo doo doo.



Baby shark!



"Mommy shark, doo doo doo doo doo doo.



Mommy shark, doo doo doo doo doo doo.



Mommy shark, doo doo doo doo doo doo.



Mommy shark!



"Daddy shark, doo doo doo doo doo doo.



Daddy shark, doo doo doo doo doo doo.



Daddy shark, doo doo doo doo doo doo.



Daddy shark!



"Grandma shark, doo doo doo doo doo doo.



Grandma shark, doo doo doo doo doo doo.



Grandma shark, doo doo doo doo doo doo.



Grandma shark!



"Grandpa shark, doo doo doo doo doo doo.



Grandpa shark, doo doo doo doo doo doo.



Grandpa shark, doo doo doo doo doo doo.



Grandpa shark!



"Let's go hunt, doo doo doo doo doo doo.



Let's go hunt, doo doo doo doo doo doo.



Let's go hunt, doo doo doo doo doo doo.



Let's go hunt!



"Run away, doo doo doo doo doo doo.



Run away, doo doo doo doo doo doo.



Run away, doo doo doo doo doo doo.



Run away!



"Safe at last, doo doo doo doo doo doo.



Safe at last, doo doo doo doo doo doo.



Safe at last, doo doo doo doo doo doo.



Safe at last!



"It's the end, doo doo doo doo doo doo.



It's the end, doo doo doo doo doo doo.



It's the end, doo doo doo doo doo doo.



It's the end!"



Possible schema:



Let $D=text{"doo"}^6$.



Let $R(x)=x, D,, x, D,, x, D,, x$.



Let $$begin{align}
S_b&=text{"baby shark"},\
S_m&=text{"mommy shark"},\
S_d&=text{"daddy shark"},\
S_{gm}&=text{"grandma shark"},\
S_{gp}&=text{"grandpa shark"},\
H&=text{"let's go hunt"}, \
R_a&=text{"run away"}, \
S&=text{"safe at last"}, \
E&=text{"it's the end"}.
end{align}$$



Let $U(a, b, c, d, e, f, g, h, i)=R(a)R(b)R(c)R(d)R(e)R(f)R(g)R(h)R(i)$.



A song of order $m$ would be defined as follows:



$$begin{align}
mathscr{S}_0&=epsilon, \
mathscr{S}_m&=U(a, b, c, d, e, f, g, h, i)mathscr{S}_{m-1}
end{align}$$



for $mge 1$.



And so on . . .



The Problem:



I'm not sure how to take it from there.



Thoughts:



It should be simple. In fact, I think the complexity of the song, as defined, is just $O(1)$.



I'm not happy with the current schema, either. The $R(E)$ should go at "the end" instead of interspersed throughout for one thing.



Alternatively . . .




What would happen to the complexity of the song if we insist that, instead, we go from $R(text{"baby shark"})$ to $R(text{"grandpa shark"})$ as at the beginning but then, with $$V_ell(S_{gm}, S_{gp})=R(G_ell S_{gm})R(G_ell S_{gp}),$$ where $G_ell=text{great}^ell$ for $ellge 1$, we just carry on with the $V_ell$s?




Again, I suspect that it's $O(1)$, but I believe this much less than I do in the first case.



Please help :)










share|cite|improve this question















This question is just for fun. I hope it's received in the same goofy spirit in which I wrote it.



I just had the pleasure of reading Knuth's "The Complexity of Songs" and I thought it'd be hilarious if someone could do an analysis of the complexity of an infinite version of "The Baby Shark Song" or two, similar to the one done in ibid. on "O' McDonald had a Farm".



Here are the lyrics:



"Baby shark, doo doo doo doo doo doo.



Baby shark, doo doo doo doo doo doo.



Baby shark, doo doo doo doo doo doo.



Baby shark!



"Mommy shark, doo doo doo doo doo doo.



Mommy shark, doo doo doo doo doo doo.



Mommy shark, doo doo doo doo doo doo.



Mommy shark!



"Daddy shark, doo doo doo doo doo doo.



Daddy shark, doo doo doo doo doo doo.



Daddy shark, doo doo doo doo doo doo.



Daddy shark!



"Grandma shark, doo doo doo doo doo doo.



Grandma shark, doo doo doo doo doo doo.



Grandma shark, doo doo doo doo doo doo.



Grandma shark!



"Grandpa shark, doo doo doo doo doo doo.



Grandpa shark, doo doo doo doo doo doo.



Grandpa shark, doo doo doo doo doo doo.



Grandpa shark!



"Let's go hunt, doo doo doo doo doo doo.



Let's go hunt, doo doo doo doo doo doo.



Let's go hunt, doo doo doo doo doo doo.



Let's go hunt!



"Run away, doo doo doo doo doo doo.



Run away, doo doo doo doo doo doo.



Run away, doo doo doo doo doo doo.



Run away!



"Safe at last, doo doo doo doo doo doo.



Safe at last, doo doo doo doo doo doo.



Safe at last, doo doo doo doo doo doo.



Safe at last!



"It's the end, doo doo doo doo doo doo.



It's the end, doo doo doo doo doo doo.



It's the end, doo doo doo doo doo doo.



It's the end!"



Possible schema:



Let $D=text{"doo"}^6$.



Let $R(x)=x, D,, x, D,, x, D,, x$.



Let $$begin{align}
S_b&=text{"baby shark"},\
S_m&=text{"mommy shark"},\
S_d&=text{"daddy shark"},\
S_{gm}&=text{"grandma shark"},\
S_{gp}&=text{"grandpa shark"},\
H&=text{"let's go hunt"}, \
R_a&=text{"run away"}, \
S&=text{"safe at last"}, \
E&=text{"it's the end"}.
end{align}$$



Let $U(a, b, c, d, e, f, g, h, i)=R(a)R(b)R(c)R(d)R(e)R(f)R(g)R(h)R(i)$.



A song of order $m$ would be defined as follows:



$$begin{align}
mathscr{S}_0&=epsilon, \
mathscr{S}_m&=U(a, b, c, d, e, f, g, h, i)mathscr{S}_{m-1}
end{align}$$



for $mge 1$.



And so on . . .



The Problem:



I'm not sure how to take it from there.



Thoughts:



It should be simple. In fact, I think the complexity of the song, as defined, is just $O(1)$.



I'm not happy with the current schema, either. The $R(E)$ should go at "the end" instead of interspersed throughout for one thing.



Alternatively . . .




What would happen to the complexity of the song if we insist that, instead, we go from $R(text{"baby shark"})$ to $R(text{"grandpa shark"})$ as at the beginning but then, with $$V_ell(S_{gm}, S_{gp})=R(G_ell S_{gm})R(G_ell S_{gp}),$$ where $G_ell=text{great}^ell$ for $ellge 1$, we just carry on with the $V_ell$s?




Again, I suspect that it's $O(1)$, but I believe this much less than I do in the first case.



Please help :)







asymptotics recreational-mathematics information-theory music-theory






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 15 at 18:26

























asked Nov 14 at 2:00









Shaun

7,942113577




7,942113577








  • 4




    I for sure can't help you, but I just gotta say that I love this question (+1)
    – clathratus
    Nov 14 at 2:15






  • 1




    usually credited as achieving the extremum: youtube.com/watch?v=q3svW8PM_jc
    – Will Jagy
    Nov 14 at 2:16






  • 1




    web.archive.org/web/20051226111159/http://www.cs.utexas.edu/…
    – Will Jagy
    Nov 14 at 2:20






  • 5




    Only the dead can know peace from this song.
    – Robert Thingum
    Nov 14 at 2:59














  • 4




    I for sure can't help you, but I just gotta say that I love this question (+1)
    – clathratus
    Nov 14 at 2:15






  • 1




    usually credited as achieving the extremum: youtube.com/watch?v=q3svW8PM_jc
    – Will Jagy
    Nov 14 at 2:16






  • 1




    web.archive.org/web/20051226111159/http://www.cs.utexas.edu/…
    – Will Jagy
    Nov 14 at 2:20






  • 5




    Only the dead can know peace from this song.
    – Robert Thingum
    Nov 14 at 2:59








4




4




I for sure can't help you, but I just gotta say that I love this question (+1)
– clathratus
Nov 14 at 2:15




I for sure can't help you, but I just gotta say that I love this question (+1)
– clathratus
Nov 14 at 2:15




1




1




usually credited as achieving the extremum: youtube.com/watch?v=q3svW8PM_jc
– Will Jagy
Nov 14 at 2:16




usually credited as achieving the extremum: youtube.com/watch?v=q3svW8PM_jc
– Will Jagy
Nov 14 at 2:16




1




1




web.archive.org/web/20051226111159/http://www.cs.utexas.edu/…
– Will Jagy
Nov 14 at 2:20




web.archive.org/web/20051226111159/http://www.cs.utexas.edu/…
– Will Jagy
Nov 14 at 2:20




5




5




Only the dead can know peace from this song.
– Robert Thingum
Nov 14 at 2:59




Only the dead can know peace from this song.
– Robert Thingum
Nov 14 at 2:59















active

oldest

votes











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: 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
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2997656%2fthe-complexity-of-the-baby-shark-song%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2997656%2fthe-complexity-of-the-baby-shark-song%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Plaza Victoria

In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...