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.

Blog Archive

My Other Blogs

  • A Monkey man and a Giant Red Panda - Monkey Man review – Dev Patel’s directorial debut is a gory descent into darkness https://t.co/N6g823SEMI — Guardian US (@GuardianUS) March 12, 2024 t...
    4 days ago
  • try advertising - View this post on Instagram A post shared by ONLINE INTERIOR DESIGN STORE (@onlinealaba_interiors) Make sure you subscribe! Follow on facebook. Ord...
    5 days ago
  • art now, forever - View this post on Instagram A post shared by OkayAfrica. (@okayafrica) View this post on Instagram A post shared by Ayush Bhatt (@triyuginarayan_dham)...
    3 weeks ago
  • this moment, this place - wetin dey reign now: agba baller! and shallipopi. the baddest dog's name ever, by the way, Shall-E-Poppi Flavour N'Abania aka Flavour of Africa is fore...
    4 weeks ago
  • It's time... - but don't go away. Keep up with my other blogs. Read my books. Stay mathy. ✌
    1 year ago

About Me

Followers