Jump to content
BrainDen.com - Brain Teasers
  • 3

Breadcrumbs


plasmid
 Share

Question

Warning: This is a problem I have not yet found an optimal (or even very good) solution to. But it seems awfully non-trivial, and not in a genre that I've seen before, so I'm throwing it out there for the Den. ( @bonanova that means you should take a look.)

You have a pet mouse. It's an awfully cute mouse. Kind of like those mice on Pinky and the Brain. And you'd like to make it even cuter by teaching it some tricks. The only problem is that your mouse is, well... let's just say it has the brain of a mouse so it's kind of hard to teach it any tricks. But it is very good at eating food. In fact, it will always manage to find the closest morsel of food and go eat it, then find the closest from its new position and go eat that, etc. until it eats everything in sight. So, you'd like to "teach" your mouse to do some tricks given that behavior.

The first exercise is to place morsels of food at the corners of a square and place breadcrumbs so the mouse runs to diagonal corners as much as possible. In other words, suppose you have a square with points A, B, C, D in clockwise order with the mouse starting at point A and you'd like to make the mouse go to point C (diagonal from point A), then point B (one of the two remaining), then point D (diagonal from point B). There are already some breadcrumbs at points B, C, and D (since there need to be breadcrumbs there if you want the mouse to stop at those points) and your goal is to place breadcrumbs to make the mouse go from A to C to B to D while placing as few breadcrumbs as possible.

That first exercise might be a challenge for your kid brother, but for a BrainDen level challenge (the one I haven't convinced myself I've found an optimal solution for yet): Instead of a square, suppose you have a regular pentagon with points A, B, C, D, and E in clockwise order and want to get the mouse to go from A to C to E to B to D?

Link to comment
Share on other sites

Recommended Posts

  • 0

@plasmid Interesting puzzle and thanks for the call out.

EDIT: Thought this was optimal, but now have read @CaptainEd's solution.

Tip of the cap, Nice going. FWIW, my best efforts follow ....

Breadcrumbs (red circles) are placed at the five vertices A B C D and E.

Object is for our mouse to take four straight paths: AC, CE, EB, and BD.

Because we have a greedy mouse that goes to the nearest snack, it will move from a vertex to an adjacent vertex whenever it has an uneaten crumb. That must be prevented. So we draw inter-vertex-radius circles -- a red circle centered on A, a green circle centered on C and a blue circle centered on E -- to help define advantageous areas to place our minimum (M) count of additional tasty crumbs to keep our mouse on its intended path.

It is quickly evident that M can't be less than 5. (First-pass solution.)

  Reveal hidden contents

Second-pass solution.

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 6/21/2019 at 5:11 PM, bonanova said:

@CaptainEd

  Reveal hidden contents

@plasmid

  Reveal hidden contents

 

Expand  

Sort of a hint... (But note the edit below the spoiler before you open the spoiler.)

  Reveal hidden contents

Edit: To clarify: the mouse doesn't need to travel along straight lines to each of the points. It can go along any curved, jagged, or whatever sort of two-dimensional path you want, which makes the problem more interesting. If that's enough clarification, then don't open the spoiler :3

Edited by plasmid
Clarification of the OP
Link to comment
Share on other sites

  • 0
  On 6/22/2019 at 3:43 AM, plasmid said:

Edit: To clarify: the mouse doesn't need to travel along straight lines to each of the points. It can go along any curved, jagged, or whatever sort of two-dimensional path you want, which makes the problem more interesting. If that's enough clarification, then don't open the spoiler :3

Expand  

I understand that the mouse goes to the nearest crumb, and that "nearest" means shortest euclidean (straight line) distance. So (haven't read the spoiler yet) I never conceived the mouse would get advantage by doing otherwise.

I'm assuming the mouse is playing strictly according to his own hunger advantage. Am I right about that?

Oh wait. you're saying that
 

  Reveal hidden contents

Give me a day or two to work on that?

Link to comment
Share on other sites

  • 0
  On 6/22/2019 at 5:27 AM, bonanova said:

I understand that the mouse goes to the nearest crumb, and that "nearest" means shortest euclidean (straight line) distance. So (haven't read the spoiler yet) I never conceived the mouse would get advantage by doing otherwise.

I'm assuming the mouse is playing strictly according to his own hunger advantage. Am I right about that?

Oh wait. you're saying that
 

  Reveal hidden contents

Give me a day or two to work on that?

Expand  

That's correct. The mouse can take whatever path you want it to take, even if it's not straight lines from A to C to E to B to E, as long as it reaches the specified destinations in the specified order.

And it took me more than a day or two, so I certainly wouldn't fault you if it takes more than that.

Link to comment
Share on other sites

  • 0

This was a fun puzzle.

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 6/23/2019 at 5:33 AM, bonanova said:

This was a fun puzzle.

  Reveal hidden contents

 

Expand  

That's the best solution so far, and matches the number of breadcrumbs I had even though it seems substantially different. I strongly suspect that there aren't any better solutions with fewer breadcrumbs, although I don't know of a way of proving it, let alone finding a general solution for determining the fewest number of breadcrumbs it would take to "teach" a dumb but hungry mouse to travel any arbitrary path. And I sort of doubt that anyone has figured it out since this sort of puzzle isn't a common thing. But I'll go ahead and share my perspective on the problem and the solution I reached.

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0

I think there's a proof for the pentagon case.

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 6/23/2019 at 6:17 AM, bonanova said:

I think there's a proof for the pentagon case.

  Reveal hidden contents

 

Expand  

I would have to disagree with that since I just posted a solution with only one breadcrumb going from C to E. But I do agree that there probably isn't a better solution for the pentagon case than adding five new breadcrumbs.

Link to comment
Share on other sites

  • 0
  On 6/23/2019 at 6:45 AM, bonanova said:

What precludes the mouse from going from G(2) to G(5)? (My eyes are getting bleary ...)

Expand  
  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 6/24/2019 at 12:40 AM, bonanova said:

With discussion help from @plasmid, here is a 9-crumb solution. Kudos again for an engaging puzzle.
 

  Reveal hidden contents

Path A 1 2 C

  Reveal hidden contents

Path C 3 E

  Reveal hidden contents

Path E 4 B D

  Reveal hidden contents

 

 

Expand  

It looks like that will indeed work. And I know I just said this about the previous solution, but now I really don't think there's a way to do it with any fewer breadcrumbs.

As for ever finding a general solution to the breadcrumbing problem, 

  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...