The savvy medical assistant problem:
input: a vector of m packs of N95 masks sold by Amazon, where
each box is a pair (k, c) indicating the number of masks in that
pack and its cost; and the required total number of masks n
output: a list of N95 mask packs, not necessarily distinct,
accounting for exactly n masks and of minimal cost
a. Design and write the pseudocode for a dynamic programming
algorithm that solves this problem
b. Prove time complexity of your algorithm.
The savvy medical assistant problem: input: a vector of m packs of N95 masks sold by Amazon, where each box is a pair (k
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
The savvy medical assistant problem: input: a vector of m packs of N95 masks sold by Amazon, where each box is a pair (k
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!