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

Similar documents
Permutations. = f 1 f = I A

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

Once you get a solution draw it below, showing which three pennies you moved and where you moved them to. My Solution:

CRACKING THE 15 PUZZLE - PART 1: PERMUTATIONS

Grade 7/8 Math Circles. Visual Group Theory

Polyominoes. n

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

Grade 7/8 Math Circles. Visual Group Theory

Weighted Polya Theorem. Solitaire

BMT 2018 Combinatorics Test Solutions March 18, 2018

Heuristic Search with Pre-Computed Databases

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

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

THE 15-PUZZLE (AND RUBIK S CUBE)

Part I: The Swap Puzzle

Notice: Individual students, nonprofit libraries, or schools are permitted to make fair use of the papers and its solutions.

Graphs of Tilings. Patrick Callahan, University of California Office of the President, Oakland, CA

MATHEMATICS ON THE CHESSBOARD

Solving Triangular Peg Solitaire

Chapter 4: Patterns and Relationships

CRACKING THE 15 PUZZLE - PART 2: MORE ON PERMUTATIONS AND TAXICAB GEOMETRY

Counting Problems

Colouring tiles. Paul Hunter. June 2010

PARITY, SYMMETRY, AND FUN PROBLEMS 1. April 16, 2017

The Mathematics of Playing Tic Tac Toe

Rubik's Domino R B F+ F2 F-

Rotational Puzzles on Graphs

Introduction to Pentominoes. Pentominoes

Mistilings with Dominoes

Conway s Soldiers. Jasper Taylor

New Sliding Puzzle with Neighbors Swap Motion

arxiv:cs/ v2 [cs.cc] 27 Jul 2001

Lecture 2.3: Symmetric and alternating groups

Counting Things. Tom Davis March 17, 2006

2 Textual Input Language. 1.1 Notation. Project #2 2

arxiv: v2 [math.ho] 23 Aug 2018

Determinants, Part 1

TOPIC 2: HOW TO COUNT

Rosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples

Week 1. 1 What Is Combinatorics?


For 1 to 4 players Ages 12 to adult. Ternion Factor TM. Three games of strategy Solitaire puzzles. A product of Kadon Enterprises, Inc.

Factorization of permutation

2012 Math Day Competition

Port to Port / Triple Cross

Pyraminx Crystal. The number of positions: Links to other useful pages: Notation:


MATHEMATICS S-152, SUMMER 2005 THE MATHEMATICS OF SYMMETRY Outline #1 (Counting, symmetry, Platonic solids, permutations)

Combinatorics in the group of parity alternating permutations

SHRIMATI INDIRA GANDHI COLLEGE

STAT 430/510 Probability

Learning About Learning. Resource 1a (Activity 2) Shape Picture Activity - Shape 1. Shark. reference for teacher after shape has been cut out

Rubik 4x4x4 "Revenge"

MUMS seminar 24 October 2008

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

1 P a g e

The 2013 British Informatics Olympiad

Pointers. The Rectangle Game. Robb T. Koether. Hampden-Sydney College. Mon, Jan 21, 2013

Coin-Moving Puzzles. arxiv:cs/ v1 [cs.dm] 31 Mar Introduction. Erik D. Demaine Martin L. Demaine Helena A. Verrill

Recent Progress in the Design and Analysis of Admissible Heuristic Functions

Olympiad Combinatorics. Pranav A. Sriram

Part III F F J M. Name

Discrete Mathematics with Applications MATH236

Concept: Pythagorean Theorem Name:

A Real-Time Algorithm for the (n 2 1)-Puzzle

CS 32 Puzzles, Games & Algorithms Fall 2013

Principles of Counting. Notation for counting elements of sets

Design and Analysis of Algorithms Prof. Madhavan Mukund Chennai Mathematical Institute. Module 6 Lecture - 37 Divide and Conquer: Counting Inversions

Characterization of Domino Tilings of. Squares with Prescribed Number of. Nonoverlapping 2 2 Squares. Evangelos Kranakis y.

Exploring the City of Descartes I

OCTAGON 5 IN 1 GAME SET

arxiv:cs/ v3 [cs.ds] 9 Jul 2003

CS3334 Data Structures Lecture 4: Bubble Sort & Insertion Sort. Chee Wei Tan

Combinatorics: The Fine Art of Counting

John H. Conway, Richard Esterle Princeton University, Artist.

Jamie Mulholland, Simon Fraser University

Figure 1: The Game of Fifteen

Third Grade: Mathematics. Unit 1: Math Strategies

Perry High School. 2 nd Semester!

Math 166: Topics in Contemporary Mathematics II

Pennies vs Paperclips

1. Rectangles 20 points

STRATEGY AND COMPLEXITY OF THE GAME OF SQUARES

POKER (AN INTRODUCTION TO COUNTING)

