Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 3 ( 2 + 5 + 5 + 2 = 1 4 ) LANDING THE SLides AT SLIDEWORLD You have won a contract for
Problem LANDING THE SLides AT SLIDEWORLD
You have won a contract for the design of a new theme park, SlideWorld. The primary attraction of the
park is to consist of landings, numbered through which will be connected by a number of slides. Each
slide connects a landing to a landing which means that slide goes from landing
directly to landing See Figure for an example of the possible slides when
Figure : An example of all possible slides when The slides are and
Slideworld wants to let the customers begin their trip at any landing and end at any other landing
Putting in all the slides in the park is going to break the bank. So you have been asked to determine a
set of slides so that any customer can get from any landing to any landing using at most two slides.
That is it should be possible to get from any to any either by taking a direct slide or by
taking two slides and To be clear, a solution of your algorithm is a set of slides.
Using divideandconquer, we will find a solution that uses only slides while ensuring that any
customer can get from any landing to any landing using at most two slides.
a For the base cases design a system using at most slide.
b For we will use divideandconquer. Assume that we already put in place slides connecting the
first landings and slides connecting the last landings so that if i and both belong to the
same half, we can get from to in at most slides. Show how to add additional slides so that
if is in the first half and is in the second half we can get from to using only two slides.
c Using part b write in pseudocode a divideandconquer algorithm that takes as input the number
of landings and outputs the list of all the slides used by your attraction.
d Write the recurrence for the number of slides your solution uses and solve it You may use any method
for solving the recurrence that we have discussed in class.
I can not for the life of me figure out what the pattern is for drawing the slides between landing points. Each slide is one way for clarification.
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