SlideShare a Scribd company logo
1 of 52
Solving Rubik's cube using 
group theory 
Sheldon Joyner 
09/29/2009
Groups are used to measure symmetry 
(Escher, Circle limit I) 
Groups act upon sets of objects
Third thing to take away today: 
Rubik's cube is fun ... and group theory 
provides tools that help understand 
how it works!
Rotation of the pl ane... 
is a group transformation 
Even number of rotations: no effect ''0'' 
Odd number of rotations: same effect as1 
rotation ''1''
Group of rotations of plane through pi 
radians has group law: 
0+0=0 
1+0=1 
0+1=1 
1+1=0
Relation to usual addition law of integers: 
we say two integers are equivalent if their 
difference is even. 
Equivalent number of rotations produces 
same effect on the plane. 
We discard all information but the parity 
of the number, and indicate odd by 1 and 
even by 0.
Our group law says: 
Even + even = even 
Odd+ even = odd 
Even + odd = odd 
Odd + odd = even 
0+0=0 
1+0=1 
0+1=1 
1+1=0
This is the group Z/2Z 
Where did the 2 come from?
This is the group Z/2Z 
Where did the 2 come from? 
2 rotations get us back where we 
started
A more familiar example: 
what time is 4 hours after 11pm?
A more familiar example: 
what time is 4 hours after 11pm? 
11+4 = 3...
A more familiar example: 
rotations of the plane through 2 pi / 12 
12 = 0
(Clock in Jewish Quarter of Prague) 
Z/12Z: group law is 
determined by 12=0 (i.e. integers 
which differ by 12 are equivalent) 
Example: 
11+4=15 = 12+3 = 3
Generally, Z/NZ is the cyclic group of 
order N. 
N = number of elements, 
(also number of times 1 added to itself 
is 0). 
All elements are of the form 1+1+...+1 
for some number of additions. 1 is 
called a generator of the group.
Some of the groups Z/NZ act on 
Rubik's cube!
What is one way that Z/4Z acts on the 
cube?
0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7 
4 5 0 1 6 3 2 7
Permutation on 8 letters (symbols) 
Group comprises the actual 
permutations 
acting on some ordered list of objects
0 1 2 3 4 5 6 7 
4 5 0 1 6 3 2 7 
Three cycles: 0,4,6,2,0 
and 1,5,3,1 
and 7,7
0 1 2 3 4 5 6 7 
4 5 0 1 6 3 2 7 
(0 4)(0 6)(0 2) odd parity 
(1 5)(1 3) even parity 
(7 7) = e even parity
0 1 2 3 4 5 6 7 
4 5 0 1 6 3 2 7 
0 1 2 3 4 5 6 7
Group operation / multiplication 
is succession of permutations: 
0 1 2 3 4 5 6 7 
4 5 0 1 6 3 2 7 
2 5 6 3 0 7 1 4 
(0 4)(0 6)(0 2)(1 5)(1 3)*(0 6)(1 3 7 4 2)
Group S_{8} of permutations on 8 
letters (symbols). 
What is one way that S_{8} acts on the 
cube?
Notice that Z/4Z sits inside S_{8}! 
We say that Z/4Z is a subgroup of 
S_{8}.
Group: 
Set G with map m: G x G G: 
●associative: m(m(g,h),k) = m(g,m(h,k)) 
for any g,h,k in G; 
●admits an identity element e in G: 
m(g,e) = m(e,g) = g for any g in G 
●each element has an inverse: 
for any g in G, there exists g' in G so that 
m(g,g') = m(g',g)=e
Group action: 
Group G acts on set X if there is a map T 
of G x X into X with nice properties: 
●associativity: T(h,T(g,x)) = T(hg, x) 
for any g,h in G and x in X; 
●action of identity element e in G: 
T(e,x) = x for any x in X
Symmetry group G of the cube: 
R,L,U,D,F,B 
R',L',U',D',F',B' 
R'=RRR=R^3; L'=LLL=L^3; ...
Does order matter? 
Does RUR'U' = RR'UU' ?
RL'F^2B^2RL' U LR'B^2F^2LR' = D!!!
RL'F^2B^2RL' U LR'B^2F^2LR' = D!!! 
same as: 
(RL'F^2B^2RL') U (RL'F^2B^2RL')' 
= W U W'
W U W' is “Conjugation” of U by W: 
group theoretic change of coordinates. 
Real change is effected by “U” - other stuff 
just sets up the move.
Generators for G: 
UBLUL'U'B' 
R^2FLD'R'
Subgroups: 
Z/NZ may be realized on the cube for 
N=2,3,4,...,12 
These groups are subgroups of G
Z/1260Z 
is largest cyclic subgroup of G... 
and any move (group element) repeated 
enough times returns cube to starting 
position. 
(RU^2D'BD' has order 1260)
Subgroup R of all permutations of 
cubie positions: 
(S_{8} x S_{12})intersect A_{20}. 
R=G/P 
where P comprises moves which 
change orientation of cubies
P=P(corners) x P(edges) 
=[subgroup of (Z/3Z)^8] 
x [subgroup of (Z/2Z)^12] 
|P|=3^7 * 2^11
G same as R*P, so has order 
(1/2)12!8!(2^11)(3^7)
Symmetries of this position: 
(i.e. moves that leave it unchanged) 
all moves equivalent to “e”, identity.
Thought experiment: scramble cube in a 
very specific way 
R^2,L^2,U^2,D^2,F^2,B^2
Next allow also U,D: 
R^2,L^2,U,D,F^2,B^2
Next: R^2,L^2,U,D,F,B
Now scramble completely
This was the Thistlethwaite algorithm in 
reverse! 
G = G_{0} 
Step 1:From scrambled position, perform moves 
that bring the cube into a position where moves 
from G_{1} = <R^2,L^2,U,D,F,B> 
will solve it.
Step 2: 
Using only moves from G_{1}, get cube 
into a position so that moves from 
G_{2}=<R^2,L^2,U,D,F^2,B^2> 
suffice.
Step 3: 
Get to position so that action of the 
“squares group” 
G_{3}=<R^2,L^2,U^2,D^2,F^2,B^2> 
can solve the cube.
G=G_{0} 
G_{1}=<R^2,L^2,U,D,F,B> 
G_{2}=<R^2,L^2,U,D,F^2,B^2> 
G_{3}=<R^2,L^2,U^2,D^2,F^2,B^2> 
G_{4}={e}
Human version!
Computer improvements 
God's algorithm? 
Cayley length of the cube group?
END 
Thank you for coming!
Rcg

