Question: Design a greedy algorithm, in pseudo-code or plain English as long as is it is precise and polynomial in n. Problem 4. (a) You are
Design a greedy algorithm, in pseudo-code or plain English as long as is it is precise and polynomial in n.

Problem 4. (a) You are given a set of n items of sizes (1, ...,an EN, and a bin of size BEN. Your goal is to find a maximum cardinality subset of items that all fit inside the bin. That is, you want to find a set of distinct indices I = {il,...,k} {1,...,n}, such that dij +...+dis
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
