News for hackers. Stuff that matters.
Re:"God's Number" is 20 - Rubik's cube has been "solved" by jacquesm on Monday August 09, 2010 @04:46AM (#1587390)
So, they've brute forced the problem and they now know that there are no positions that need more than 20 moves, but that does not get you closer to developing an algorithm giving you those 20 moves (edit: or however many that configuration takes).

Is there any progress on the algorithmic front?

Re:"God's Number" is 20 - Rubik's cube has been "solved" by randomwalker on Monday August 09, 2010 @05:07AM (#1587421)
I think you're confused -- they went the other way around, using the algorithm to find the optimal number.

Search techniques that can quickly solve any cube with a small (near-optimal) number of moves have been known for a while, mainly due to the work of Kociemba: http://www.jaapsch.net/puzzles/compcube.htm#kocal The techniques used are standard AI tree/graph search algorithms with lots of Rubik's cube-specific optimizations.

A few years ago, these methods became good enough to solve almost any cube quickly within 20 moves (which was conjectured to be God's number.) So the algorithm as well as a fast implementation already existed. Here's Kociemba's page http://kociemba.org/cube.htm and here's an iPhone app with a neat twist: you can photograph your physical cube to solve it http://www.wired.com/epicenter/2009/01/iphone-app-solv/

What these guys did was to make further optimizations and run it on a cluster to search through all possible position sets. As they say, they can solve about 4000 positions/s (in 20 moves or less) on a single machine.

Re:"God's Number" is 20 - Rubik's cube has been "solved" by jacquesm on Monday August 09, 2010 @05:18AM (#1587437)
I re-read the whole article once more, and I think I may be not as confused as you make it out to be.

They explicitly state that they did not generate the optimal number of moves for each of those inputs, only a number <= 20.

So, the question is, does a god-algorithm exist or does it not, and how will this help in finding such an algorithm?

Re:"God's Number" is 20 - Rubik's cube has been "solved" by randomwalker on Monday August 09, 2010 @05:27AM (#1587449)
Your original question was whether they have an algorithm to solve in <= 20 moves or not. I answered that.

Now you changed your question to whether they can solve each position optimally or not. Fine.

Why don't you re-read the article once again? They state that they can solve random positions optimally at the rate of 0.36/sec, in the same table where they say 3,900/sec for solving it in 20 moves or less.

Re:"God's Number" is 20 - Rubik's cube has been "solved" by jacquesm on Monday August 09, 2010 @05:31AM (#1587452)
I clarified my question because I think that it wasn't clearly stated, and I marked my edit to make sure that it was clear that I did so (unlike others here).

As for the re-reading, they don't solve the positions optimally, they brute force them so they're not in the possession of a god algorithm as far as I can see, they're using a highly optimized search strategy and that's a different beast.

A 'god' algorithm would take the faces as an input and would produce the minimal number of moves without a search component. So each configuration would be processed to give you the next without evaluation of 'wrong' moves or back-tracking.

That would be the 'god' algorithm. Anything else is (highly) optimized search.

Re:"God's Number" is 20 - Rubik's cube has been "solved" by by on Monday August 09, 2010 @06:59AM (#1587595)
They seem to have two different algorithms. One is given a position and it gives you the optimal solution, the fewest moves to solve that position. This is the God Algorithm. And a different, much faster, algorithm that given a position finds a solution with 20 moves or less - lets call it a Mortal Algorithm. (It does not always give you the optimal solution, with the fewest moves, just one with 20 moves or less.) My understanding is that they have just run the Mortal Algorithm against every position to prove that it can solve every position in 20 moves or less. Their God Algorithm is much too slow to run against every position.

According to Wikipedia a God Algorithm only has to be 'practical', find the optimal solution to a position with a sensible amount of processing. So it can use search and back-tracking. We could term your algorithm that works without search and back-tracking as a God God Algorithm because it is an optimal sequence of processor moves that find the optimal sequence of cube moves. A God God Algorithm would be awesome, but a much more difficult thing to create. I imagine it would run orders of magnitude faster than their God Algorithm.

(PS. I don't think we can entirely rule out the possibility that the God God Algorithm might contain some small amount of search or back-tracking.)

Re:"God's Number" is 20 - Rubik's cube has been "solved" by jacquesm on Monday August 09, 2010 @07:11AM (#1587615)
Ok, that sounds like a sensible summary of the positions.

If I understand you correctly a god algorithm is allowed to produce the required result using whatever strategy, including partial brute forcing/searching, backtracking in order to arrive at its solution as long as it does so in a reasonable time, so is not 'brute force' per se.

The reason why that didn't sit right with me (I accept your wikipedia quote as what construes a god algorithm) is that for me the 'god' algorithm would imply there is no better one, since with omniscience you don't need to make any false moves and I could not imagine a true god algorithm would be allowed to make false moves.

But I guess I was wrong there.

Thanks for digging that up!

Re:"God's Number" is 20 - Rubik's cube has been "solved" by sesqu on Monday August 09, 2010 @03:33PM (#1589081)
So you're looking for an algorithm that produces the optimal result heuristically, without making any false moves, instead of using the convenient lookup table that God has available to him? Sounds very NP to me.
Re:"God's Number" is 20 - Rubik's cube has been "solved" by eru on Monday August 09, 2010 @02:38PM (#1588904)
I can give you a God algorithm that consists of a huge lookup table.
Re:"God's Number" is 20 - Rubik's cube has been "solved" by Confusion on Monday August 09, 2010 @05:58AM (#1587495)
jacquesm said:

  They explicitly state that they did not generate the
  optimal number of moves
You say:

  They state that they can solve random positions optimally 
Those two statements contradict each other. However: AFAIK the existing algorithm, which they used, has not been proven to solve the problem optimally. It has now been shown that it can solve any position in at most 20 moves, but there's still the chance it solves a position in 20 moves that could optimally be solved in 19. Because the upper bound of 20 moves coincides with the proven lower bound of 20 moves, we know God's number. That does not mean that this must be God's algorithm.
Re:"God's Number" is 20 - Rubik's cube has been "solved" by DougBTX on Monday August 09, 2010 @07:32AM (#1587652)
"can" is conditional, so the two statements do not contradict. They can solve random positions optimally at 0.36 positions per second. But their goal was to lower the upper bound on God's number to 20, not to find all the optimal solutions. So what they did do, for all starting positions, was find good solutions, which they can solve at a rate of 3,900 positions per second.
Re:"God's Number" is 20 - Rubik's cube has been "solved" by Confusion on Monday August 09, 2010 @09:41AM (#1587911)
True, they indeed do not contradict each other. I hadn't yet heard that there actually was an algorithm that could find optimal solutions, but I admit it's been a long time since I was interested in the issue.

Because of the time difference between generation a solution and generating the optimal solution, I'm guessing the algorithm bruteforces the optimal solutions, which explains part of the confusion: I was thinking about an algorithm that generates the optimal solution directly.

Re:"God's Number" is 20 - Rubik's cube has been "solved" by tman on Monday August 09, 2010 @07:35PM (#1589894)
I have the feeling you're not a programmer. An algorithm that generates the optimal solution for a given configuration is trivial. Do a breadth-first search of the results of each move until you get to a solved cube. Ta da, you're done!

Now, if you want to do it fast, that's a different story.

Re:"God's Number" is 20 - Rubik's cube has been "solved" by Confusion on Tuesday August 10, 2010 @01:35AM (#1590566)
An algorithm that could find the optimal solution in practice. For instance, in 0.36s, as in the article. A theoretical algorithm that finds the optimal solution is trivial; you don't need to be a programmer to come up with that one.
Re:"God's Number" is 20 - Rubik's cube has been "solved" by mfukar on Monday August 09, 2010 @07:07AM (#1587609)
As far as I can tell, this is simply a (or more appropriately, The) re-discovery of the upper bound on Kociemba's algorithm. The authors apparently did not search for optimal solutions (which is not strictly necessary anyway since we have a lower bound), which you can assume it's equivalent to stopping Kociemba's algorithm when a solution of less than 21 steps is found, for all intents and purposes.
Re:"God's Number" is 20 - Rubik's cube has been "solved" by svat on Monday August 09, 2010 @01:18PM (#1588609)
Discovery, not re-discovery. The upper bound of 20 (that no position takes more than 20 moves) was not known earlier.
Re:"God's Number" is 20 - Rubik's cube has been "solved" by mfukar on Monday August 09, 2010 @02:04PM (#1588777)
True. I was referring to the cumulative effort since Reid proved that the upper bound of Kociemba's algorithm is 29 moves. I apologize for any misunderstandings, but I cannot edit that post now.
Re:"God's Number" is 20 - Rubik's cube has been "solved" by dan_netwalker on Monday August 09, 2010 @04:56AM (#1587408)
I'll make an educated guess... the advancement is knowing that if you make a machine that can bruteforce 6 sides x 2 turn directions, you can stop searching once a 20th movement is not enough to get the cube solved, and in the worst scenario, you will check ( 6 x 2 )^20 movements in total. I think that scores as test cases :P
Re:"God's Number" is 20 - Rubik's cube has been "solved" by jacquesm on Monday August 09, 2010 @04:59AM (#1587412)
Better make that machine of some pretty durable materials then!
Re:"God's Number" is 20 - Rubik's cube has been "solved" by mfukar on Monday August 09, 2010 @05:14AM (#1587429)
Don't you mean, 'machines'?