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

Home > Probability
Maze (Posted on 2002-06-26) Difficulty: 3 of 5
You're trapped in a maze. There is a way out. Path junctions are all 3-way.

If you use the strategy of always taking the path going right, what will happen?

(Note: This problem is deliberarely vague.)

See The Solution Submitted by Cheradenine    
Rating: 2.5556 (9 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Hints/Tips possible results | Comment 43 of 54 |
testing yields:

5 nodes, 1000 mazes, 10 runs per maze
runs: 10000 exits: 6531 ratio: 0.6531

10 nodes: 1000 mazes, 10 runs per maze
runs: 10000 exits: 5692 ratio: 0.5692

50 nodes: 1000 mazes, 10 runs per maze
runs: 10000 exits: 5204 ratio: 0.5204

100 nodes: 1000 mazes, 10 runs per maze
runs: 10000 exits: 519 1 ratio: 0.5191

maze construction algorithm:
1. Construct all the nodes
2. partially attach 1 node to another node
- select the nodes to be attached randomly
- select the path that links them randomly
3. repeat step 2 until all nodes (except exit) are fully attached (ie have their 3 paths linked)

maze walking:
1. start at a random node and path
2. walk until exit or number of paths is greater
than 3 * number of nodes

if anybody wants the (java) program to verify ill be happy to send it :)
  Posted by Cheradenine on 2002-07-05 07:35:20
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 (11)
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