More Related Content

What's hot

Note on Character Theory-summer 2013
Note on Character Theory-summer 2013Note on Character Theory-summer 2013
Note on Character Theory-summer 2013
Fan Huang (Wright)
 
Introduction to Treewidth
Introduction to TreewidthIntroduction to Treewidth
Introduction to Treewidth
ASPAK2014
 
Solving the energy problem of helium final report
Solving the energy problem of helium final reportSolving the energy problem of helium final report
Solving the energy problem of helium final report
JamesMa54
 
WE4.L09 - MEAN-SHIFT AND HIERARCHICAL CLUSTERING FOR TEXTURED POLARIMETRIC SA...
WE4.L09 - MEAN-SHIFT AND HIERARCHICAL CLUSTERING FOR TEXTURED POLARIMETRIC SA...WE4.L09 - MEAN-SHIFT AND HIERARCHICAL CLUSTERING FOR TEXTURED POLARIMETRIC SA...
WE4.L09 - MEAN-SHIFT AND HIERARCHICAL CLUSTERING FOR TEXTURED POLARIMETRIC SA...
grssieee
 

What's hot (20)

Ece3075 a 8
Ece3075 a 8Ece3075 a 8
Ece3075 a 8
 
DISCRETE LOGARITHM PROBLEM
DISCRETE LOGARITHM PROBLEMDISCRETE LOGARITHM PROBLEM
DISCRETE LOGARITHM PROBLEM
 
Some Generalization of Eneström-Kakeya Theorem
Some Generalization of Eneström-Kakeya TheoremSome Generalization of Eneström-Kakeya Theorem
Some Generalization of Eneström-Kakeya Theorem
 
A Szemerédi-type theorem for subsets of the unit cube
A Szemerédi-type theorem for subsets of the unit cubeA Szemerédi-type theorem for subsets of the unit cube
A Szemerédi-type theorem for subsets of the unit cube
 
