Question: 1 . ( 3 0 points ) Greedy Algorithms. You re the production manager of the Acme Balloon Company. Your company fills the character balloons
points Greedy Algorithms. Youre the production manager of the Acme Balloon
Company. Your company fills the character balloons for the Macys Thanksgiving Day
Parade. Each year, there are n character balloons to be filled, each numbered from to
n Theres also an associated volume for each balloon Vi And your profits are based on
the total volume of the filled balloons. However, your production facility can only fill
one balloon a day, and each balloon loses a fixed percentage P of its volume per day.
a Write a greedy, pseudocode algorithm to determine which order the balloons should
be filled to maximize the total volume of the balloons.
b Use your algorithm with fixed percentage of volume loss P and this assort
ment of balloons:
Balloon
Character ScoobyDo Garfield Goku Olaf Po
Volume
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
