THE 15 PUZZLE AND TOPSPIN. Elizabeth Senac

Similar documents
Topspin: Oval-Track Puzzle, Taking Apart The Topspin One Tile At A Time

Permutations. = f 1 f = I A

Part I: The Swap Puzzle

Know how to represent permutations in the two rowed notation, and how to multiply permutations using this notation.

Permutation Groups. Definition and Notation

Lecture 2.3: Symmetric and alternating groups

Slicing a Puzzle and Finding the Hidden Pieces

REU 2006 Discrete Math Lecture 3

Fifteen puzzle. Sasha Patotski. Cornell University November 16, 2015

Ma/CS 6a Class 16: Permutations

Math 1111 Math Exam Study Guide

THE 15-PUZZLE (AND RUBIK S CUBE)

The Sign of a Permutation Matt Baker

Permutation Groups. Every permutation can be written as a product of disjoint cycles. This factorization is unique up to the order of the factors.

CSE 312 Midterm Exam May 7, 2014

arxiv: v1 [cs.cc] 21 Jun 2017

X = {1, 2,...,n} n 1f 2f 3f... nf

Grade 7/8 Math Circles. Visual Group Theory

Solving the 4 x 4 Cube

Lecture 3 Presentations and more Great Groups

Permutation group and determinants. (Dated: September 19, 2018)

Solution Algorithm to the Sam Loyd (n 2 1) Puzzle

Determinants, Part 1

Some combinatorial applications of Sage, an open source program

MATH 433 Applied Algebra Lecture 12: Sign of a permutation (continued). Abstract groups.

LECTURE 8: DETERMINANTS AND PERMUTATIONS

Solving Triangular Peg Solitaire

((( ))) CS 19: Discrete Mathematics. Please feel free to ask questions! Getting into the mood. Pancakes With A Problem!

17. Symmetries. Thus, the example above corresponds to the matrix: We shall now look at how permutations relate to trees.

Exploiting the disjoint cycle decomposition in genome rearrangements

All Levels. Solving the Rubik s Cube

The Futurama Theorem.

Grade 7/8 Math Circles. Visual Group Theory

The Place of Group Theory in Decision-Making in Organizational Management A case of 16- Puzzle

Solving Megaminx puzzle With Group Theory 2018 S. Student Gerald Jiarong Xu Deerfield Academy 7 Boyden lane Deerfield MA Phone: (917) E

Some t-homogeneous sets of permutations

Heuristic Search with Pre-Computed Databases

Rotational Puzzles on Graphs

The Math Behind Futurama: The Prisoner of Benda

PUZZLES ON GRAPHS: THE TOWERS OF HANOI, THE SPIN-OUT PUZZLE, AND THE COMBINATION PUZZLE

COUNTING THE NUMBER OF PERMUTATIONS IN RUBIK S CUBE

5 Symmetric and alternating groups

God s Number and the Robotic Turn Metric

I.M.O. Winter Training Camp 2008: Invariants and Monovariants

Section II.9. Orbits, Cycles, and the Alternating Groups

Convexity Invariants of the Hoop Closure on Permutations

LAMC Beginners Circle April 27, Oleg Gleizer. Warm-up

Symmetry Groups of Platonic Solids

Expansion/Analysis of a Card Trick Comprised of Transformations in 2-Dimensional Matrices Aaron Kazam Sherbany, Clarkstown North High School, NY

Equivalence Classes of Permutations Modulo Replacements Between 123 and Two-Integer Patterns

THE SIGN OF A PERMUTATION

COMP 2804 solutions Assignment 4

Weighted Polya Theorem. Solitaire

Solitaire Games. MATH 171 Freshman Seminar for Mathematics Majors. J. Robert Buchanan. Department of Mathematics. Fall 2010

1111: Linear Algebra I

A Study of Combinatorial Games. David Howard Carnegie Mellon University Math Department

A NEW COMPUTATION OF THE CODIMENSION SEQUENCE OF THE GRASSMANN ALGEBRA

On Hultman Numbers. 1 Introduction

Megaminx.

EXPLAINING THE SHAPE OF RSK

CRACKING THE 15 PUZZLE - PART 4: TYING EVERYTHING TOGETHER BEGINNERS 02/21/2016

Chapter 1. Probability

Analysis on the Properties of a Permutation Group

Constructions of Coverings of the Integers: Exploring an Erdős Problem

A Mathematical Approach To Solving Rubik's Cube by Raymond Tran, UBC Math308 Fall 2005

Chapter 1. The alternating groups. 1.1 Introduction. 1.2 Permutations

Solving the Rubik s Cube

x 8 (mod 15) x 8 3 (mod 5) eli 2 2y 6 (mod 10) y 3 (mod 5) 6x 9 (mod 11) y 3 (mod 11) So y = 3z + 3u + 3w (mod 990) z = (990/9) (990/9) 1

