Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3 Not So Crazy Delivery PNPenguins are running a new food delivery business where they wish to deliver ice - cakes to all their fellow

3 Not So Crazy Delivery
PNPenguins are running a new food delivery business where they wish to deliver ice-cakes to all their
fellow penguins in the shortest amount of time. The penguins community is a network consisting
of m households total and r two-way/bidirectional roads. The time it takes to travel between two
households h1,h2 is given by c(h1,h2). Due to limited budget, PNPenguins can only afford to have
a maximum of k delivery centers within the community. PNPenguins have found a subset of n
households (m>>n>k) within the community who are willing to sell their home to PNPenguins
and become a delivery center. For this problem, assume that households always get ice-cakes delivered
by the closest delivery center to them.
a) Design an algorithm that helps PNPenguins to find the most optimal locations of delivery centers;
that is, a set of delivery centers that minimizes the maximum delivery time needed to all households.
This algorithm need not run in polynomial time with respects to all variables. Please provide a
3-part solution.
Hint: First write an algorithm which computes the maximum delivery time for some fixed set of
delivery centers. Then, use this algorithm to check the maximum delivery time for each possible set
of delivery centers.
PNPenguins have now decided to use the locations you chose from part a). But right before they start
the delivery service, Pesla (a highly innovative iceship company headquartered in PNP-Borderland)
releases a new magical iceship model that allows passengers to skip over the t most time-consuming
roads along any of their journeys. PNPenguins all agree to integrate this new technology into their
delivery business.
b) Design an algorithm that finds the updated/new maximum delivery time for each household.
Please provide a 3-part solution.
Hint: create a graph such that edges and nodes encode information about whether an edge is skipped
when traversed by a graph algorithm.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions

Question

Abstract classes can have methods with bodies

Answered: 1 week ago