Knight’s Circuit. Problem To find a Knight’s circuit of a chess board. Can we visit every square of a chessboard, once and only once, and return to the.

Slides:



Advertisements
Similar presentations
Annotation of Student Work
Advertisements

CSNB143 – Discrete Structure
BackTracking Algorithms
The Mathematics of Chessboard Puzzles. The Closed Knight’s Tour.
How many squares are there on a chess board?
The N-Queens Problem lab01.
Chapter 7 Multidimensional Arrays. Defining a two dimensional array elementType[][] arrayName; // Java pro elementType arrayName[][]; // C++ alternate.
Problem of the Day Problem of the Day next Geometry - Connect the Dots
1 Section 1.7 Set Operations. 2 Union The union of 2 sets A and B is the set containing elements found either in A, or in B, or in both The denotation.
An Euler Circuit is a cycle of an undirected graph, that traverses every edge of the graph exactly once, and ends at the same node from which it began.
Backtracking.
Created by Nancy Otto Copyright © All Rights Reserved. P R E V I E W.
Invariant Method
Solving Systems of Equations by matrices
Matrix Representations of Knot and Link Groups Jess May 2006 Knot Theory Knot Theory is the study of mathematical knots. A knot is a simple closed polygonal.
Finding position-to-term rules Find position-to-term rules for these sequences:
Equations of straight lines
CS1Q Computer Systems Lecture 8
Copyright © Zeph Grunschlag, More on Graphs.
HISTORY The problem was originally proposed in 1848 by the chess player Max Bezzel, and over the years, many mathematicians, including Gauss have worked.
Chapter 4 – Matrix CSNB 143 Discrete Mathematical Structures.
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
CS1Q Computer Systems Lecture 7
Periodic Table A table of chemical elements arranged in order of atomic number.
September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins.
The Dominating Set and its Parametric Dual  the Dominated Set  Lan Lin prepared for theory group meeting on June 11, 2003.
Sets and Set Notation What are sets? A set is a collection of things. The "things" in the set are called the "elements”. A set is represented by listing.
CanaDAM 2013 Memorial University St, John’s Newfoundland Just how are the Clar and Fries structures of a fullerene related? Jack Graver Syracuse University.
Every chess master was once a beginner. Irving Chernev
 Quotient graph  Definition 13: Suppose G(V,E) is a graph and R is a equivalence relation on the set V. We construct the quotient graph G R in the follow.
CS 100Lecture 171 CS100A Lecture 17 n Previous Lecture –Programming concepts n Two-dimensional arrays –Java Constructs n Constructors for two-dimensional.
Chapter 8: Relations. 8.1 Relations and Their Properties Binary relations: Let A and B be any two sets. A binary relation R from A to B, written R : A.
Arrays.
OBJECTIVES: Represent vectors as directed line segments Write the component forms of vectors Perform basic vector operations and represent them graphically.
Chapter 9: Graphs.
 2004 SDU 1 Lecture5-Strongly Connected Components.
(CSC 102) Lecture 30 Discrete Structures. Graphs.
Graphing Rational Functions Day 3. Graph with 2 Vertical Asymptotes Step 1Factor:
Euler's Family of Dice Derived Game Graphical Illustration Kim Ho Cheung 05/29/2006.
CSG3F3/ Desain dan Analisis Algoritma
Hamiltonian Graphs Graphs Hubert Chan (Chapter 9.5)
Straight Line Graph.
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
TRANSFORMATIONS by Rose
Linear Equation in Two Variables
Unit Vectors AP Physics.
Graphs Hubert Chan (Chapter 9) [O1 Abstract Concepts]
Bipartite Matching Lecture 8: Oct 7.
Hamiltonian Graphs Graphs Hubert Chan (Chapter 9.5)
How To Play Chess (And other Information)
Determining the horizontal and vertical trace of the line
Back Tracking.
A movement of a figure in a plane.
Fractions 1/2 1/8 1/3 6/8 3/4.
CS100: Discrete structures
KS4 Mathematics Linear Graphs.
Kevin Mason Michael Suggs
Graph Transformations
CS100J Lecture 18 Previous Lecture Programming concepts This Lecture
KS3 Mathematics A5 Functions and graphs
Presented By: David Miller
Using Slope Intercept Form to Graph Day 2
CS100J Lecture 18 Previous Lecture Programming concepts This Lecture
REFLECTIONS AND SYMMETRY
Coordinate Shirley Sides
Using Slope Intercept Form to Graph Day 2
A8 Linear and real-life graphs
7.1 Rigid Motion in a Plane.
Shapes.
Simplifying Expressions
Presentation transcript:

Knight’s Circuit

Problem To find a Knight’s circuit of a chess board. Can we visit every square of a chessboard, once and only once, and return to the starting square.

Systematic Search We could write a brute force search program (e.g. in Java) 64 squares. From each position 2, 4, 6, 8 or 16 moves!!! Explosion and implosion of choice of moves.

Invent a new problem Allow any moves This problem is trivial Lets consider restrictive moves.

Horizontal and Vertical Lets consider once square. Horizontal or vertical. Call these straight moves. Can we find a solution. Do this as an exercise.

8x8 Or arbitrary board EX 8.1 What size boards can we cover with straight moves. What are the base case and inductive case? See diagram 8.3

8.2 Supersquares Imagine dividing into 2 by 2 squares – 8.6 Knight moves are either straight or diagonal. Straight moves are either vertical or horizontal to a Supersquare. Diagonal moves are not straight.

Crucial observation Observe vertical moves and horizontal moves. Vertical moves flip around vertical axis, Horizontal moves flip around horizontal axis.

Notation Denote v, the operation of flipping around vertical axis. Denote h, the operation of flipping around horizontal axis. ; is used to separate actions. e.g. v;h means??? Does v;h = h;v Both are equivalent to c, rotating thru 180 degrees. There is a 4 th operations n do nothing. (n = no change) SO v;v = h;h = c;c = n;n This allows us to simplify a sequence of actions to one action. Do e.g. 124 on board In words…

Exercise 8.6 Construct a 4 by 4 table showing the single operation of each of the rows and cols

Partitioning the board Suppose a square is labelled n. Other squares can also be labelled. All squares are labelled into disjoint sets Two squares having the same colour, means they can be reached from each other by straight Knight moves. Two squares of different colour cannot be reached from each other by straight moves. We can construct straight moves for each of the colours We have 4 disjoint circuits. These need to be combined into one circuit.

Combining circuits To combine 4 circuits, combine a pair, then combine another pair. Combine red and blue Combine green and yellow Combine red-blue and green-yellow 8.12