Legendre
LegendreLegendre
Legendre
 
Note on Character Theory-summer 2013
Note on Character Theory-summer 2013Note on Character Theory-summer 2013
Note on Character Theory-summer 2013
 
Research Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and ScienceResearch Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and Science
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 
Paraproducts with general dilations
Paraproducts with general dilationsParaproducts with general dilations
Paraproducts with general dilations
 
Bregman Voronoi Diagrams (SODA 2007)
Bregman Voronoi Diagrams (SODA 2007)  Bregman Voronoi Diagrams (SODA 2007)
Bregman Voronoi Diagrams (SODA 2007)
 
Introduction to Treewidth
Introduction to TreewidthIntroduction to Treewidth
Introduction to Treewidth
 
Some Examples of Scaling Sets
Some Examples of Scaling SetsSome Examples of Scaling Sets
Some Examples of Scaling Sets
 
COLLEGE ALGEBRA - MIDTERM
COLLEGE ALGEBRA - MIDTERMCOLLEGE ALGEBRA - MIDTERM
COLLEGE ALGEBRA - MIDTERM
 
On Certain Classess of Multivalent Functions
On Certain Classess of Multivalent Functions On Certain Classess of Multivalent Functions
On Certain Classess of Multivalent Functions
 
Prims & kruskal algorithms
Prims & kruskal algorithmsPrims & kruskal algorithms
Prims & kruskal algorithms
 
Solving the energy problem of helium final report
Solving the energy problem of helium final reportSolving the energy problem of helium final report
Solving the energy problem of helium final report
 
Solovay Kitaev theorem
Solovay Kitaev theoremSolovay Kitaev theorem
Solovay Kitaev theorem
 
Aggressive Sampling for Multi-class to Binary Reduction with Applications to ...
Aggressive Sampling for Multi-class to Binary Reduction with Applications to ...Aggressive Sampling for Multi-class to Binary Reduction with Applications to ...
Aggressive Sampling for Multi-class to Binary Reduction with Applications to ...
 
Density theorems for Euclidean point configurations
Density theorems for Euclidean point configurationsDensity theorems for Euclidean point configurations
Density theorems for Euclidean point configurations
 
WE4.L09 - MEAN-SHIFT AND HIERARCHICAL CLUSTERING FOR TEXTURED POLARIMETRIC SA...
WE4.L09 - MEAN-SHIFT AND HIERARCHICAL CLUSTERING FOR TEXTURED POLARIMETRIC SA...WE4.L09 - MEAN-SHIFT AND HIERARCHICAL CLUSTERING FOR TEXTURED POLARIMETRIC SA...
WE4.L09 - MEAN-SHIFT AND HIERARCHICAL CLUSTERING FOR TEXTURED POLARIMETRIC SA...
 

Similar to Rcg

Presentation-Alex-20150421
Presentation-Alex-20150421Presentation-Alex-20150421
Presentation-Alex-20150421
alexfang2014
 
Polya recurrence
Polya recurrencePolya recurrence
Polya recurrence
Brian Burns
 
10.11648.j.pamj.20170601.11
10.11648.j.pamj.20170601.1110.11648.j.pamj.20170601.11
10.11648.j.pamj.20170601.11
DAVID GIKUNJU
 
Brian Covello: Research in Mathematical Group Representation Theory and Symmetry
Brian Covello: Research in Mathematical Group Representation Theory and SymmetryBrian Covello: Research in Mathematical Group Representation Theory and Symmetry
Brian Covello: Research in Mathematical Group Representation Theory and Symmetry
Brian Covello
 

Similar to Rcg (20)

Presentation-Alex-20150421
Presentation-Alex-20150421Presentation-Alex-20150421
Presentation-Alex-20150421
 
Group Ring.ppt
Group Ring.pptGroup Ring.ppt
Group Ring.ppt
 
Math20001 dec 2015
Math20001 dec 2015Math20001 dec 2015
Math20001 dec 2015
 
Alabs1 a
Alabs1 aAlabs1 a
Alabs1 a
 
Polya recurrence
Polya recurrencePolya recurrence
Polya recurrence
 
