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.

My Other Blogs

  • Get her in the mooood - #DearYoungWife is discussing sex for married couples. 😋 Oya, bring your paper and biro... 💏 If your sex life is kinda rubbish, Don't give up. If at...
    1 day ago
  • Jack Ma, storyteller - Let him motivate you. Get UpNaira email updates. Order Big Girl and Big Boy. The ecommerce pioneer was back at Davos this month with more common sen...
    3 days ago
  • What do you see? - "Benjamin Banneker was obsessed with math and science. And his appetite for knowledge only grew as he taught himself astronomy, mathematics, engineering...
    1 week ago
  • Absoluut - Previous Viktor&Rolf post "...inspire to lose the walls, artistically speaking" Previous viktor and rolf poem "Abracadabra - It's the new collection..." N...
    1 week ago
  • Kanye touched the sky. The question is: did I ? - . Runaway, by Kanye West and company . My Beautiful Dark Twisted Fantasy . Everything Kanye . Lovebirds, by Tosin Otitoju . Everything T . ...
    1 week ago

About Me

Followers