Solution Found!

The garage sale problem (courtesy of Professor Lofti Zadeh). On a given Sunday morning

Chapter 6, Problem 6.16

(choose chapter or problem)

Get Unlimited Answers
QUESTION:

The garage sale problem (courtesy of Professor Lofti Zadeh). On a given Sunday morning, thereare n garage sales going on, g1, g2, . . . , gn. For each garage sale gj , you have an estimate of itsvalue to you, vj . For any two garage sales you have an estimate of the transportation cost dijof getting from gi to gj . You are also given the costs d0j and dj0 of going between your homeand each garage sale. You want to find a tour of a subset of the given garage sales, starting andending at home, that maximizes your total benefit minus your total transportation costs.Give an algorithm that solves this problem in time O(n22n). (Hint: This is closely related to thetraveling salesman problem.)

Questions & Answers

QUESTION:

The garage sale problem (courtesy of Professor Lofti Zadeh). On a given Sunday morning, thereare n garage sales going on, g1, g2, . . . , gn. For each garage sale gj , you have an estimate of itsvalue to you, vj . For any two garage sales you have an estimate of the transportation cost dijof getting from gi to gj . You are also given the costs d0j and dj0 of going between your homeand each garage sale. You want to find a tour of a subset of the given garage sales, starting andending at home, that maximizes your total benefit minus your total transportation costs.Give an algorithm that solves this problem in time O(n22n). (Hint: This is closely related to thetraveling salesman problem.)

ANSWER:

Step 1 of 3

There are n garage sales going on, .  For each garage sale  , an estimate value is  .  For any two garage sales, an estimate of the transportation cost is  of getting from  to  .

Given the costs  and , that specifies the going cost between home and each garage sale.

Add to cart


Study Tools You Might Need

Not The Solution You Need? Search for Your Answer Here:

×

Login

Login or Sign up for access to all of our study tools and educational content!

Forgot password?
Register Now

×

Register

Sign up for access to all content on our site!

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back