Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am really having trouble with conceptualizing these problems, that said, more detailed english explanations would be super useful Socrates the Scientific Squirrel is conducting
I am really having trouble with conceptualizing these problems, that said, more detailed english explanations would be super useful
Socrates the Scientific Squirrel is conducting some experi- ments. Socrates lives in a very tall tree with n branches, and she wants to find out what is the lowest branch so that an acorn will break open when dropped from branch i. (If an acorn breaks open when dropped from branch i, then an acorn will also break open when dropped from branch j for any j 2 i.) The catch is that, once an acorn is broken open, Socrates will eat it immediately and it can't be dropped again. a)Suppose that Socrates has two acorns. Give a procedure so that she can identify the correct branch using O(Vn) drops [We are expecting: Pseudocode AND a short English description of your algorithm, and a justification of the number of drops. If it helps you may assume that n is a perfect square.] b) Suppose that Socrates has k (1) acorns. Give a procedure so that she can identify the correct branch using O(n1/k) drops [We are expecting: Pseudocode AND a short English description of your algorithm, and a justification of the number of drops. If it helps you many assume that n is of the form n = m for some integer m.] C) What happens to your algorithm in part (d) when k log(n)l1? Is it O(log(n)), like in part (a)? Is it O(n/k) when k-log(n)1, like in part (d)? [We are expecting: A sentence of the form "the number of drops of my algorithm in part (d) when k log(n)] +1 is O()", along with justification. Also, two yeso answers to the two yeso questions (you should justify your answers but do not need to include a formal proof). d) k acorns, for k = 0(1)? Either give a proof that she can't do better, or give an algorithm with asymptotically fewer drops Is (nl/k) drops is the best that Socrates can do withStep 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