Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Diverse Subset. A store trying to analyze the behavior of its customers will often maintain a two - dimensional array A , where the rows
Diverse Subset. A store trying to analyze the behavior of its customers will often maintain a twodimensional array A where the rows correspond to its customers and the columns correspond to the products it sells. The entry Ai j specifies the quantity of product j that has been purchased by customer i
Heres a tiny example of such an array A
detergent
beer
diapers
cat litter
Raj
Alanis
Chelsea
One thing that a store might want to do with this data is the following. Let us say that a subset S of the customers is diverse if no two of the of the customers in S have ever bought the same product ie for each product, at most one of the customers in S has ever bought it A diverse set of customers can be useful, for example, as a target pool for market research.
We can now define the DiverseSubset Problem as follows: Given an m times n array A as defined above, and a number k m is there a subset of at least k of customers that is diverse?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started