Question
Careful readers might complain that our analysis of songs like n Bottles of Beer on the Wall or The n Days of Christmas is overly
Careful readers might complain that our analysis of songs like n Bottles of Beer on the Wall or The n Days of Christmas is overly simplistic, because larger numbers take longer to sing than shorter numbers. More generally, because there are only so many words of a given length, larger sets of words necessarily contain longer words. We can more accurately estimate singing time by counting the number of syllables sung, rather than the number of words.
(a) How long does it take to sing the integer n?
(b) How long does it take to sing "n Bottles of Beer on the Wall"?
(c) How long does it take to sing "The n Days of Christmas"?
Express the answers in the form O(f(n)) for some function f.
Could anyone explain the question? I can't catch any clue to solve them.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started