Optimal solutions for Rubik 's cube - Wikipedia Optimal solutions for Rubik 's cube A computer graphic of a scrambled Rubik 's Cube Optimal solutions for Rubik 's Cube refer to solutions that are the shortest. There are two common ways to measure the length of a solution. The first is to count the number of quarter turns. The second is to count the number of outer - layer twists, called `` face turns ''. A move to turn an outer layer two quarter ( 90 ° ) turns in the same direction would be counted as two moves in the quarter turn metric ( QTM ), but as one turn in the face metric ( FTM, or HTM `` Half Turn Metric '', or OBTM `` Outer Block Turn Metric '' ). The maximum number of face turns needed to solve any instance of the Rubik 's Cube is 20, and the maximum number of quarter turns is 26. These numbers are also the diameters of the corresponding Cayley graphs of the Rubik 's Cube group. In STM ( slice turn metric ) it 's unknown. There are many algorithms to solve scrambled Rubik 's Cubes. An algorithm that solves a cube in the minimum number of moves is known as God 's algorithm. Contents 1 Move notation 2 Lower bounds 3 Upper bounds 3.1 Thistlethwaite 's algorithm 3.2 Kociemba 's algorithm 3.3 Korf 's algorithm 3.4 Further improvements, and finding God 's Number 4 References 5 Further reading 6 External links Move notation Main article : Rubik 's Cube Move notation To denote a sequence of moves on the 3 × 3 × 3 Rubik 's Cube, this article uses `` Singmaster notation '', which was developed by David Singmaster. The letters L, R, F, B, U, and D indicate a clockwise quarter turn of the left, right, front, back, up, and down face respectively. Half turns are indicated by appending a 2. A counterclockwise quarter turn is indicated by appending a prime symbol ( ′ ). The letters M, S and E are used to denote the turning of a middle layer. M represents turning the layer between the R and L faces 1 quarter turn top to bottom. S represents turning the layer between the F and B faces 1 quarter turn clockwise, as seen from the front. E represents turning the layer between the U and D faces 1 quarter turn clockwise left to right. As with regular turns, a 2 signifies a double turn and a prime ( ' ) indicates a quarter turn anticlockwise. The letters X, Y and Z are used to signify cube rotations. X signifies the rotation of the cube forwards 90 degrees. Y signifies the rotation of the cube to the left 90 degrees. Z signifies the rotation of the cube clockwise 90 degrees. These cube rotations are used in algorithms to the algorithms smoother and faster. As with regular turns, a 2 signifies a half rotation and a prime ( ' ) indicates a quarter rotation in the opposite direction. Note that these letters are usually lowercase instead. Lower bounds It can be proven by counting arguments that there exist positions needing at least 18 moves to solve. To show this, first count the number of cube positions that exist in total, then count the number of positions achievable using at most 17 moves. It turns out that the latter number is smaller. This argument was not improved upon for many years. Also, it is not a constructive proof : it does not exhibit a concrete position that needs this many moves. It was conjectured that the so - called superflip would be a position that is very difficult. A Rubik 's Cube is in the superflip pattern when each corner piece is in the correct position, but each edge piece is incorrectly oriented. In 1992, a solution for the superflip with 20 face turns was found by Dik T. Winter, of which the minimality was shown in 1995 by Michael Reid, providing a new lower bound for the diameter of the cube group. Also in 1995, a solution for superflip in 24 quarter turns was found by Michael Reid, with its minimality proven by Jerry Bryan. In 1998, a new position requiring more than 24 quarter turns to solve was found. The position, which was called a ' superflip composed with four spot ' needs 26 quarter turns. Upper bounds The first upper bounds were based on the ' human ' algorithms. By combining the worst - case scenarios for each part of these algorithms, the typical upper bound was found to be around 100. Perhaps the first concrete value for an upper bound was the 277 moves mentioned by David Singmaster in early 1979. He simply counted the maximum number of moves required by his cube - solving algorithm. Later, Singmaster reported that Elwyn Berlekamp, John Conway, and Richard Guy had come up with a different algorithm that took at most 160 moves. Soon after, Conway 's Cambridge Cubists reported that the cube could be restored in at most 94 moves. Thistlethwaite 's algorithm The breakthrough, known as `` descent through nested sub-groups '' was found by Morwen Thistlethwaite ; details of Thistlethwaite 's algorithm were published in Scientific American in 1981 by Douglas Hofstadter. The approaches to the cube that led to algorithms with very few moves are based on group theory and on extensive computer searches. Thistlethwaite 's idea was to divide the problem into subproblems. Where algorithms up to that point divided the problem by looking at the parts of the cube that should remain fixed, he divided it by restricting the type of moves that could be executed. In particular he divided the cube group into the following chain of subgroups : G 0 = ⟨ L, R, F, B, U, D ⟩ ( displaystyle G_ ( 0 ) = langle L, R, F, B, U, D \rangle ) G 1 = ⟨ L, R, F, B, U 2, D 2 ⟩ ( displaystyle G_ ( 1 ) = langle L, R, F, B, U ^ ( 2 ), D ^ ( 2 ) \rangle ) G 2 = ⟨ L, R, F 2, B 2, U 2, D 2 ⟩ ( displaystyle G_ ( 2 ) = langle L, R, F ^ ( 2 ), B ^ ( 2 ), U ^ ( 2 ), D ^ ( 2 ) \rangle ) G 3 = ⟨ L 2, R 2, F 2, B 2, U 2, D 2 ⟩ ( displaystyle G_ ( 3 ) = langle L ^ ( 2 ), R ^ ( 2 ), F ^ ( 2 ), B ^ ( 2 ), U ^ ( 2 ), D ^ ( 2 ) \rangle ) G 4 = ( 1 ) ( displaystyle G_ ( 4 ) = ( 1 ) ) Next he prepared tables for each of the right coset spaces G i + 1 ∖ G i ( displaystyle G_ ( i + 1 ) setminus G_ ( i ) ). For each element he found a sequence of moves that took it to the next smaller group. After these preparations he worked as follows. A random cube is in the general cube group G 0 ( displaystyle G_ ( 0 ) ). Next he found this element in the right coset space G 1 ∖ G 0 ( displaystyle G_ ( 1 ) setminus G_ ( 0 ) ). He applied the corresponding process to the cube. This took it to a cube in G 1 ( displaystyle G_ ( 1 ) ). Next he looked up a process that takes the cube to G 2 ( displaystyle G_ ( 2 ) ), next to G 3 ( displaystyle G_ ( 3 ) ) and finally to G 4 ( displaystyle G_ ( 4 ) ). Intermediate state of the Rubik 's Cube in Kociemba 's algorithm. Any state from G will have the `` + '' and `` -- '' symbols as shown. Although the whole cube group G 0 ( displaystyle G_ ( 0 ) ) is very large ( ~ 4.3 × 10 ), the right coset spaces G 1 ∖ G 0, G 2 ∖ G 1, G 3 ∖ G 2 ( displaystyle G_ ( 1 ) setminus G_ ( 0 ), G_ ( 2 ) setminus G_ ( 1 ), G_ ( 3 ) setminus G_ ( 2 ) ) and G 3 ( displaystyle G_ ( 3 ) ) are much smaller. The coset space G 2 ∖ G 1 ( displaystyle G_ ( 2 ) setminus G_ ( 1 ) ) is the largest and contains only 1082565 elements. The number of moves required by this algorithm is the sum of the largest process in each step. Initially, Thistlethwaite showed that any configuration could be solved in at most 85 moves. In January 1980 he improved his strategy to yield a maximum of 80 moves. Later that same year, he reduced the number to 63, and then again to 52. By exhaustively searching the coset spaces it was later found that the best possible number of moves for each stage was 7, 10, 13, and 15 giving a total of 45 moves at most. Kociemba 's algorithm Thistlethwaite 's algorithm was improved by Herbert Kociemba in 1992. He reduced the number of intermediate groups to only two : G 0 = ⟨ U, D, L, R, F, B ⟩ ( displaystyle G_ ( 0 ) = langle U, D, L, R, F, B \rangle ) G 1 = ⟨ U, D, L 2, R 2, F 2, B 2 ⟩ ( displaystyle G_ ( 1 ) = langle U, D, L ^ ( 2 ), R ^ ( 2 ), F ^ ( 2 ), B ^ ( 2 ) \rangle ) G 2 = ( 1 ) ( displaystyle G_ ( 2 ) = ( 1 ) ) As with Thistlethwaite 's Algorithm, he would search through the right coset space G 1 ∖ G 0 ( displaystyle G_ ( 1 ) setminus G_ ( 0 ) ) to take the cube to group G 1 ( displaystyle G_ ( 1 ) ). Next he searched the optimal solution for group G 1 ( displaystyle G_ ( 1 ) ). The searches in G 1 ∖ G 0 ( displaystyle G_ ( 1 ) setminus G_ ( 0 ) ) and G 1 ( displaystyle G_ ( 1 ) ) were both done with a method equivalent to IDA *. The search in G 1 ∖ G 0 ( displaystyle G_ ( 1 ) setminus G_ ( 0 ) ) needs at most 12 moves and the search in G 1 ( displaystyle G_ ( 1 ) ) at most 18 moves, as Michael Reid showed in 1995. By also generating suboptimal solutions that take the cube to group G 1 ( displaystyle G_ ( 1 ) ) and looking for short solutions in G 1 ( displaystyle G_ ( 1 ) ), much shorter overall solutions are usually obtained. Using this algorithm solutions are typically found of fewer than 21 moves, though there is no proof that it will always do so. In 1995 Michael Reid proved that using these two groups every position can be solved in at most 29 face turns, or in 42 quarter turns. This result was improved by Silviu Radu in 2005 to 40. Korf 's algorithm Using these group solutions combined with computer searches will generally quickly give very short solutions. But these solutions do not always come with a guarantee of their minimality. To search specifically for minimal solutions a new approach was needed. In 1997 Richard Korf announced an algorithm with which he had optimally solved random instances of the cube. Of the ten random cubes he did, none required more than 18 face turns. The method he used is called IDA * and is described in his paper `` Finding Optimal Solutions to Rubik 's Cube Using Pattern Databases ''. Korf describes this method as follows IDA * is a depth - first search that looks for increasingly longer solutions in a series of iterations, using a lower - bound heuristic to prune branches once a lower bound on their length exceeds the current iterations bound. It works roughly as follows. First he identified a number of subproblems that are small enough to be solved optimally. He used : The cube restricted to only the corners, not looking at the edges The cube restricted to only 6 edges, not looking at the corners nor at the other edges. The cube restricted to the other 6 edges. Clearly the number of moves required to solve any of these subproblems is a lower bound for the number of moves needed to solve the entire cube. Given a random cube C, it is solved as iterative deepening. First all cubes are generated that are the result of applying 1 move to them. That is C * F, C * U,... Next, from this list, all cubes are generated that are the result of applying two moves. Then three moves and so on. If at any point a cube is found that needs too many moves based on the upper bounds to still be optimal it can be eliminated from the list. Although this algorithm will always find optimal solutions, there is no worst case analysis. It is not known how many moves this algorithm might need. An implementation of this algorithm can be found here. Further improvements, and finding God 's number In 2006, Silviu Radu further improved his methods to prove that every position can be solved in at most 27 face turns or 35 quarter turns. Daniel Kunkle and Gene Cooperman in 2007 used a supercomputer to show that all unsolved cubes can be solved in no more than 26 moves ( in face - turn metric ). Instead of attempting to solve each of the billions of variations explicitly, the computer was programmed to bring the cube to one of 15,752 states, each of which could be solved within a few extra moves. All were proved solvable in 29 moves, with most solvable in 26. Those that could not initially be solved in 26 moves were then solved explicitly, and shown that they too could be solved in 26 moves. Tomas Rokicki reported in a 2008 computational proof that all unsolved cubes could be solved in 25 moves or fewer. This was later reduced to 23 moves. In August 2008 Rokicki announced that he had a proof for 22 moves. Finally, in 2010, Tomas Rokicki, Herbert Kociemba, Morley Davidson, and John Dethridge gave the final computer - assisted proof that all cube positions could be solved with a maximum of 20 face turns. In 2009, Tomas Rokicki proved that 29 moves in the quarter - turn metric is enough to solve any scrambled cube. And in 2014, Tomas Rokicki and Morley Davidson proved that the maximum number of quarter - turns needed to solve the cube is 26. The face - turn and quarter - turn metrics differ in the nature of their antipodes. An antipode is a scrambled cube that is maximally far from solved, one that requires the maximum number of moves to solve. In the half - turn metric with a maximum number of 20, there are hundreds of millions of such positions. In the quarter - turn metric, only a single position ( and its two rotations ) is known that requires the maximum of 26 moves. Despite significant effort, no additional quarter - turn distance - 26 positions have been found. Even at distance 25, only two positions ( and their rotations ) are known to exist. At distance 24, perhaps 150,000 positions exist. References Jump up ^ `` World Cube Association ''. www.worldcubeassociation.org. Retrieved 2017 - 02 - 20. ^ Jump up to : `` God 's Number is 20 ''. cube20.org. Retrieved 2017 - 05 - 23. ^ Jump up to : `` God 's Number is 26 in the Quarter Turn Metric ''. cube20.org. Retrieved 2017 - 02 - 20. Jump up ^ Joyner, David ( 2002 ). Adventures in group theory : Rubik 's Cube, Merlin 's machine, and Other Mathematical Toys. Baltimore : Johns Hopkins University Press. p. 7. ISBN 0 - 8018 - 6947 - 1. Jump up ^ `` Rubik 's Cube Notation ''. Ruwix. Retrieved 2017 - 03 - 19. ^ Jump up to : Michael Reid 's Rubik 's Cube page M - symmetric positions Jump up ^ Posted to Cube lovers on 2 Aug 1998 ^ Jump up to : Rik van Grol ( November 2010 ). `` The Quest For God 's Number ''. Math Horizons. Archived from the original on 2014 - 11 - 09. Retrieved 2013 - 07 - 26. Jump up ^ Singmaster 1981, p. 16. Jump up ^ Singmaster 1981, p. 26. Jump up ^ Singmaster 1981, p. 30. Jump up ^ Herbert Kociemba. `` The Subgroup H and its cosets ''. Retrieved 2013 - 07 - 28. Jump up ^ Progressive Improvements in Solving Algorithms Jump up ^ Richard Korf ( 1997 ). `` Finding Optimal Solutions to Rubik 's Cube Using Pattern Databases '' ( PDF ). Jump up ^ Michael Reid 's Optimal Solver for Rubik 's Cube ( requires a compiler such as gcc ) Jump up ^ Rubik can be solved in 27f Jump up ^ Press Release on Proof that 26 Face Turns Suffice Jump up ^ Kunkle, D. ; Cooperman, C. ( 2007 ). `` Twenty - Six Moves Suffice for Rubik 's Cube '' ( PDF ). Proceedings of the International Symposium on Symbolic and Algebraic Computation ( ISSAC ' 07 ). ACM Press. Jump up ^ Tom Rokicki. `` Twenty - Five Moves Suffice for Rubik 's Cube ''. arXiv : 0803.3435. Jump up ^ Twenty - Three Moves Suffice -- Domain of the Cube Forum Jump up ^ twenty - two moves suffice Jump up ^ Tom Rokicki. `` Twenty - Nine QTM Moves Suffice ''. Retrieved 2010 - 02 - 19. Further reading Singmaster, David ( 1981 ). Notes on Rubik 's Magic Cube. Enslow Publishers. External links Wikibooks has a book on the topic of : How to solve the Rubik 's Cube How to solve the Rubik 's Cube, a Wikibooks article that gives an overview over several algorithms that are simple enough to be memorizable by humans. However, such algorithms will usually not give an optimal solution which only uses the minimum possible number of moves. Herbert Kociemba 's Two - Phase - Solver and Optimal Solver for Rubik 's Cube Ryan Heise 's Human version of the Thistlethwaite algorithm A New Upper Bound on Rubik 's Cube Group, Silviu Radu Online Solver using modified Kociemba 's Algorithm to balance optimization vs. compute cycles Rubik 's Cube Puzzle inventors Ernő Rubik Uwe Mèffert Tony Fisher Panagiotis Verdes Oskar van Deventer Rubik 's Cubes Overview 2 × 2 × 2 ( Pocket Cube ) 3 × 3 × 3 ( Rubik 's Cube ) 4 × 4 × 4 ( Rubik 's Revenge ) 5 × 5 × 5 ( Professor 's Cube ) 6 × 6 × 6 ( V - Cube 6 ) 7 × 7 × 7 ( V - Cube 7 ) 8 × 8 × 8 ( V - Cube 8 ) Cubic variations Helicopter Cube Skewb Square 1 Sudoku Cube Nine - Colour Cube Void Cube Non-cubic variations Tetrahedron Pyraminx Pyraminx Duo Pyramorphix BrainTwist Octahedron Skewb Diamond Dodecahedron Megaminx ( Variations ) Pyraminx Crystal Skewb Ultimate Icosahedron Impossiball Dogic Great dodecahedron Alexander 's Star Truncated icosahedron Tuttminx Cuboid Floppy Cube ( 1x3x3 ) Rubik 's Domino ( 2x3x3 ) Virtual variations ( > 3D ) MagicCube4D MagicCube5D MagicCube7D Magic 120 - cell Derivatives Missing Link Rubik 's 360 Rubik 's Clock Rubik 's Magic Master Edition Rubik 's Revolution Rubik 's Snake Rubik 's Triamid Rubik 's Cheese Renowned solvers Erik Akkersdijk Yu Nakajima Bob Burton, Jr. Jessica Fridrich Chris Hardwick Rowe Hessler Leyan Lo Shotaro Makisumi Toby Mao Tyson Mao Frank Morris Lars Petrus Gilles Roux David Singmaster Ron van Bruchem Eric Limeback Anthony Michael Brooks Mats Valk Feliks Zemdegs Collin Burns Lucas Etter Solutions Speedsolving Speedcubing Methods Layer by Layer CFOP Method Roux Method Corners First Optimal Mathematics God 's algorithm Superflip Thistlethwaite 's algorithm Rubik 's Cube group Official organization World Cube Association Related articles Rubik 's Cube in popular culture The Simple Solution to Rubik 's Cube 1982 World Rubik 's Cube Championship Retrieved from `` https://en.wikipedia.org/w/index.php?title=Optimal_solutions_for_Rubik%27s_Cube&oldid=822423975 '' Categories : Rubik 's Cube Computer - assisted proofs Hidden categories : Wikipedia articles in need of updating from October 2016 All Wikipedia articles in need of updating Talk Contents About Wikipedia فارسی Русский Українська Edit links This page was last edited on 26 January 2018, at 08 : 42. Text is available under the Creative Commons Attribution - ShareAlike License ; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia ® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization. About Wikipedia

Question: max number of moves to solve rubik's cube
Answer: maximum number of face turns needed to solve any instance of the Rubik's Cube is 20,[2] and the maximum number of quarter turns is 26