Thursday, May 28, 2009

God's Algorithm

God's algorithm is a way to solve puzzles and games using the least possible number of moves, the idea being that an omniscient being would know an optimal step from any given configuration. God's algorithm is essentially the most efficient strategy for any given game, one that cannot be improved upon in any way. The solutions to the recently posted river crossing puzzles are an example.

Tic-tac-toe and Tower of Hanoi are all examples of games with simple God's algorithms. Most children figure out the ideal strategy themselves pretty quickly. One of the reasons children like these games is once they figure out the optimal strategy, no one has an edge on them--not adults, not their parents, not their teachers. They are 'experts' at the game. In fact, someone who knows the God's algorithm for a game could best God himself in a fair match. Even the eyes of God see no more to a game of tic-tac-toe than a capable player. This has lead to a wealth of fiction where supernatural beings are bested by humans in games of strategy and chance.

God's algorithms have been suggested for Rubick's cubes, chess, Irensei and Go. Theoretically any game with perfect information should have a God's algorithim solution. A game is said to have perfect information if all players know all moves that have taken place. For instance, on a chessboard there are no secrets. You and your opponent can see all of the pieces on the board at all times. By contrast, poker is a game with imperfect information since you can neither see your opponent's cards nor know which cards will come out the deck next.

8 comments:

  1. What if you want to make a God's algorithm for finding a God's algorithm of a certain process/game/function/whathaveyou?

    ReplyDelete
  2. Let me elaborate:

    Would a God's algorithm for finding a God's algorithm inherently contain the God's algorithm it is attempting to find? (assuming, of course, that there is a God's algorithm to find in the first place). Could there be a God's algorithm for finding God's algorithms that finds God's algorithms without inherently having the God's algorithm; i.e., have a process that doesn't overlap with the process it defines in finding the God's algorithm.

    ReplyDelete
  3. thats sooo next level. it really speaks to the next generation of AI which will be able to dynamically solve problems.

    also, skynet.

    ReplyDelete
  4. If we ever are able to develop a universal God's algorithm for finding God's algorithms, it won't quite be so "artificial" anymore. Maybe "transcendental intelligence" would be more appropriate. Or idunno

    ReplyDelete
  5. Oh, and obligatory "skynet is self-aware"

    ReplyDelete
  6. "transcendental intelligence" sounds about right...sure the algorithm could solve river crossing puzzles but it will never be able to play the violin like Fritz Kriesler or paint like René Magritte...unless thats one of its algorithms that it develops

    ReplyDelete
  7. I am awed by the ambition and scope of a project to create a universal algorithm for finding God's algorithms. You could just tell it the RULES of chess and it would instantly be the universe's best player...of course it would possess no edge over us at simple games (like tic tac toe) where everyone can deduce the God's algorithm and therefore all share the title of "universe's best player."

    ReplyDelete
  8. I still dont know the gods algorithm fo tic-tac-toe. i feel left out...

    and the new terminator sort of sucked, didnt it?

    But since you mentioned river crossing puzzles, check out this new xkcd:

    http://xkcd.com/589/

    ReplyDelete