Rebuilding Objects with Linear Algebra

Total Page:16

File Type:pdf, Size:1020Kb

Rebuilding Objects with Linear Algebra The Shattered Urn: Rebuilding Objects with Linear Algebra John Burkardt Department of Mathematics University of South Carolina 20 November 2018 1 / 94 The Shattered Urn: Rebuilding Objects with Linear Algebra Computational Mathematics Seminar sponsored by: Mathematics Department University of Pittsburgh ... 10:00-11:00, 20 November 2018 427 Thackeray Hall References: http://people.math.sc.edu/burkardt/presentations/polyominoes 2018 pitt.pdf Marcus Garvie, John Burkardt, A New Mathematical Model for Tiling Finite Regions of the Plane with Polyominoes, submitted. 2 / 94 The Portland Vase 25AD - A Reconstruction Problem 3 / 94 Ostomachion - Archimedes, 287-212 BC 4 / 94 Tangrams - Song Dynasty, 960-1279 5 / 94 Dudeney - The Broken Chessboard (1919) 6 / 94 Golomb - Polyominoes (1965) 7 / 94 Puzzle Statement 8 / 94 Tile Variations: Reflections, Rotations, All Orientations 9 / 94 Puzzle Variations: Holes or Infinite Regions 10 / 94 Is It Math? \One can guess that there are several tilings of a 6 × 10 rectangle using the twelve pentominoes. However, one might not predict just how many there are. An exhaustive computer search has found that there are 2339 such tilings. These questions make nice puzzles, but are not the kind of interesting mathematical problem that we are looking for." \Tilings" - Federico Ardila, Richard Stanley 11 / 94 Is it \Simple" Computer Science? 12 / 94 Sequential Solution: Backtracking 13 / 94 Is it \Clever" Computer Science? 14 / 94 Simultaneous Solution: Linear Algebra? 15 / 94 Exact Cover Knuth: \Tiling is a version of the exact cover problem." Select rows of a 0/1 matrix so every column has a 1: 0 0 0 1 0 1 1 0 1 B 1 0 0 1 0 0 1 C B C B 0 1 1 0 0 1 0 C B C B 1 0 0 1 0 0 0 C B C @ 0 1 0 0 0 0 1 A 0 0 0 1 1 0 1 Solution: 0 0 0 1 0 1 1 0 1 @ 1 0 0 1 0 0 0 A 0 1 0 0 0 0 1 Column Sums: 1 1 1 1 1 1 1 16 / 94 Exact Cover Transposed Transposed problem: select columns of A so every row has a 1: 0 0 1 0 1 0 0 1 B 0 0 1 0 1 0 C B C B 1 0 1 0 0 0 C B C A = B 0 1 0 1 0 1 C B C B 1 0 0 0 0 1 C B C @ 1 0 1 0 0 0 A 0 1 0 0 1 1 Vector x selects columns 1, 4, and 5, solving Ax = b: 0 0 1 0 1 0 1 1 0 1 1 0 0 1 1 B C 0 B C B 1 0 0 C B C B 1 C B C B 0 C B C A(:,[1,4,5])= B 0 1 0 C x = B C b = B 1 C B C B 1 C B C B 1 0 0 C B C B 1 C B C B 1 C B C B 1 0 0 C @ A B 1 C @ A 0 @ A 0 0 1 1 17 / 94 Equations: A Cell Is Covered Once By Some Tile L U P I z T 18 / 94 Variables: X Pentomino Example v1 v3 v5 v2 v4 v6 19 / 94 Constraints: Depending on the problem and how we think about it, we may need to add some constraints, which will be either additional linear equations, or linear inequalities. Thus, for the 4 × 5 tiling problem just mentioned, in which the X pentomino has 6 possible placements: Use the X pentomino exactly twice: v1 + v2 + v3 + v4 + v5 + v6 = 2 Use the X pentomino no more than twice: v1 + v2 + v3 + v4 + v5 + v6 ≤ 2 Use a total of 4 pentominoes of any kind: v1 + v2 + ::: + vn = 4 Every pentomino placement must be used once or not at all: vi 2 f0; 1g 20 / 94 Linear System Logic 0 V 1 V 2 V 3 V 4 V 5 V 6 1 0 cover? 1 0 use 1 C1 0 1 0 1 0 0 1 B C 1 B C B C2 0 0 1 0 1 0 C B C B 1 C B C B 0 C B C B C3 1 0 1 0 0 0 C B C B 1 C B C B 0 C = B C B C4 0 1 0 1 0 1 C B C B 1 C B C B 1 C B C B C5 1 0 0 0 0 1 C B C B 1 C B C B 1 C B C B C6 1 0 1 0 0 0 C @ A B 1 C @ A 0 @ A C7 0 1 0 0 1 1 1 21 / 94 The Reid Polygon to Be Tiled 22 / 94 The Reid Polygon Cells 23 / 94 The Reid Equations: e1 : e8 e1 e2 e3 e4 e5 e6 e7 e8 24 / 94 The Reid Variables x1 : x10 x1 x3 x2 x4 x5 x6 x7 x8 x9 x10 We start to see how the equations and variables combine: x1 + x6 =1 Cell 1 must be covered once x3 + x6 =1 Cell 2 must be covered once x1 + x2 + x7 =1 Cell 3 must be covered once :::::: 25 / 94 The Reid Equations: 8 Equations, 10 Unknowns x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 b e1 : x1 +x6 = 1 e2 : +x3 +x6 = 1 e3 : x1 +x2 +x7 = 1 e4 : x3 +x4 +x7 +x8 = 1 e5 : x5 +x8 = 1 e6 : x2 +x9 = 1 e7 : x4 +x9 +x10 = 1 e8 : x5 +x10 = 1 26 / 94 The Reid Linear System: 8 Equations, 10 Unknowns A x = b 0 1 x1 0 1 0 1 1 0 0 0 0 1 0 0 0 0 B x2 C 1 B C B 0 0 1 0 0 1 0 0 0 0 C B x3 C B 1 C B C B C B C B 1 1 0 0 0 0 1 0 0 0 C B x4 C B 1 C B C B C B C B 0 0 1 1 0 0 1 1 0 0 C B x5 C B 1 C B C B C = B C B 0 0 0 0 1 0 0 1 0 0 C B x6 C B 1 C B C B C B C B 0 1 0 0 0 0 0 0 1 0 C B x7 C B 1 C B C B C B C @ 0 0 0 1 0 0 0 0 1 1 A B x8 C @ 1 A B C 0 0 0 0 1 0 0 0 0 1 @ x9 A 1 x10 27 / 94 Reduced Row Echelon Form of Reid Linear System Notice that variables 7, 9 and 10 are free! x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 b e1 : 1 1 −1 = 0 e2 : 1 1 = 1 e3 : 1 1 −1 = 0 e4 : 1 1 1 = 1 e5 : 1 1 = 1 e6 : 1 −1 1 = 0 e7 : 1 1 = 0 e8 : = 0 28 / 94 Drop Zero Row, Add Degrees of Freedom We add placeholder equations for variables 7, 9 and 10. x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 b e1 : 1 1 −1 = 0 e2 : 1 1 = 1 e3 : 1 1 −1 = 0 e4 : 1 1 1 = 1 e5 : 1 1 = 1 e6 : 1 −1 1 = 0 f1 :1=? e7 : 1 1 = 0 f2 :1=? f3 :1=? 29 / 94 Solutions for 8 Binary Right Hand Sides x1 : 0 0 1 1 −1 −1 0 0 x2 : 1 1 0 0 1 1 0 0 x3 : 0 0 1 1 −1 −1 0 0 x4 : 1 0 0 −1 1 0 0 −1 x5 : 1 0 1 0 1 0 1 0 x6 : 1 1 0 0 2 2 1 1 x7 :00001111 x8 : 0 1 0 1 0 1 0 1 x9 :00110011 x10 :01010101 30 / 94 The Reid Tilings (Labeled) x6 x6 x8 x2 x4 x5 x2 x10 x6 x1 x3 x7 x5 x5 x9 x9 31 / 94 A Universal Algorithm for Polyomino Tiling? 1 Number the cells in the polygon (equations); 2 Number every placement of a polyomino in the polygon (variables); 3 Construct the linear system; 4 Solve the linear system. Formally OK, but what's hard here? What could go wrong? 32 / 94 A More Realistic Algorithm for Polyomino Tiling 1 Number the cells in the polygon (equations); 2 If multiple polyomino shapes, add constraint equations; 3 Generate every rotation or reflection of each polyomino; 4 Number every placement of a polyomino in the polygon (variables); 5 Construct the (rectangular) linear system; 6 Expand to a square system, including degrees of freedom; 7 Generate every possible right hand side; 8 Exact solution required (integer system, rational answers!); 9 Only accept \binary" solutions. 10 Count, plot, analyze solutions. In some cases, thousands of solutions may be found. 33 / 94 4x5 Example: Region R 34 / 94 4x5 Example: Tiles P 35 / 94 MATLAB Programs Go to http://people.sc.fsu.edu/∼jburkardt Choose the MATLAB examples Look for polyomino monohedral example reid Many more polyomino codes available. 36 / 94 4x5 Example: Discussion of coding % % Step 1: Define Region: % r m = 4 ; r n = 5 ; r shape = ones ( r m , r n ) ; r shape(3,3:4) = 0; r s h a p e 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 37 / 94 4x5 Example: Discussion of coding % % Step 2: Define Polyomino Shapes: % p num = 3 ; p shapes = zeros ( r m , r n , p num ) ; p shapes(1,1:3,1) = 1; p shapes(2,1:2,1) = 1; p shapes(1:2,1:2,2) = 1; p shapes(1,3,3) = 1; p shapes(2,1:3,3)= 1; 38 / 94 4x5 Example: Discussion of coding % % Step 3: Check Polyomino Shapes: % p shapes(1:2,1:3,1) 1 1 1 1 1 0 p shapes(1:2,1:2,2) 1 1 1 1 p shapes(1:2,1:3,3) 0 0 1 1 1 1 % % Step 4: Indicate multiplicity.
Recommended publications
  • Snakes in the Plane
    Snakes in the Plane by Paul Church A thesis presented to the University of Waterloo in fulfillment of the thesis requirement for the degree of Master of Mathematics in Computer Science Waterloo, Ontario, Canada, 2008 c 2008 Paul Church I hereby declare that I am the sole author of this thesis. This is a true copy of the thesis, including any required final revisions, as accepted by my examiners. I understand that my thesis may be made electronically available to the public. ii Abstract Recent developments in tiling theory, primarily in the study of anisohedral shapes, have been the product of exhaustive computer searches through various classes of poly- gons. I present a brief background of tiling theory and past work, with particular empha- sis on isohedral numbers, aperiodicity, Heesch numbers, criteria to characterize isohedral tilings, and various details that have arisen in past computer searches. I then develop and implement a new “boundary-based” technique, characterizing shapes as a sequence of characters representing unit length steps taken from a finite lan- guage of directions, to replace the “area-based” approaches of past work, which treated the Euclidean plane as a regular lattice of cells manipulated like a bitmap. The new technique allows me to reproduce and verify past results on polyforms (edge-to-edge as- semblies of unit squares, regular hexagons, or equilateral triangles) and then generalize to a new class of shapes dubbed polysnakes, which past approaches could not describe. My implementation enumerates polyforms using Redelmeier’s recursive generation algo- rithm, and enumerates polysnakes using a novel approach.
    [Show full text]
  • Mathematics of Sudoku I
    Mathematics of Sudoku I Bertram Felgenhauer Frazer Jarvis∗ January 25, 2006 Introduction Sudoku puzzles became extremely popular in Britain from late 2004. Sudoku, or Su Doku, is a Japanese word (or phrase) meaning something like Number Place. The idea of the puzzle is extremely simple; the solver is faced with a 9 × 9 grid, divided into nine 3 × 3 blocks: In some of these boxes, the setter puts some of the digits 1–9; the aim of the solver is to complete the grid by filling in a digit in every box in such a way that each row, each column, and each 3 × 3 box contains each of the digits 1–9 exactly once. It is a very natural question to ask how many Sudoku grids there can be. That is, in how many ways can we fill in the grid above so that each row, column and box contains the digits 1–9 exactly once. In this note, we explain how we first computed this number. This was the first computation of this number; we should point out that it has been subsequently confirmed using other (faster!) methods. First, let us notice that Sudoku grids are simply special cases of Latin squares; remember that a Latin square of order n is an n × n square containing each of the digits 1,...,n in every row and column. The calculation of the number of Latin squares is itself a difficult problem, with no general formula known. The number of Latin squares of sizes up to 11 × 11 have been worked out (see references [1], [2] and [3] for the 9 × 9, 10 × 10 and 11 × 11 squares), and the methods are broadly brute force calculations, much like the approach we sketch for Sudoku grids below.
    [Show full text]
  • Polyominoes with Maximum Convex Hull Sascha Kurz
    University of Bayreuth Faculty for Mathematics and Physics Polyominoes with maximum convex hull Sascha Kurz Bayreuth, March 2004 Diploma thesis in mathematics advised by Prof. Dr. A. Kerber University of Bayreuth and by Prof. Dr. H. Harborth Technical University of Braunschweig Contents Contents . i List of Figures . ii List of Tables . iv 0 Preface vii Acknowledgments . viii Declaration . ix 1 Introduction 1 2 Proof of Theorem 1 5 3 Proof of Theorem 2 15 4 Proof of Theorem 3 21 5 Prospect 29 i ii CONTENTS References 30 Appendix 42 A Exact numbers of polyominoes 43 A.1 Number of square polyominoes . 44 A.2 Number of polyiamonds . 46 A.3 Number of polyhexes . 47 A.4 Number of Benzenoids . 48 A.5 Number of 3-dimensional polyominoes . 49 A.6 Number of polyominoes on Archimedean tessellations . 50 B Deutsche Zusammenfassung 57 Index 60 List of Figures 1.1 Polyominoes with at most 5 squares . 2 2.1 Increasing l1 ............................. 6 2.2 Increasing v1 ............................ 7 2.3 2-dimensional polyomino with maximum convex hull . 7 2.4 Increasing l1 in the 3-dimensional case . 8 3.1 The 2 shapes of polyominoes with maximum convex hull . 15 3.2 Forbidden sub-polyomino . 16 1 4.1 Polyominoes with n squares and area n + 2 of the convex hull . 22 4.2 Construction 1 . 22 4.3 Construction 2 . 23 4.4 m = 2n − 7 for 5 ≤ n ≤ 8 ..................... 23 4.5 Construction 3 . 23 iii iv LIST OF FIGURES 4.6 Construction 4 . 24 4.7 Construction 5 . 25 4.8 Construction 6 .
    [Show full text]
  • Lightwood Games Makes Sudoku a Party with Unique Online Gameplay for Ios
    prMac: Publish Once, Broadcast the World :: http://prmac.com Lightwood Games makes Sudoku a Party with unique online gameplay for iOS Published on 02/10/12 UK based Lightwood Games today introduces Sudoku Party 1.0, their latest iOS app to put a new spin on a classic puzzle. As well as offering 3 different levels of difficulty for solo play, Sudoku Party introduces a unique online mode. In Party Play, two players work together to solve the same puzzle, but also compete to see who can control the largest number of squares. Once a player has placed a correct answer, their opponent has just a few seconds to respond or they lose claim to that square. Stoke-on-Trent, United Kingdom - Lightwood Games today is delighted to announce the release of Sudoku Party, their latest iPhone and iPad app to put a new spin on a classic puzzle game. Featuring puzzles by Conceptis, Sudoku Party gives individual users a daily challenge at three different levels of difficulty, and also introduces a unique multi-player mode for online play. In Party Play, two players must work together to solve the same puzzle, but at the same time compete to see who can control the largest number of squares. Once a player has placed a correct answer, their opponent has just a few seconds to respond or they lose claim to that square for ever. Players can challenge their friends or jump straight into an online game against the next available opponent. The less-pressured solo mode features a range of beautiful, symmetrical, uniquely solvable sudoku puzzles designed by Conceptis Puzzles, the world's leading supplier of logic puzzles.
    [Show full text]
  • Competition Rules
    th WORLD SUDOKU CHAMPIONSHIP 5PHILADELPHIA APR MAY 2 9 0 2 2 0 1 0 Competition Rules Lead Sponsor Competition Schedule (as of 4/25) Thursday 4/29 1-6 pm, 10-11:30 pm Registration 6:30 pm Optional transport to Visitor Center 7 – 10:00 pm Reception at Visitor Center 9:00 pm Optional transport back to hotel 9:30 – 10:30 pm Q&A for puzzles and rules Friday 4/30 8 – 10 am Breakfast 9 – 1 pm Self-guided tourism and lunch 1:15 – 5 pm Individual rounds, breaks • 1: 100 Meters (20 min) • 2: Long Jump (40 min) • 3: Shot Put (40 min) • 4: High Jump (35 min) • 5: 400 Meters (35 min) 5 – 5:15 pm Room closed for team round setup 5:15 – 6:45 pm Team rounds, breaks • 1: Weakest Link (40 min) • 2: Number Place (42 min) 7:30 – 8:30 pm Dinner 8:30 – 10 pm Game Night Saturday 5/1 7 – 9 am Breakfast 8:30 – 12:30 pm Individual rounds, breaks • 6: 110 Meter Hurdles (20 min) • 7: Discus (35 min) • 8: Pole Vault (40 min) • 9: Javelin (45 min) • 10: 1500 Meters (35 min) 12:30 – 1:30 pm Lunch 2:00 – 4:30 pm Team rounds, breaks • 3: Jigsaw Sudoku (30 min) • 4: Track & Field Relay (40 min) • 5: Pentathlon (40 min) 5 pm Individual scoring protest deadline 4:30 – 5:30 pm Room change for finals 5:30 – 6:45 pm Individual Finals 7 pm Team scoring protest deadline 7:30 – 10:30 pm Dinner and awards Sunday 5/2 Morning Breakfast All Day Departure Competition Rules 5th World Sudoku Championship The rules this year introduce some new scoring techniques and procedures.
    [Show full text]
  • A Flowering of Mathematical Art
    A Flowering of Mathematical Art Jim Henle & Craig Kasper The Mathematical Intelligencer ISSN 0343-6993 Volume 42 Number 1 Math Intelligencer (2020) 42:36-40 DOI 10.1007/s00283-019-09945-0 1 23 Your article is protected by copyright and all rights are held exclusively by Springer Science+Business Media, LLC, part of Springer Nature. This e-offprint is for personal use only and shall not be self-archived in electronic repositories. If you wish to self- archive your article, please use the accepted manuscript version for posting on your own website. You may further deposit the accepted manuscript version in any repository, provided it is only made publicly available 12 months after official publication or later and provided acknowledgement is given to the original source of publication and a link is inserted to the published article on Springer's website. The link must be accompanied by the following text: "The final publication is available at link.springer.com”. 1 23 Author's personal copy For Our Mathematical Pleasure (Jim Henle, Editor) 1 have argued that the creation of mathematical A Flowering of structures is an art. The previous column discussed a II tiny genre of that art: numeration systems. You can’t describe that genre as ‘‘flowering.’’ But activity is most Mathematical Art definitely blossoming in another genre. Around the world, hundreds of artists are right now creating puzzles of JIM HENLE , AND CRAIG KASPER subtlety, depth, and charm. We are in the midst of a renaissance of logic puzzles. A Renaissance The flowering began with the discovery in 2004 in England, of the discovery in 1980 in Japan, of the invention in 1979 in the United States, of the puzzle type known today as sudoku.
    [Show full text]
  • A New Mathematical Model for Tiling Finite Regions of the Plane with Polyominoes
    Volume 15, Number 2, Pages 95{131 ISSN 1715-0868 A NEW MATHEMATICAL MODEL FOR TILING FINITE REGIONS OF THE PLANE WITH POLYOMINOES MARCUS R. GARVIE AND JOHN BURKARDT Abstract. We present a new mathematical model for tiling finite sub- 2 sets of Z using an arbitrary, but finite, collection of polyominoes. Unlike previous approaches that employ backtracking and other refinements of `brute-force' techniques, our method is based on a systematic algebraic approach, leading in most cases to an underdetermined system of linear equations to solve. The resulting linear system is a binary linear pro- gramming problem, which can be solved via direct solution techniques, or using well-known optimization routines. We illustrate our model with some numerical examples computed in MATLAB. Users can download, edit, and run the codes from http://people.sc.fsu.edu/~jburkardt/ m_src/polyominoes/polyominoes.html. For larger problems we solve the resulting binary linear programming problem with an optimization package such as CPLEX, GUROBI, or SCIP, before plotting solutions in MATLAB. 1. Introduction and motivation 2 Consider a planar square lattice Z . We refer to each unit square in the lattice, namely [~j − 1; ~j] × [~i − 1;~i], as a cell.A polyomino is a union of 2 a finite number of edge-connected cells in the lattice Z . We assume that the polyominoes are simply-connected. The order (or area) of a polyomino is the number of cells forming it. The polyominoes of order n are called n-ominoes and the cases for n = 1; 2; 3; 4; 5; 6; 7; 8 are named monominoes, dominoes, triominoes, tetrominoes, pentominoes, hexominoes, heptominoes, and octominoes, respectively.
    [Show full text]
  • Coverage Path Planning Using Reinforcement Learning-Based TSP for Htetran—A Polyabolo-Inspired Self-Reconfigurable Tiling Robot
    sensors Article Coverage Path Planning Using Reinforcement Learning-Based TSP for hTetran—A Polyabolo-Inspired Self-Reconfigurable Tiling Robot Anh Vu Le 1,2 , Prabakaran Veerajagadheswar 1, Phone Thiha Kyaw 3 , Mohan Rajesh Elara 1 and Nguyen Huu Khanh Nhan 2,∗ 1 ROAR Lab, Engineering Product Development, Singapore University of Technology and Design, Singapore 487372, Singapore; [email protected] (A.V.L); [email protected] (P.V); [email protected] (M.R.E.) 2 Optoelectronics Research Group, Faculty of Electrical and Electronics Engineering, Ton Duc Thang University, Ho Chi Minh City 700000, Vietnam 3 Department of Mechatronic Engineering, Yangon Technological University, Insein 11101, Myanmar; [email protected] * Correspondence: [email protected] Abstract: One of the critical challenges in deploying the cleaning robots is the completion of covering the entire area. Current tiling robots for area coverage have fixed forms and are limited to cleaning only certain areas. The reconfigurable system is the creative answer to such an optimal coverage problem. The tiling robot’s goal enables the complete coverage of the entire area by reconfigur- ing to different shapes according to the area’s needs. In the particular sequencing of navigation, it is essential to have a structure that allows the robot to extend the coverage range while saving Citation: Le, A.V.; energy usage during navigation. This implies that the robot is able to cover larger areas entirely Veerajagadheswar, P.; Thiha Kyaw, P.; with the least required actions. This paper presents a complete path planning (CPP) for hTetran, Elara, M.R.; Nhan, N.H.K.
    [Show full text]
  • PDF Download Journey Sudoku Puzzle Book : 201
    JOURNEY SUDOKU PUZZLE BOOK : 201 PUZZLES (EASY, MEDIUM AND VERY HARD) PDF, EPUB, EBOOK Gregory Dehaney | 124 pages | 21 Jul 2017 | Createspace Independent Publishing Platform | 9781548978358 | English | none Journey Sudoku Puzzle Book : 201 puzzles (Easy, Medium and Very Hard) PDF Book Currently you have JavaScript disabled. Home 1 Books 2. All rights reserved. They are a great way to keep your mind alert and nimble! A puzzle with a mini golf course consisting of the nine high-quality metal puzzle pieces with one flag and one tee on each. There is work in progress to improve this situation. Updated: February 10 th You are going to read about plants. Solve online. Receive timely lesson ideas and PD tips. You can place the rocks in different positions to alter the course You can utilize the Sudoku Printable to apply the actions for fixing the puzzle and this is going to help you out in the future. Due to the unique styles, several folks get really excited and want to understand all about Sudoku Printable. Now it becomes available to all iPhone, iPod touch and iPad puzzle lovers all over the World! We see repeatedly that the stimulation provided by these activities improves memory and brain function. And those we do have provide the same benefits. You can play a free daily game , that is absolutely addictive! The rules of Hidato are, as with Sudoku, fairly simple. These Sudokus are irreducible, that means that if you delete a single clue, they become ambigous. Let us know if we can help. Move the planks among the tree stumps to help the Hiker across.
    [Show full text]
  • SUDOKU SOLVER Study and Implementation
    SUDOKU SOLVER Study and Implementation Abstract In this project we studied two algorithms to solve a Sudoku game and implemented a playable application for all major operating systems. Qizhong Mao, Baiyi Tao, Arif Aziz {qzmao, tud46571, arif.aziz}@temple.edu CIS 5603 Project Report Qizhong Mao, Baiyi Tao, Arif Aziz Table of Contents Introduction .......................................................................................................................... 3 Variants ................................................................................................................................ 3 Standard Sudoku ...........................................................................................................................3 Small Sudoku .................................................................................................................................4 Mini Sudoku ..................................................................................................................................4 Jigsaw Sudoku ...............................................................................................................................4 Hyper Sudoku ................................................................................................................................5 Dodeka Sudoku ..............................................................................................................................5 Number Place Challenger ...............................................................................................................5
    [Show full text]
  • THE MATHEMATICS BEHIND SUDOKU Sudoku Is One of the More Interesting and Potentially Addictive Number Puzzles. It's Modern Vers
    THE MATHEMATICS BEHIND SUDOKU Sudoku is one of the more interesting and potentially addictive number puzzles. It’s modern version (adapted from the Latin Square of Leonard Euler) was invented by the American Architect Howard Ganz in 1979 and brought to worldwide attention through promotion efforts in Japan. Today the puzzle appears weekly in newspapers throughout the world. The puzzle basis is a square n x n array of elements for which only a few of the n2 elements are specified beforehand. The idea behind the puzzle is to find the value of the remaining elements following certain rules. The rules are- (1)-Each row and column of the n x n square matrix must contain each of n numbers only once so that the sum in each row or column of n numbers always equals- n n(n 1) k k 1 2 (2)-The n x n matrix is broken up into (n/b)2 square sub-matrixes, where b is an integer divisor of n. Each sub-matrix must also contain all n elements just once and the sum of the elements in each sub-matrix must also equal n(n+1)/2. It is our purpose here to look at the mathematical aspects behind Sudoku solutions. To make things as simple as possible, we will start with a 4 x 4 Sudoku puzzle of the form- 1 3 1 4 3 2 Here we have 6 elements given at the outset and we are asked to find the remaining 10 elements shown as dashes. There are four rows and four columns each plus 4 sub- matrixes of 2 x 2 size which read- 1 3 4 3 A B C and D 1 2 Any element in the 4 x 4 square matrix is identified by the symbol ai,j ,where i is the row number and j the column number.
    [Show full text]
  • Applying Parallel Programming Polyomino Problem
    ______________________________________________________ Case Study Applying Parallel Programming to the Polyomino Problem Kevin Gong UC Berkeley CS 199 Fall 1991 Faculty Advisor: Professor Katherine Yelick ______________________________________________________ INTRODUCTION - 1 ______________________________________________________ ______________________________________________________ INTRODUCTION - 2 ______________________________________________________ Acknowledgements Thanks to Martin Gardner, for introducing me to polyominoes (and a host of other problems). Thanks to my faculty advisor, Professor Katherine Yelick. Parallel runs for this project were performed on a 12-processor Sequent machine. Sequential runs were performed on Mammoth. This machine was purchased under an NSF CER infrastructure grant, as part of the Mammoth project. Format This paper was printed on a Laserwriter II using an Apple Macintosh SE running Microsoft Word. Section headings and tables are printed in Times font. The text itself is printed in Palatino font. Headers and footers are in Helvetica. ______________________________________________________ INTRODUCTION - 3 ______________________________________________________ ______________________________________________________ INTRODUCTION - 4 ______________________________________________________ Contents 1 Introduction 2 Problem 3 Existing Research 4 Sequential Enumeration 4.1 Extension Method 4.1.1 Generating Polyominoes 4.1.2 Hashing 4.1.3 Storing Polyominoes For Uniqueness Check 4.1.4 Data Structures 4.2 Rooted
    [Show full text]