There are many algorithms to solve scrambled Rubik's Cubes. 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. An algorithm that solves a cube in the minimum number of moves is known as God's algorithm. 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 face turns.