logo

Crowdly

A ski rental agency has m pairs of skis, where the height of the ith pair of s...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

A ski rental agency has m pairs of skis, where the height of the ith pair of skis is si.

There are n skiers who wish to rent skis, where the height of the ith skier is hi

Ideally, each skier should obtain a pair of skis whose height matches her/his own height as closely as possible.

We would like to assign skis to skiers so that the sum of the absolute differences of the heights of each skier and her/his skis is minimized.

Assuming that m > n, design a dynamic programming approach for the problem with providing a recurrence relation that allows to compute the optimal value.

You need to justify informally your recurrence relation.

More questions like this

Want instant access to all verified answers on moodle.concordia.ca?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!