Jump to content
BrainDen.com - Brain Teasers
  • 1

Salesman in a Square


bonanova
 Share

Question

Al made sales calls at a number of cabins, which lay in a square field, one mile on a side. He drove his car to the first cabin, then visited the remaining cabins and returned to his car on foot, walking several miles in the process. If Al had had a map and perhaps a computer, he could have picked the shortest route to take, (traveling salesman problem). Lacking these amenities, Al simply chose to visit (after the first one) the (un-visited) cabin closest to his current location.

If there were 6 cabins in all, how might they be placed, so that using Al's nearest-neighbor algorithm, and selecting the worst initial cabin, Al would be forced to walk the greatest distance; and what is that distance?

Examples:

2 cabins: diagonal corners, starting at either: 2 x sqrt(2) = 2.828... miles.
3 cabins: any three corners, starting at any of them: 2 + sqrt(2) = 3.414... miles.

Check out n=4 and n=5 as a warm-up.

 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 1

Think I have the ideal solution here

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 1

 

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 4/7/2018 at 4:53 PM, DejMar said:

 

  Reveal hidden contents

Not a bad result.

  Reveal hidden contents

 

Expand  

 

Link to comment
Share on other sites

  • 0

Modified solution:
 

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0

Correction to modified solution. (It appears I incorrectly calculated the second leg's length by failing to divide it by 2, and my approximation of the first leg also needed adjusting.)

 

  Reveal hidden contents

 

Edited by DejMar
correcting math
Link to comment
Share on other sites

  • 0
  On 4/10/2018 at 5:22 AM, tojo928 said:

Think I have the ideal solution here

  Reveal hidden contents

 

Expand  
  Reveal hidden contents

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...