THE ERDŐS-KO-RADO THEOREM FOR INTERSECTING FAMILIES OF PERMUTATIONS

1 Trigonometric Identities

Permutation Editing and Matching via Embeddings

arxiv: v1 [math.co] 30 Nov 2017

MATH302: Mathematics & Computing Permutation Puzzles: A Mathematical Perspective

A STUDY OF EULERIAN NUMBERS FOR PERMUTATIONS IN THE ALTERNATING GROUP

CS1800: More Counting. Professor Kevin Gold

CIS 2033 Lecture 6, Spring 2017

Theory of Probability - Brett Bernstein

Higher Mathematical Concepts Using the Rubik's Cube

Lecture 1, CS 2050, Intro Discrete Math for Computer Science

SMT 2014 Advanced Topics Test Solutions February 15, 2014

An Intuitive Approach to Groups

Pin-Permutations and Structure in Permutation Classes

Power System Dynamics and Control Prof. A. M. Kulkarni Department of Electrical Engineering Indian institute of Technology, Bombay

Solutions for the Practice Final

CSCI3390-Lecture 8: Undecidability of a special case of the tiling problem

Vocabulary Cards and Word Walls. Ideas for everyday use of a Word Wall to develop vocabulary knowledge and fluency by the students

Olympiad Combinatorics. Pranav A. Sriram

Combinatorial Proofs

Solving the Rubik s Cube Optimally is NP-complete

Cryptography. Module in Autumn Term 2016 University of Birmingham. Lecturers: Mark D. Ryan and David Galindo

Staircase Rook Polynomials and Cayley s Game of Mousetrap

Some results on Su Doku

Faculty Forum You Cannot Conceive The Many Without The One -Plato-

The mathematics of the flip and horseshoe shuffles

Generating indecomposable permutations

Building Concepts: Visualizing Quadratic Expressions

Purpose of Section To introduce some basic tools of counting, such as the multiplication principle, permutations and combinations.

Introduction to Combinatorial Mathematics

Building a Heuristic for Greedy Search

Math 1111 Math Exam Study Guide

Transcription:

THE 15 PUZZLE AND TOPSPIN Elizabeth Senac

4x4 box with 15 numbers Goal is to rearrange the numbers from a random starting arrangement into correct numerical order. Can only slide one block at a time.

Definition: The Symmetric Group on n letters is a group with n! elements, where the binary operation is the composition of maps. SS nn MODERN ALGEBRA

Definition: The Alternating Group on n letters is a subgroup of the symmetric group with n!/2 elements. AA nn MODERN ALGEBRA

permutation Array notation Start from Sent to MODERN ALGEBRA

Array notation Cycle notation MODERN ALGEBRA

8 spots Space starts and ends in the 8 th block 7 pieces can move 2 X 4 PUZZLE

1 move switches 2 spots (8 4) Transposition = cycle of length 2 2 X 4 PUZZLE

If we start with the space in the 8 th spot (bottom right hand corner), after how many moves can it return to the 8 th spot? Start After 1 move After 2 moves An even number of moves! After 3 moves After 4 moves 2 X 4 PUZZLE After 5 moves After 6 moves

Since each move is 1 transposition, and we are only dealing with even numbers of transpositions, we are in AA 7 because 7 pieces are able to move. AA 7 is the group of all even permutations of the symmetric group SS 7. 2 X 4 PUZZLE

We can use the fact that we can only have an even number of transpositions (moves) to tell if a puzzle is solvable before we try to solve it. SOLVABLE?

Any cycle can be decomposed into transpositions. We have 2 transpositions which is an even number, so this puzzle is solvable. (3 4 7) = (3 4)(4 7) SOLVABLE? Note: A cycle can be decomposed different ways, but if its decomposition has an even number of transpositions, it will always have an even number of transpositions. Same for odd.

Thm: For n 3, consecutive 3-cycles of the form (i i+1 i+2) where 1 i n-2, generate AA nn. ALL OF AA 7? For AA 7 this means if we can get from the identity to (1 2 3) (2 3 4) (3 4 5) (4 5 6) (5 6 7) We can get to everything in AA 7.

(1 2 3)? Permutations are composed right to left.

Yes, we can get to (2 3 4), (3 4 5), (4 5 6), and (5 6 7) from the identity board. Therefore, we know we can get all of AA 7. WHAT ABOUT THE REST?

Now that we ve proved our 2 x 4 board is solvable for all even transpositions, how does that help us with our 4 x 4 board? Think of the 4 x 4 board as 3 overlapping 2 x 4 boards. 4 X 4

A similar argument holds for why we can only have even permutations. It still takes an even number of moves to return the space to the 16 th spot. identity Now we have to show we can generate all the 3- cycles in AA 15. 4 X 4

