A Tromino Simulation by Andre Berthiaume

Slides:



Advertisements
Similar presentations
Mathematical Induction
Advertisements

22C:19 Discrete Structures Induction and Recursion Fall 2014 Sukumar Ghosh.
Elementary Number Theory and Methods of Proof
Induction Lecture 5: Sep 21 (chapter of the book and chapter of the notes)
Induction and recursion
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 12 Number theory Mathematical induction Proof by induction Examples.
CSS342: Induction1 Professor: Munehiro Fukuda. CSS342: Induction2 Today’s Topics Review of sequence and summations Mathematical induction Strong form.
Copyright © Cengage Learning. All rights reserved.
1 Strong Mathematical Induction. Principle of Strong Mathematical Induction Let P(n) be a predicate defined for integers n; a and b be fixed integers.
1 Mathematical Induction. 2 Mathematical Induction: Example  Show that any postage of ≥ 8¢ can be obtained using 3¢ and 5¢ stamps.  First check for.
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
Algorithm Design and Analysis (ADA)
Lesson 1-3 Section 1-5. Definition  To find the Midpoint of a number line, we simply take the average of the distance.  Say that we are trying to find.
Copyright © Cengage Learning. All rights reserved.
Mathematical Induction. F(1) = 1; F(n+1) = F(n) + (2n+1) for n≥ F(n) n F(n) =n 2 for all n ≥ 1 Prove it!
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
Chapter 1: Introduction Mathematical Proofs Mathematical Induction CS 340 Page 1.
Introduction to Proofs
Section 1.8. Section Summary Proof by Cases Existence Proofs Constructive Nonconstructive Disproof by Counterexample Nonexistence Proofs Uniqueness Proofs.
Discrete Maths: Induction/1 1 Discrete Maths Objective – –to introduce mathematical induction through examples , Semester
Mathematical Induction I Lecture 4: Sep 16. This Lecture Last time we have discussed different proof techniques. This time we will focus on probably the.
Chapter Mathematical Induction 4.2 Strong Induction and Well-Ordering 4.3 Recursive Definitions and Structural Induction 4.4 Recursive Algorithms.
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
CompSci 102 Discrete Math for Computer Science March 1, 2012 Prof. Rodger Slides modified from Rosen.
Induction & Recursion Weiss: ch 7.1. Recursion –a programming strategy for solving large problems –Think “divide and conquer” –Solve large problem by.
1 INFO 2950 Prof. Carla Gomes Module Induction Rosen, Chapter 4.
Inductive Proofs and Inductive Definitions Jim Skon.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
INDUCTION Slides of Ken Birman, Cornell University.
Mathematical Induction
Copyright © Zeph Grunschlag, Induction Zeph Grunschlag.
Copyright © Cengage Learning. All rights reserved. Sequences and Series.
Lessons from the Math Zone: TITLE Click to Start Lesson.
Chapter 5. Section 5.1 Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If we can reach.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Mathematical Induction I Lecture 5: Sep 20 (chapter of the textbook and chapter of the course notes)
1 Computer Algorithms Tutorial 2 Mathematical Induction Some of these slides are courtesy of D. Plaisted et al, UNC and M. Nicolescu, UNR.
MA/CSSE 473 Day 04 Multiplication runtime Multiplication based on Gauss formula Mathematical induction review.
INDUCTION Lecture 22 CS2110 – Fall 2009 A well-known scientist (some say it was Bertrand Russell) once gave a public lecture on astronomy. He described.
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
MA/CSSE 473 Day 05 More induction Factors and Primes Recursive division algorithm.
Chapter 5 With Question/Answer Animations 1. Chapter Summary Mathematical Induction - Sec 5.1 Strong Induction and Well-Ordering - Sec 5.2 Lecture 18.
Mathematical Induction EECS 203: Discrete Mathematics Lecture 11 Spring
Section 9.1. Section Summary Relations and Functions Properties of Relations Reflexive Relations Symmetric and Antisymmetric Relations Transitive Relations.
Mathematical Induction And Recursion Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
Chapter 5 1. Chapter Summary  Mathematical Induction  Strong Induction  Recursive Definitions  Structural Induction  Recursive Algorithms.
Induction (chapter of the book and chapter of the notes)
Hubert Chan (Chapters 1.6, 1.7, 4.1)
The Foundations: Logic and Proofs
Black Box Software Testing (Professional Seminar)
EECS 203: Discrete Mathematics
CSE 311 Foundations of Computing I
CS2210:0001Discrete Structures Induction and Recursion
CSE 311 Foundations of Computing I
Hubert Chan (Chapters 1.6, 1.7, 4.1)
Mathematical Induction
Chapter 5 Induction and Recursion
Notes 9.5 – Mathematical Induction
Induction and recursion
Exercise Use mathematical induction to prove the following formula.
myIS.neu.edu – presentation screen shots accompany:
Black Box Software Testing (Academic Course - Fall 2001)
Black Box Software Testing (Academic Course - Fall 2001)
CSE 373 Data Structures and Algorithms
Direct Proof and Counterexample I
Follow me for a walk through...
Induction Chapter
Follow me for a walk through...
Mathematical Induction II
CSE 311 Foundations of Computing I
Presentation transcript:

