The Complexity of “The Baby Shark Song”.
up vote
17
down vote
favorite
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
add a comment |
up vote
17
down vote
favorite
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
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
add a comment |
up vote
17
down vote
favorite
up vote
17
down vote
favorite
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
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
asymptotics recreational-mathematics information-theory music-theory
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
add a comment |
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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f2997656%2fthe-complexity-of-the-baby-shark-song%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
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