Subscription

Books
Shop
About

Tuesday, January 25, 2011

Barrier Method to solve a maze

Can you help these butterflies reach the flower?

Try to solve the maze. You can print it first.

Check back to see how a barrier method helped me solve it.

By the way, I got the second picture by using the command Sharpen[ ] in Mathematica software.

One week later: This is my solution
Long time ago, when I first tried to solve this maze, I kept getting tangled up in loops and couldn't solve it. Then I remembered something from my friend's research on Barrier Certificates. It seems like common sense, actually - to prove that there is no possible path, you show that there is a wall/barrier.
I thought to myself, "what if this maze can't be solved?" So I tried to find a wall across the maze. (If I had found one, then that would have been proof of a bad "unsolvable" maze.) I couldn't find a complete wall, but I found a broken wall.


The broken wall is a great help in solving the maze. We know there is no path through the wall; if there's any path from butterfly to flower, then it passes through the crack in the wall. So search backwards from the crack to the flower and from the crack to the butterflies. Like this:

Here are some more mazes that you can solve more easily using barriers.

No comments:

Post a Comment

My Other Blogs

  • Henna - * more tattoo inspiration * ... Mehndi (India) Laali (Nigeria) Henna (Middle East) Want fine African Literature? Nigerian Lifestyle A-Z at REALbubbl...
    1 day ago
  • It's so nice to have internet - 30 Gigs a month. 💃💃 I can watch lots of videos (at low/medium resolution), sneak in some downloads, and not even have to worry about wasting minutes of ...
    3 days ago
  • Weekend MUSIC: #GoingHome - Home by Chris Daughtry and Eyo by Asa NEWSBUKA for all the burning topics in Nigerian politics and society. GeT FREE EmAiL UpDaTeS"
    4 days ago
  • We are Goal Number One - Sustainable Development Goals Goal 1. End poverty in all its forms everywhere Yes, We Can. Get UpNaira email updates. Order Big Girl and Big Boy. Re...
    1 week ago
  • All Sorts Of Math Jobs - [image: http://siam.org/careers/thinking/pdf/brochure.pdf] Enjoy and Share Advertisement: Read my books.
    5 weeks ago

About Me

Followers