The savvy medical assistant problem: input: a vector of m packs of N95 masks sold by Amazon, where each box is a pair (k

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply