A store trying to analyze the behavior of its customers will often maintain a two-dimensional array...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
1 To prove that Diverse Subset is in NP a polynomial time verifier for Diverse Subset is Inputs A1m ... View the full answer
Related Book For
Statistics The Art and Science of Learning from Data
ISBN: 978-0321755940
3rd edition
Authors: Alan Agresti, Christine A. Franklin
Posted Date:
Students also viewed these operating system questions
-
In todays world and as the eCommerce network continues to grow on a global scale it will encompass a greater and greater share of total retail sales The fact is it is no longer a novelty and sellers...
-
A 2D Array consists of four rows and six columns. Each row represents a student while each column represents a lab grade. Write the following functions and test them: ¢ Print the average grade...
-
It has been stated that dimensional tolerances for nonmetallic stock, such as plastics, are usually wider than for metals. Explain why. Consider physical and mechanical properties of the materials...
-
What are the possible sources of error in this project?
-
In which of the product-life-cycle stages is the use of price as a lead variable likely to be most appropriate. Explain your reasoning.
-
The thin plastic rod of length L = 10.0 cm in Figure has a non-uniform linear charge density = cx, where c = 49.9pC/m2. (a) With V = 0 at infinity find the electric potential at point P2 on the y...
-
In 2016, a father of two minor children in Cuyahoga county, Ohio, filed a claim to determine custody of the children. At the pretrial, the father informed the magistrate he wanted to be named a legal...
-
At December 31, 2010, Grinkov Corporation had the following account balances. Installment Accounts Receivable, 2009........................$ 65,000 Installment Accounts Receivable,...
-
Two years after the first round XMP GmbH receives a second offer form B-Capital. B-Capital offers to invest 12,500,000.00 at a 60,000,000.00 pre-money valuation. What is the founders' post-round...
-
Emily Jackson (Social Security number 765-12-4326) and James Stewart (Social Security number 466-74-9932) are partners in a partnership that owns and operates a barber shop. The partnership's first...
-
When both the demand and supply curves shift, you can always determine the effect on price and quantity without knowing the magnitude of the shifts. Discuss?
-
Explain how accounts payable is affected by purchase and payment transactions
-
Explain how the assessment of the assertions for credit sales, cash receipts, and sales adjustments affects the assessment of the assertions over accounts receivable.
-
What is a dual-purpose test?
-
Name the four different types of substantive procedures discussed.
-
What is the biggest risk with payables? Why?
-
A manuscript delivery of a speech would be most appropriate in which situation? a farewell speech to a colleague an acceptance award at the Oscars a governor's address to the legislature a report to...
-
Akramin just graduated with a Master of Engineering in Manufacturing Engineering and landed a new job in Melaka with a starting salary of RM 4,000 per month. There are a number of things that he...
-
When it is operating correctly, a machine for manufacturing tennis balls produces balls with a mean weight of 57.6 grams. The last eight balls manufactured had weights 57.3, 57.4, 57.2, 57.5, 57.4,...
-
Is there a relationship between the weight and price of a mountain bike? This question was considered in Exercise 3.21. We will analyze the Mountain Bike data file on the text CD. (The data also were...
-
In 2000 the GSS asked whether a subject is willing to accept cuts in the standard of living to help the environment (GRNSOL), with categories (vw = very willing, fw = fairly willing, nwu = neither...
-
What is the difference between \(O M R\) and \(O C R\) ?
-
Now look at Fowler's work on design pattems. Look at the organizational pattern created by Fowler as a way to document the structure of a solution so that its use by others is optimized. and at the...
-
Meet with the person you interviewed in mini case 1 and present them with the design prototype you created. Get their feedback on the design. Do they like it? Could they navigate the pages? What...
Study smarter with the SolutionInn App