Abstract shape: a shape that is derived from a visual source, but is so transformed that it bears little visual resemblance to that source.

Missing Sequence. You have 10 minutes to complete this test. Select the square that comes next in the sequence.

Permutations and Combinations. MATH 107: Finite Mathematics University of Louisville. March 3, 2014

Introduction to Counting and Probability

A NEW COMPUTATION OF THE CODIMENSION SEQUENCE OF THE GRASSMANN ALGEBRA

Movement of the pieces

Discrete mathematics

Sudoku goes Classic. Gaming equipment and the common DOMINARI - rule. for 2 players from the age of 8 up

The first player to construct his or her obelisk is the winner, and if a player has no legal moves, he or she immediately loses the game.

ONE-POINT PERSPECTIVE

Intriguing Problems for Students in a Proofs Class

Review I. October 14, 2008

Adventures with Rubik s UFO. Bill Higgins Wittenberg University

Over ===* Three games of strategy and chance Unique solitaire puzzles. For I to 4 players Ages 12 to adult. PassTM

Chapter 5 Integers. 71 Copyright 2013 Pearson Education, Inc. All rights reserved.

Combinatorics. PIE and Binomial Coefficients. Misha Lavrov. ARML Practice 10/20/2013

Transcription:

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

Standard Checkerboard

Challenge 1 Suppose two diagonally opposite corners of the checkerboard have been removed. Can the remaining region be covered by a set of 31 dominoes?

Challenge 2 Suppose two adjacent corners of the checkerboard have been removed. Can the remaining region be covered by a set of 31 dominoes?

Challenge 3 1 Is it possible to cover all but one square of an 8 by 8 checkerboard by using 21 straight trominoes? 2 If the covering is possible, which squares must be left uncovered? Straight Trominoe

Tricolor Checkerboard

Fifteen Puzzle The Fifteen Puzzle was invented in the 1870s by Sam Loyd. The puzzle consists of a flat box containing 15 movable pieces numbered 1 through 15. The starting configuration resembles: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Challenge 4 By sliding any piece adjacent to the blank space, rearrange the pieces to resemble: 1 2 3 4 5 6 7 8 9 10 11 12 13 15 14 No piece may be removed from the box at any time.

Comments and Questions Is this puzzle solvable? Which rearrangements of the pieces are possible?

Useful Problem Solving Principle When faced with a problem you do not know how to solve, try solving a simpler, related problem.

Useful Problem Solving Principle When faced with a problem you do not know how to solve, try solving a simpler, related problem. Consider a 2 2 version, we will call the Three Puzzle: 1 2 3 Which rearrangements of the pieces are possible?

Ordering Scheme Ignoring the blank, we may list the pieces in the order given by the pattern:

Ordering Scheme Ignoring the blank, we may list the pieces in the order given by the pattern: The possible rearrangements can be listed using ordered triples: (1, 2, 3), (2, 3, 1), and (3, 1, 2).

Permutations Definition Any ordering of n distinct items {1, 2, 3,...,n} is called a permutation. There are n(n 1)(n 2)(n 3) (3)(2)(1) = n! permutations of n items.

Permutations Definition Any ordering of n distinct items {1, 2, 3,...,n} is called a permutation. There are n(n 1)(n 2)(n 3) (3)(2)(1) = n! permutations of n items. How many permutations of {1, 2, 3} are possible? Which ordered triples are not attainable as rearrangements of the starting position in the Three Puzzle?

Inversions Definition In any permutation of the numbers {1, 2, 3,..., n} an inversion occurs whenever a larger number precedes a smaller number.

Inversions Definition In any permutation of the numbers {1, 2, 3,..., n} an inversion occurs whenever a larger number precedes a smaller number. Example The permutation (1, 5, 2, 4, 3) contains four inversions.

Inversions Definition In any permutation of the numbers {1, 2, 3,..., n} an inversion occurs whenever a larger number precedes a smaller number. Example The permutation (1, 5, 2, 4, 3) contains four inversions. How many inversions are in each of the following permutations? 1 (1, 2, 3, 4, 5, 6) 2 (7, 1, 4, 6, 3, 2, 5) 3 (5, 1, 6, 8, 2, 4, 7, 3)

Even and Odd Permutations Definition A permutation is said to be even if it contains an even number of inversions, and is said to be odd otherwise. The even-ness or odd-ness of the permutation is referred to as the permutation s parity.

Even and Odd Permutations Definition A permutation is said to be even if it contains an even number of inversions, and is said to be odd otherwise. The even-ness or odd-ness of the permutation is referred to as the permutation s parity. Are the following permutations even or odd? 1 (6, 5, 4, 3, 2, 1) 2 (3, 8, 1, 4, 5, 6, 7, 2) 3 (3, 7, 4, 2, 8, 6, 1, 5)

