Subscription

Books
Shop
About

Tuesday, April 12, 2011

Next topic

I will resume posting regularly soon. Not sure what to write about next. Some thoughts are:
solving Mahjonng solitaire (heuristics example)
solving Minesweeper (counting logic)

Alternatively,
relationship between birth rate and the age distribution e.g. percentage of voter age
basic time-series analysis (web analytics and commodity price charts for example)

Saturday, March 12, 2011

Break

Sorry I haven't blogged in a while.
Did you try the matrix questions?

I need to fix some typos but the answers are here now.

10 questions:
C A C A D || C C C D C

20 questions:
B C D C A || B C D B C || C C A D C || A C D B C

Tuesday, March 1, 2011

Matrices - Test yourself

This was one of the (easy) questions I gave in a first-year undergraduate matrix exam last year:

If you can answer that, try more test questions on matrices here.

In other news, Inception (a dream within a dream) won four at the Oscars and The Social Network (the technology startup film) won two.

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

  • Archived ๐Ÿ“š - I was trying to find the name of a book from about twenty years ago, could not remember the author name(s) at all but had some sense that the title was in ...
    1 day ago
  • 'Tis the season #Bloggiversary - 15 years since my first NewsBuka post and 4 years since going wild with the animal-themed playlists. Happy blog anniversary. NEWSBUKA for all the burn...
    5 days ago
  • the exotic - Inside the closed world of Japan's geisha, which some fear is disappearing https://t.co/47InDiJEJ7 via @ABCaustralia — Ben John (@benjohn65) August 8, 202...
    2 weeks ago
  • One dream ends - I asked AI to make a flag. (Second attempt) *Twenty years ago*, I was living in California, missing Nigeria, and so I created this blog, UpNaira, my s...
    1 year ago
  • It's time... - but don't go away. Keep up with my other blogs. Read my books. Stay mathy. ✌
    3 years ago

About Me

Followers