Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A store trying to analyze the behavior of its customers will often maintain a two-dimensional array A, where the rows correspond to its customers

A store trying to analyze the behavior of its customers will often maintain a two-dimensional array A, where the rows correspond to its customers and the columns correspond to the products it sells. The entry Ali,j] specifies the quantity of product j that has been purchased by customer i. Heres a tiny example of such an array A liquid detergent bee diapers cat litter Raj Alanis2 Chelsea 0 06 07 One thing that a store might want to do with this data is the following. Let us say that subset S of the customers is diverse if no two of the of the customers in S have ever bought the sameproduct (i.e., 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 Diverse Subset Problem as follows: Given an m × n array A as defined above, and a number k < m, is there a subset of at least k of customers that is diverse? 1. (7 points) Show that Diverse Subset is in NP. 2. (18 points) Show that Diverse Subset is NP-complete 

A store trying to analyze the behavior of its customers will often maintain a two-dimensional array A, where the rows correspond to its customers and the columns correspond to the products it sells. The entry A[i, j] specifies the quantity of product j that has been purchased by customer i. Here's a tiny example of such an array A. liquid detergent beer diapers cat litter Raj 6 Alanis Chelsea 7 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 (i.e., 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 Diverse Subset Problem as follows: Given an m x n array A as defined above, and a number k < m, is there a subset of at least k of customers that is diverse? 1. (7 points) Show that Diverse Subset is in NP. 2. (18 points) Show that Diverse Subset is NP-complete.

Step by Step Solution

3.48 Rating (171 Votes )

There are 3 Steps involved in it

Step: 1

1 To prove that Diverse Subset is in NP a polynomial time verifier for Diverse Subset is Inputs A1m ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Statistics The Art And Science Of Learning From Data

Authors: Alan Agresti, Christine A. Franklin

3rd Edition

9780321849281, 321755944, 321849280, 978-0321755940

More Books

Students also viewed these Operating System questions

Question

What are the possible sources of error in this project?

Answered: 1 week ago