10.11648.j.pamj.20170601.11
10.11648.j.pamj.20170601.1110.11648.j.pamj.20170601.11
10.11648.j.pamj.20170601.11
 
Isomorphism
IsomorphismIsomorphism
Isomorphism
 
Group theory notes
Group theory notesGroup theory notes
Group theory notes
 
452Paper
452Paper452Paper
452Paper
 
lecture16.ppt
lecture16.pptlecture16.ppt
lecture16.ppt
 
thesis
thesisthesis
thesis
 
Complex Numbers and Functions. Complex Differentiation
Complex Numbers and Functions. Complex DifferentiationComplex Numbers and Functions. Complex Differentiation
Complex Numbers and Functions. Complex Differentiation
 
new math seminar paper
new math seminar papernew math seminar paper
new math seminar paper
 
Brian Covello: Research in Mathematical Group Representation Theory and Symmetry
Brian Covello: Research in Mathematical Group Representation Theory and SymmetryBrian Covello: Research in Mathematical Group Representation Theory and Symmetry
Brian Covello: Research in Mathematical Group Representation Theory and Symmetry
 
Homework 2 sol
Homework 2 solHomework 2 sol
Homework 2 sol
 
CRYPTOGRAPHY AND NUMBER THEORY, he ha huli
CRYPTOGRAPHY AND NUMBER THEORY, he ha huliCRYPTOGRAPHY AND NUMBER THEORY, he ha huli
CRYPTOGRAPHY AND NUMBER THEORY, he ha huli
 
Hbam2011 09
Hbam2011 09Hbam2011 09
Hbam2011 09
 
Sets, functions and groups
Sets, functions and groupsSets, functions and groups
Sets, functions and groups
 
Mathematics and History of Complex Variables
Mathematics and History of Complex VariablesMathematics and History of Complex Variables
Mathematics and History of Complex Variables
 
Nokton theory-en
Nokton theory-enNokton theory-en
Nokton theory-en
 

