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?

M

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 - Constraint and she | Comment 9 of 19 |
(In reply to re(2): No Subject by nikki)

Hi Nikki.
Constraint: By your comment this was an unfortunate choice of word.  I was looking for a concise term and trying to maintain text brevity.  I did not occur to me to look for something as simple as "fixed/upper limit".  Had I done so we would not have the opportunity to explore this further.

As I look at your pseudocode, would it not be more precise for C=C+1 to carry some label which suggests it is a module which generates the next "C" value?  That way I could understand how one might work through something like the Fibonacci numbers.

She: I suspected that I'd get an answer somewhat akin to that.

Initially I wondered what Charlie had in mind with his proposal in the  comment just below this, but it is very interesting also.

I'm about to post my solution.  Take me to task on it if you wish.


Edited on January 22, 2008, 8:24 pm
  Posted by brianjn on 2008-01-21 21:05:28

Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


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

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information