Permutations and Parity (1 of 2) Question: what effect does interchanging two adjacent numbers in a permutation have on the parity? (..., a, b,...) (...,b, a,...)

Permutations and Parity (1 of 2) Question: what effect does interchanging two adjacent numbers in a permutation have on the parity? (..., a, b,...) (...,b, a,...) Answer: the two permutations have opposite parities.

Permutations and Parity (2 of 2) Task: compare the parities of the following two permutations. (..., a, b 1, b 2,..., b r,...) (...,b 1, b 2,..., b r, a,...)

Permutations and Parity (2 of 2) Task: compare the parities of the following two permutations. (..., a, b 1, b 2,..., b r,...) (...,b 1, b 2,..., b r, a,...) Answer: they have the same parity if r is even and opposite parity if r is odd.

Five Puzzle Consider the 2 3 version of the puzzle: 1 2 3 4 5

Analysis of the Five Puzzle How many permutations of {1, 2, 3, 4, 5} are possible?

Analysis of the Five Puzzle How many permutations of {1, 2, 3, 4, 5} are possible? Using the permutation listing pattern, what effect does a horizontal move have on the parity of the permutation?

Analysis of the Five Puzzle How many permutations of {1, 2, 3, 4, 5} are possible? Using the permutation listing pattern, what effect does a horizontal move have on the parity of the permutation? What effect does a vertical move have on the parity of the permutation?

Analysis of the Five Puzzle How many permutations of {1, 2, 3, 4, 5} are possible? Using the permutation listing pattern, what effect does a horizontal move have on the parity of the permutation? What effect does a vertical move have on the parity of the permutation? What is the parity of the starting arrangement?

Analysis of the Five Puzzle How many permutations of {1, 2, 3, 4, 5} are possible? Using the permutation listing pattern, what effect does a horizontal move have on the parity of the permutation? What effect does a vertical move have on the parity of the permutation? What is the parity of the starting arrangement? What is the parity of any rearrangement of the starting arrangement?

Analysis of the Five Puzzle How many permutations of {1, 2, 3, 4, 5} are possible? Using the permutation listing pattern, what effect does a horizontal move have on the parity of the permutation? What effect does a vertical move have on the parity of the permutation? What is the parity of the starting arrangement? What is the parity of any rearrangement of the starting arrangement? How many different rearrangements of the starting arrangement are possible?

Challenge 5 1 2 4 3 5 Given a starting arrangement of following rearrangements can be achieved?, which of the 4 1 2 5 1 4 4 3 1 3 5 2 3 5 2 (A) (B) (C)

Ordering of Fifteen Puzzle Ignoring the blank, use the following ordering for the Fifteen Puzzle: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Starting permutation: (1, 2, 3, 4, 8, 7, 6, 5, 9, 10, 11, 12, 15, 14, 13)

Homework 1 How many permutations are there for {1, 2, 3,...,15}? 2 What is the parity of the starting permutation? 3 What effect on parity does a horizontal movement of the pieces have? 4 What effect on parity does a vertical movement of the pieces have? (Consider all cases.) 5 Is the solution to the Fifteen Puzzle achievable? Why or why not? 6 How many achievable permutations exist for the Fifteen Puzzle given its starting permutation?

Hi Q Consider a board containing 33 holes in a pattern as below. Suppose a peg is in each hole except for the center hole.

Hi Q Objective Whenever two adjacent (either horizontally or vertically) holes are occupied and the next hole in the same line is empty, the two pegs from the occupied holes may be removed and one of them placed in the third hole. In other words, one peg jumps over the other and lands in the vacant hole. The peg that was jumped is removed. 1 Can only one peg be left? 2 If this is accomplished, in which holes can the final peg be found?

Hi Q Coloring and Parity Suppose we color the squares red, black, and white. What are the counts of occupied red, black, and white squares?

Jumps and Parity What effect does a jump have on the counts of occupied red, black, and white squares?

Final Position and Parity If only one peg is left on the board, what will be the counts of the occupied red, black and white squares?

Final Position and Parity If only one peg is left on the board, what will be the counts of the occupied red, black and white squares? Which of these is compatible with the parity of the starting counts?

Final Position and Parity If only one peg is left on the board, what will be the counts of the occupied red, black and white squares? Which of these is compatible with the parity of the starting counts? Which squares can be left occupied last?

Numbering the Squares 11 12 13 14 15 16 17 21 22 23 24 25 26 27 31 32 33 34 35 36 37 41 42 43 44 45 46 47 51 52 53 54 55 56 57 61 62 63 64 65 66 67 71 72 73 74 75 76 77 A jump can be denoted by an ordered pair like (46, 44) meaning the peg in square 46 jumps to square 44 and the peg in 45 is removed.

Homework Find a sequence of jumps that leaves a single square occupied.