Purple: For (1 2 3), (2 3 4), (3 4 5), (4 5 6), and (5 6 7), just add (8 12)(12 16) to the beginning and (16 12)(12 8) to the end and do the exact same permutations as before. Red: For (6 7 8), (7 8 9), (8 9 10) and (9 10 11), add (12 16) to the beginning and (16 12) to the end and then treat the permutations the same except replace 2 with 6, 3 with 7, 4 with 8, and so on. Aqua: For (10 11 12), (11 12 13), (12 13 14), and (13 14 15), treat the permutations the same, but replace 2 with 10, 3 with 11, etc. ALL OF AA 15?

(3 4 7)(5 10 9)(11 12 15) = (3 4)(4 7)(5 10)(10 9)(11 12)(12 15) 6 = even # of transpositions (moves), so yes solvable. (2 3 4 7)(5 10 9)(11 12 15) Starting from the identity and then scrambling will always yield a solvable puzzle. =(2 3)(3 4)(4 7)(5 10)(10 9)(11 12)(12 15) 7 = odd # of transpositions, so not solvable. SOLVABLE?

Consists of 20 pieces numbered 1-20 4 pieces in the turnstile at a time Unscramble the numbers back into numerical order by shifting the numbers around the track and flipping the turnstile

s = shift one position clockwise (does not change order of pieces) ss 1 = shift one position counterclockwise (same) f = flip the turnstile (produces the permutation (a d)(b c))

HOW TO SOLVE Start with a scrambled puzzle

Solving 1-16 is not hard, but I came up with algorithms to solve in numerical order x = # of spots away from last solved piece Place last solved piece one spot left of the turnstile For x = 1: solved For x = 2: use the permutation ffffffff 1 ff For x = 3: use the permutation ffffffff 1 (let this = δ) For x = 4: use the permutation ff Let ρ = ffffffff For 1 = x mod 3: use the permutation (δ)(ρ xx 4 3 )(ff)(ss 1 xx 4 ) For 2 = x mod 3: use the permutation (δ)(fs) ρ xx 5 3 ff ss 1 xx 4 For 0 = x mod 3: use the permutation (δ)(ss) ρ xx 6 3 ff ss SOLVE 1-16 1 xx 4

The last 4 digits (17, 18, 19, and 20) are much more difficult to place in order because rearranging them requires moving previously solved pieces. I found a permutation α = sffss 1 ffffffss 1 ff which moves the piece sitting in the leftmost spot of the turnstile 4 spots clockwise (to the right) without changing the order of any other pieces. (1 5 4 3 2) If you combine this with another permutation β = ss 13 and use the new permutation γ = αβαβαβαβα, then you can move a piece 20 spots clockwise (skipping the original position since it is mobile) without changing the order of any other pieces. Thus, you can move any piece 1 spot to the right. This is important because now we can generate all of SS 20. SOLVE 17-20

Begin: 18 is between the 16 and the 17 α 18 moved 4 spots to the right β All pieces shift 3 to the left Moves the 18 one spot to the right. Finally, after a total of αβαβαβαβα, the 18 is after the 17 and all other pieces are in the same beginning order.

Now that we know we can get any piece to move 1 spot to the right (20 spots) with a turnstile of size 4, will it work for any other sizes? Any puzzle with turnstile of size 4 and total pieces y > 5 can be solved by our permutations α and β if 0 = y mod 4 or 2 = y mod 4 because we can move a piece an odd number of spots away and eventually will hit every position. Ex. 2 = 22 mod 4 After 1 permutation γ, the desired piece moves 1 spot to the left. This is enough to generate all of SS nn. DOES IT ONLY WORK FOR 20 PIECES?

Any puzzle with turnstile of size 4 and total pieces y > 5 cannot be solved by our permutations α and β if 1 = y mod 4 or 3 = y mod 4. I am not sure if this means they can never be solved with a turnstile of size 4, but they cannot be solved by using α and β. Ex. 1 = 9 mod 4 After 1 permutation α, if the puzzle started in the identity position, the 1 moves to the right between the 5 and the 6 while all other pieces remain the same. From here if we were to perform the permutation αβ, the 1 would return between the 9 and 2 while all other pieces remain the same. Thus, we return to the identity and we cannot get a piece to move 1 spot in either direction. DOES IT ONLY WORK FOR 20 PIECES?

Joseph A. Gallian Contemporary Abstract Algebra Fifth Edition 2002: Houghton Mifflin Company Thomas W. Judson Abstract Algebra Theory and Applications 2014 Aaron Archer A Modern Treatment of the 15 Puzzle 1999: Cornell University A huge thanks to Dr. Hoehn for taking the time and energy to bring us this opportunity and help us think of more areas to explore with our projects Dr. Gash for his book and his help with a proof (and also for teaching Modern Algebra) BIBLIOGRAPHY AND THANKS