A Tromino Simulation by Andre Berthiaume

Tiling with trominoes Definition: a tromino is a group of three unit squares arranged as follows: Definition: a pq board is a p  q array of unit squares. Consider: pq boards with one square removed. Definition: Tiling a board with one square removed means every unit square of the board is covered No tromino covers the missing square No two tromino overlap No tromino extends beyond the board

Tiling with trominoes Definition: a tromino is a group of three unit squares arranged as follows: Definition: a pq board is a p  q array of unit squares. Consider: pq boards with one square removed. Definition: Tiling a board with one square removed means Every unit square of the board is covered No tromino covers the missing square No two tromino overlap No tromino extends beyond the board

Theorem:  n  1, any 2n  2n board with one square removed can be tiled by trominoes. Proof by mathematical induction: Let the property P(n) be the sentence“any 2n2n board with one square removed can be tiled by trominoes.” Show that the property is true for n = 1: There are 4 possible 2  2 boards with one square removed. Clearly, each of them can be tiled with a single tromino.

Thm:  n  1, any 2n  2n board with one square removed can be tiled with trominoes. The property P(n) is the sentence“any 2n2n board with one square removed can be tiled by trominoes.” Show that for all integers k  1, if the property is true for n = k then it is true for n = k + 1: Let k be any integer with k  1, and suppose that any 2k  2k board with one square removed can be tiled by trominoes. [This is the inductive hypothesis.] We must show that a 2k+1  2k+1 board with one square removed can be tiled by trominoes.

Tiling Problem: Induction Step Consider an 2k+1 2k+1 board with one square removed: Then add a tromino in the center as follow. First, divide the board in 4 quadrants. Now, separate the 4 quadrants

Tiling Problem:Induction Step Consider each blue square and the black square as “missing” for each sub-board. By the inductive hypothesis, each of these sub-boards can be tiled.

Tiling Problem:Induction Step These tilings are provided by the induction process. Now, we join the sub-boards together...

Tiling Problem :Induction Step … and we find a tiling for the full board.

Summary: Show that for all integers k  1, if the property is true for n = k then it is true for n = k + 1: Let k be any integer with k  1, and suppose that any 2k  2k board with one square removed can be tiled by trominoes. [This is the inductive hypothesis.] Suppose we have a 2k+1  2k+1 board with one square removed. Divide it into 4 quadrants, each consisting of a 2k  2k board. In one of the quadrants, one square will have been removed, and so, by inductive hypothesis, the remaining squares in that quadrant can be covered by trominos. The other three quadrants meet at the center of the board, and the center serves as a corner of a square from each of the three quadrants. A tromino can, therefore, be placed on those three central squares. By inductive hypothesis, the remaining squares in each of those three quadrants can be completely covered by trominos. Thus the 2k+1  2k+1 board with one square removed can be tiled with trominos.

Tiling Problem: Simulation How can you tile an 8  8 board with one square removed?

Tiling Problem: Simulation

Tiling Problem: Simulation

Tiling Problem: Simulation

Tiling Problem: Simulation

Tiling Problem: Algorithm Global: Board[1..k,1..k] where k is 2n Program Tile( Board, n, x, y ) /* we deal with the 2^n x 2^n Board /* the missing square is at Board[x,y] if n = 1 then \* we have a 2x2 deficient board place the only tromino that works else divide Board into UL, UR, LL, LR boards Properly place a tromino in the center Let [x1,y1], [x2,y2], [x3,y3], [x4,y4] be the coordinates of the missing/covered squares in each of the 4 quadrants Tile(UL, n-1, x1, y1) Tile(UR, n-1, x2, y2) Tile(LL, n-1, x3, y3) Tile(LR, n-1, x4, y4) 1 2 3 4

Tiling Problem: Algorithm Global: Board[1..k,1..k] where k is 2n Program Tile( Board, n, x, y ) /* we deal with the 2^n x 2^n Board /* the missing square is at Board[x,y] if n = 1 then \* we have a 2x2 deficient board place the only tromino that works else divide Board into UL, UR, LL, LR boards Properly place a tromino in the center Let [x1,y1], [x2,y2], [x3,y3], [x4,y4] be the coordinates of the missing/covered squares in each of the 4 quadrants Tile(UL, n-1, x1, y1) Tile(UR, n-1, x2, y2) Tile(LL, n-1, x3, y3) Tile(LR, n-1, x4, y4) 1 2 3 4

Copyright and Fair Use Information All materials on these slides are Copyright 2004 by Andre Berthiaume. Permission to make a copy of the entire set of slides or of any part thereof, including posting on personal and class web pages, for educational and scientific use is granted without fee provided that it is not made or distributed for profit or commercial advantage and that the copy include the copyright notice found on the title page. To copy otherwise or to republish requires specific permission from Andre Berthiaume.