All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Algorithms
Unbounded Maze (Posted on 2008-01-18) Difficulty: 3 of 5
A programmable robotic mouse is placed at an intersection on a square grid, the borders of which are extendable as needed.

From its initial location the mouse moves one cell forward. It turns right with its next move incrementing by 1.

This incremental process continues up to a certain constraint whereby the mouse resumes the process with a move of one space until that constraint is met again; continue this process until you either return to your starting position or you evidently will never return.

What generalisations can be made about how variations of the value of the constraint affect the path forced upon the mouse?


Note:It will be necessary to test a range of constraining values.

See The Solution Submitted by brianjn    
Rating: 4.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
re(3): No Subject | Comment 8 of 19 |
(In reply to re(2): No Subject by nikki)

Here's an example of a path using a different constraint: if the distance from the original spot is over 20 units, revert to step size 1. It's pretty useless, as it gets stuck, in this case, on the lower right corner in a square of side 1:


   r                           s
     n                       o
       j                   k
         f               g
           b           c
             7       8
               3   4
               2 1
             6     5
           a         9
         e             d
       i                 h
     m                     l
   q                         pv zwA

where the B is then followed by xwABxwAB... interminably. Pretty useless, but an example of a different rule from a fixed maximum step size as a basis or constraint.

  Posted by Charlie on 2008-01-21 01:49:47
Please log in:
Remember me:
Sign up! | Forgot password

Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (1)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Copyright © 2002 - 2019 by Animus Pactum Consulting. All rights reserved. Privacy Information