Rcg

  • 1. Solving Rubik's cube using group theory Sheldon Joyner 09/29/2009
  • 2. Groups are used to measure symmetry (Escher, Circle limit I) Groups act upon sets of objects
  • 3. Third thing to take away today: Rubik's cube is fun ... and group theory provides tools that help understand how it works!
  • 4.
  • 5. Rotation of the pl ane... is a group transformation Even number of rotations: no effect ''0'' Odd number of rotations: same effect as1 rotation ''1''
  • 6. Group of rotations of plane through pi radians has group law: 0+0=0 1+0=1 0+1=1 1+1=0
  • 7. Relation to usual addition law of integers: we say two integers are equivalent if their difference is even. Equivalent number of rotations produces same effect on the plane. We discard all information but the parity of the number, and indicate odd by 1 and even by 0.
  • 8. Our group law says: Even + even = even Odd+ even = odd Even + odd = odd Odd + odd = even 0+0=0 1+0=1 0+1=1 1+1=0
  • 9. This is the group Z/2Z Where did the 2 come from?
  • 10. This is the group Z/2Z Where did the 2 come from? 2 rotations get us back where we started
  • 11. A more familiar example: what time is 4 hours after 11pm?
  • 12. A more familiar example: what time is 4 hours after 11pm? 11+4 = 3...
  • 13. A more familiar example: rotations of the plane through 2 pi / 12 12 = 0
  • 14. (Clock in Jewish Quarter of Prague) Z/12Z: group law is determined by 12=0 (i.e. integers which differ by 12 are equivalent) Example: 11+4=15 = 12+3 = 3
  • 15. Generally, Z/NZ is the cyclic group of order N. N = number of elements, (also number of times 1 added to itself is 0). All elements are of the form 1+1+...+1 for some number of additions. 1 is called a generator of the group.
  • 16. Some of the groups Z/NZ act on Rubik's cube!
  • 17. What is one way that Z/4Z acts on the cube?
  • 18. 0 1 2 3 4 5 6 7
  • 19. 0 1 2 3 4 5 6 7 4 5 0 1 6 3 2 7
  • 20. Permutation on 8 letters (symbols) Group comprises the actual permutations acting on some ordered list of objects
  • 21. 0 1 2 3 4 5 6 7 4 5 0 1 6 3 2 7 Three cycles: 0,4,6,2,0 and 1,5,3,1 and 7,7
  • 22. 0 1 2 3 4 5 6 7 4 5 0 1 6 3 2 7 (0 4)(0 6)(0 2) odd parity (1 5)(1 3) even parity (7 7) = e even parity
  • 23. 0 1 2 3 4 5 6 7 4 5 0 1 6 3 2 7 0 1 2 3 4 5 6 7
  • 24. Group operation / multiplication is succession of permutations: 0 1 2 3 4 5 6 7 4 5 0 1 6 3 2 7 2 5 6 3 0 7 1 4 (0 4)(0 6)(0 2)(1 5)(1 3)*(0 6)(1 3 7 4 2)
  • 25. Group S_{8} of permutations on 8 letters (symbols). What is one way that S_{8} acts on the cube?
  • 26. Notice that Z/4Z sits inside S_{8}! We say that Z/4Z is a subgroup of S_{8}.
  • 27. Group: Set G with map m: G x G G: ●associative: m(m(g,h),k) = m(g,m(h,k)) for any g,h,k in G; ●admits an identity element e in G: m(g,e) = m(e,g) = g for any g in G ●each element has an inverse: for any g in G, there exists g' in G so that m(g,g') = m(g',g)=e
  • 28. Group action: Group G acts on set X if there is a map T of G x X into X with nice properties: ●associativity: T(h,T(g,x)) = T(hg, x) for any g,h in G and x in X; ●action of identity element e in G: T(e,x) = x for any x in X
  • 29. Symmetry group G of the cube: R,L,U,D,F,B R',L',U',D',F',B' R'=RRR=R^3; L'=LLL=L^3; ...
  • 30. Does order matter? Does RUR'U' = RR'UU' ?
  • 32. RL'F^2B^2RL' U LR'B^2F^2LR' = D!!! same as: (RL'F^2B^2RL') U (RL'F^2B^2RL')' = W U W'
  • 33. W U W' is “Conjugation” of U by W: group theoretic change of coordinates. Real change is effected by “U” - other stuff just sets up the move.
  • 34. Generators for G: UBLUL'U'B' R^2FLD'R'
  • 35. Subgroups: Z/NZ may be realized on the cube for N=2,3,4,...,12 These groups are subgroups of G
  • 36. Z/1260Z is largest cyclic subgroup of G... and any move (group element) repeated enough times returns cube to starting position. (RU^2D'BD' has order 1260)
  • 37. Subgroup R of all permutations of cubie positions: (S_{8} x S_{12})intersect A_{20}. R=G/P where P comprises moves which change orientation of cubies
  • 38. P=P(corners) x P(edges) =[subgroup of (Z/3Z)^8] x [subgroup of (Z/2Z)^12] |P|=3^7 * 2^11
  • 39. G same as R*P, so has order (1/2)12!8!(2^11)(3^7)
  • 40. Symmetries of this position: (i.e. moves that leave it unchanged) all moves equivalent to “e”, identity.
  • 41. Thought experiment: scramble cube in a very specific way R^2,L^2,U^2,D^2,F^2,B^2
  • 42. Next allow also U,D: R^2,L^2,U,D,F^2,B^2
  • 45. This was the Thistlethwaite algorithm in reverse! G = G_{0} Step 1:From scrambled position, perform moves that bring the cube into a position where moves from G_{1} = <R^2,L^2,U,D,F,B> will solve it.
  • 46. Step 2: Using only moves from G_{1}, get cube into a position so that moves from G_{2}=<R^2,L^2,U,D,F^2,B^2> suffice.
  • 47. Step 3: Get to position so that action of the “squares group” G_{3}=<R^2,L^2,U^2,D^2,F^2,B^2> can solve the cube.
  • 48. G=G_{0} G_{1}=<R^2,L^2,U,D,F,B> G_{2}=<R^2,L^2,U,D,F^2,B^2> G_{3}=<R^2,L^2,U^2,D^2,F^2,B^2> G_{4}={e}
  • 50. Computer improvements God's algorithm? Cayley length of the cube group?
  • 51. END Thank you for coming!