SlideShare une entreprise Scribd logo
1  sur  94
Télécharger pour lire hors ligne
Monomino-Domino Tatami
Coverings
Alejandro Erickson
Joint work with Frank Ruskey at The University of Victoria, Canada
December 4, 2013
Durham University, ACiD Seminar
Japanese Tatami mats
Traditional Japanese floor mats made of soft woven
straw.
A 17th Century layout rule:
No four mats may meet.
No four dominoes (mats) may meet
Tatami coverings of rectangles were considered by
Mitsuyoshi Yoshida, and Don Knuth (about 370
years later).
No four dominoes (mats) may meet
Tatami coverings of rectangles were considered by
Mitsuyoshi Yoshida, and Don Knuth (about 370
years later).
No four dominoes (mats) may meet
Tatami coverings of rectangles were considered by
Mitsuyoshi Yoshida, and Don Knuth (about 370
years later).
No four dominoes (mats) may meet
Tatami coverings of rectangles were considered by
Mitsuyoshi Yoshida, and Don Knuth (about 370
years later).
No four dominoes (mats) may meet
Tatami coverings of rectangles were considered by
Mitsuyoshi Yoshida, and Don Knuth (about 370
years later).
No four dominoes (mats) may meet
Tatami coverings of rectangles were considered by
Mitsuyoshi Yoshida, and Don Knuth (about 370
years later).
No four dominoes (mats) may meet
Tatami coverings of rectangles were considered by
Mitsuyoshi Yoshida, and Don Knuth (about 370
years later).
Coverings of the chessboard
There are exactly two
Generalized by Ruskey, Woodcock, 2009, using
Hickerson’s decomposition.
Domino Tatami Covering
Domino Tatami Covering
Domino Tatami Covering
Domino Tatami Covering
Domino Tatami Covering
Domino Tatami Covering
Domino Tatami Covering
Domino Tatami Covering
Domino Tatami Covering
Domino Tatami Covering
Domino Tatami Covering
(Ruskey, 2009)
INPUT: A region, R, with n grid squares.
QUESTION: Can R be tatami covered with
dominoes?
Domino Tatami Covering
(Ruskey, 2009)
INPUT: A region, R, with n grid squares.
QUESTION: Can R be tatami covered with
dominoes?
Is this NP-hard?
Domino Tatami Covering
(Ruskey, 2009)
INPUT: A region, R, with n grid squares.
QUESTION: Can R be tatami covered with
dominoes?
Domino Tatami Covering
(Ruskey, 2009)
INPUT: A region, R, with n grid squares.
QUESTION: Can R be tatami covered with
dominoes?
Domino Tatami Covering
(Ruskey, 2009)
INPUT: A region, R, with n grid squares.
QUESTION: Can R be tatami covered with
dominoes?
Domino Tatami Covering
(Ruskey, 2009)
INPUT: A region, R, with n grid squares.
QUESTION: Can R be tatami covered with
dominoes?
Domino Tatami Covering
(Ruskey, 2009)
INPUT: A region, R, with n grid squares.
QUESTION: Can R be tatami covered with
dominoes?
Domino Tatami Covering
(Ruskey, 2009)
INPUT: A region, R, with n grid squares.
QUESTION: Can R be tatami covered with
dominoes?
Domino Tatami Covering
(Ruskey, 2009)
INPUT: A region, R, with n grid squares.
QUESTION: Can R be tatami covered with
dominoes?
Domino Tatami Covering is polynomial
A domino covering is a
perfect matching in the
underlying graph.
Domino Tatami Covering is polynomial
A domino covering is a
perfect matching in the
underlying graph.
INPUT: A region, R, with n grid squares.
QUESTION: Can R be tatami covered with
dominoes?
Domino Tatami Covering is polynomial
A domino covering is a
perfect matching in the
underlying graph.
INPUT: A region, R, with n grid squares.
QUESTION: Can R be tatami covered with
dominoes?
This can be answered in O(n2
), since the underlying
graph is bipartite.
Tatami coverings as matchings
The tatami restriction is
the additional constraint,
that every 4-cycle contains
a matched edge.
DTC is NP-hard
Domino Tatami Covering
INPUT: A region, R, with n grid squares.
QUESTION: Can R be tatami covered with
dominoes?
Theorem (E., Ruskey, 2013)
Domino Tatami Covering is NP-hard.
Planar 3SAT
Let φ be a 3CNF formula, with variables U, and
clauses C. Let G = (U ∪ C, E), where {u, c} ∈ E
iff one of the literals u or ¯u is in the clause c. The
formula is planar if there exists a planar embedding
of G.
Planar 3SAT is
NP-complete (Licht-
enstein, 1982).
Reduction to Planar 3SAT
Working backwards from the answer...
b
a
d b ∨ ¯d
a ∨ ¯b ∨ c
c¬
∧
∧
∧
¬
¬
¬
¬ ¬
¬ ¬¬
Reduction to Planar 3SAT
Working backwards from the answer...
b
a
d b ∨ ¯d
a ∨ ¯b ∨ c
c
Verify the NOT gate
TF
NOT gate covering can be completed with all
“good” signals, but no “bad” signal.
“good” “bad”
F−→T T−→T
T−→F F−→F
Verify the NOT gate
F−→T T−→F
1
F−→F
1
2
3
5
4
6
7
8
9
T−→T
NOT gate covering can be completed with all
“good” signals, but no “bad” signal.
“good” “bad”
F−→T T−→T
T−→F F−→F
Search for a NOT gate
TF
Search for sub-region, R, of the pink area. If R and
the chessboards can be covered with all “good”
signals, but no “bad” signal, we are done!
“good” “bad”
F−→T T−→T
T−→F F−→F
SAT-solvers
A SAT-solver is software that finds a satisfying
assignment to a Boolean formula, or outputs
UNSATISFIABLE. We used MiniSAT.
SAT-solvers
A SAT-solver is software that finds a satisfying
assignment to a Boolean formula, or outputs
UNSATISFIABLE. We used MiniSAT.
Given an instance of DTC, the corresponding
SAT instance has the edges of the underlying
graph G, as variables. A satisfying assignment
sets matched edges to TRUE and unmatched
edges to FALSE.
SAT-solvers
A SAT-solver is software that finds a satisfying
assignment to a Boolean formula, or outputs
UNSATISFIABLE. We used MiniSAT.
Given an instance of DTC, the corresponding
SAT instance has the edges of the underlying
graph G, as variables. A satisfying assignment
sets matched edges to TRUE and unmatched
edges to FALSE.
Three conditions must be enforced:
SAT-solvers
A SAT-solver is software that finds a satisfying
assignment to a Boolean formula, or outputs
UNSATISFIABLE. We used MiniSAT.
Given an instance of DTC, the corresponding
SAT instance has the edges of the underlying
graph G, as variables. A satisfying assignment
sets matched edges to TRUE and unmatched
edges to FALSE.
Three conditions must be enforced:
1. TRUE edges are not incident.
SAT-solvers
A SAT-solver is software that finds a satisfying
assignment to a Boolean formula, or outputs
UNSATISFIABLE. We used MiniSAT.
Given an instance of DTC, the corresponding
SAT instance has the edges of the underlying
graph G, as variables. A satisfying assignment
sets matched edges to TRUE and unmatched
edges to FALSE.
Three conditions must be enforced:
1. TRUE edges are not incident.
2. An edge at each vertex is TRUE.
SAT-solvers
A SAT-solver is software that finds a satisfying
assignment to a Boolean formula, or outputs
UNSATISFIABLE. We used MiniSAT.
Given an instance of DTC, the corresponding
SAT instance has the edges of the underlying
graph G, as variables. A satisfying assignment
sets matched edges to TRUE and unmatched
edges to FALSE.
Three conditions must be enforced:
1. TRUE edges are not incident.
2. An edge at each vertex is TRUE.
3. An edge of each 4-cycle is TRUE.
SAT-solvers
We can generate, test cover, and forbid regions with
SAT-solvers.4
12
CC#......#CC
CC#......#CC
CC#......#CC
CC#......#CC
2
.A........<>
.V........A.
.A........V.
.V........<>
<>........A.
.A........V.
.V........A.
<>........V.
2
<>........<>
.A........A.
.V........V.
<>........<>
.A........A.
.V........V.
.A........A.
.V........V.
Combine python scripts
with the SAT-solver Min-
iSAT (fast, lightweight,
pre-compiled for my system.)
Gadget Search
request candidate
region, R, from
MiniSAT, satisfying
“good” signals.
MiniSAT to test
each “bad” signal in
R.
if every test
UNSATISFIABLE R
is the answer!
Else, “forbid” R in
next iteration.
Huge search space
CC#....#CC
CC#....#CC
CC#....#CC
CC#..#.#CC
XXX.#..XXX
XXX..#.XXX
CC#.#..XXX
CC#....XXX
CC#....XXX
CC#....XXX
Require and forbid some
grid squares (#, X) to be
in R to reduce number
of disconnected regions.
Search a smaller area.
It worked!
T
T T
Inputs Output
Recall the context
b
a
d b ∨ ¯d
a ∨ ¯b ∨ c
c¬
∧
∧
∧
¬
¬
¬
¬ ¬
¬ ¬¬
Recall the context
b
a
d b ∨ ¯d
a ∨ ¯b ∨ c
c
Verifiable by hand
T
T T
In Out
T
F F
In Out
F
T F
In Out
F
F F
In Out
TT−→T TF−→F FT−→F FF−→F
Verifiable by hand
*
F T
In Out
F
* T
In Out
T
T F
In Out
*F−→T F*−→T TT−→F
Impossible AND gate coverings, where * denotes F
or T.
Testing a clause
T
F
Simply Connected DTC
Is DTC NP-hard even if the region is simply
connected?
The Structure of Tatami Coverings
What are the consequences of this arrangement?
This placement is forced.
And this placement is also forced.
As is this.
And this.
Ditto.
Etc.
Until we reach the boundary.
This a ray. They can go NE, NW, SE, SW.
?
How do rays start? (The question mark.) Not a
vertical domino.
Monomino-Domino Tatami Coverings
Monomino-Domino Tatami Coverings
bidimer
loner
vortex
vee
We can enumerate and generate them!
For example, the number of coverings of the n × n
square with n monominoes is n2n−1
.
We can enumerate and generate them!
For example, the number of coverings of the n × n
square with n monominoes is n2n−1
.
Generating functions
Let Xk be a set of ak combinatorial objects for each
k ≥ 0. The generating function for {Xk}k≥0 is
f (z) = a0z0
+ a1z1
+ a2z2
+ a3z3
+ a4z4
+ . . . .
If ak = 0 for some k ≥ K, then f (z) is a polynomial.
Email from Knuth to Ruskey:
... I looked also at generating functions for the case
m = n, with respect to horizontal versus vertical
dominoes. ... for example when n = 11, the
generating function for tatami tilings with exactly
11 monominoes and 55 dominoes turns out to be
2(1 + z)5
(1 + z2
)2
(1 − z + z2
)(1 + z4
)(1 − z + z2
−
z3
+ z4
)p(z), when subdivided by the number of say
horizontal dominoes, where p(z) is a fairly
random-looking irreducible polynomial of degree 36.
One naturally wonders if there’s a good reason for
so many cyclotomic polynomials in this
factorization. ...
Count n × n coverings with n
monominoes, h horizontal dominoes
A diagonal flip is an operation on coverings which
preserves the tatami restriction, and changes the
orientation of some dominoes.
Count n × n coverings with n
monominoes, h horizontal dominoes
Good: Every covering is obtainable via a
sequence of diagonal flips.
Bad: Conflicting flips complicate enumeration.
Solution: Equivalence classes with independent
flips.
Classes of coverings with independent
diagonal flips
Longest “flipped” diagonal in green.
Flippable diagonals
are independent of
one another.
Classes of coverings with independent
diagonal flips
Longest “flipped” diagonal in green.
Flippable diagonals
are independent of
one another.
Can change s to
s in a predictable
way.
Classes of coverings with independent
diagonal flips
Longest “flipped” diagonal in green.
Flippable diagonals
are independent of
one another.
Can change s to
s in a predictable
way.
Consider k-sum
subsets of multiset
{1, 2, . . . , 9, 1, 2, . . . , 5}
Generating polynomial (E.,Ruskey)
Sn(z) = n
k=1(1 + zk
) “generates” k-sum subsets
of {1, 2, ..., n}. (algebra omitted...) Let
VHn(z) = Pn(z)
j≥1
S n−2
2j
(z)
where Pn(z) is a polynomial. For odd n, the kth
coefficient of VHn(z) is the number of n × n
coverings with n monominoes and h horizontal
dominoes.
Generating polynomial (E.,Ruskey)
Sn(z) = n
k=1(1 + zk
) “generates” k-sum subsets
of {1, 2, ..., n}. (algebra omitted...) Let
VHn(z) = Pn(z)
j≥1
S n−2
2j
(z)
where Pn(z) is a polynomial. For odd n, the kth
coefficient of VHn(z) is the number of n × n
coverings with n monominoes and h horizontal
dominoes.
Cyclotomic polynomial factors:
Sn(z) =
n
j=1
φ
n+j
2j
2j (z)
“... where p(z) is a fairly random-looking irreducible polynomial...”
Not as random as it looks. e.g. complex zeros of
Pn(z). n is odd. Large n plotted with darker, smaller
dots.
“... where p(z) is a fairly random-looking irreducible polynomial...”
Not as random as it looks.
deg(Pn(z)) = n−2
k=1 Od(k), where Od(k) is
the largest odd divisor of k.
“... where p(z) is a fairly random-looking irreducible polynomial...”
Not as random as it looks.
deg(Pn(z)) = n−2
k=1 Od(k), where Od(k) is
the largest odd divisor of k.
Pn(1) = n2ν(n−2)−1
, where ν(k) is the binary
weight of k.
“... where p(z) is a fairly random-looking irreducible polynomial...”
Not as random as it looks.
deg(Pn(z)) = n−2
k=1 Od(k), where Od(k) is
the largest odd divisor of k.
Pn(1) = n2ν(n−2)−1
, where ν(k) is the binary
weight of k.
... etc. But, is Pn(z) irreducible?
“... where p(z) is a fairly random-looking irreducible polynomial...”
Not as random as it looks.
deg(Pn(z)) = n−2
k=1 Od(k), where Od(k) is
the largest odd divisor of k.
Pn(1) = n2ν(n−2)−1
, where ν(k) is the binary
weight of k.
... etc. But, is Pn(z) irreducible?
Can it be computed without dividing
VHn(z) = Pn(z)
j≥1
S n−2
2j
(z).
Open problems
Efficient combinatorial generation
All tatami coverings of the 3 × 4 grid.
Open problems
Efficient combinatorial generation
Generalizations to other tiles
All tatami coverings of the 3 × 4 grid.
Lozenge 5-Tatami Covering
Lozenge 5-Tatami Covering
Is Lozenge 5-Tatami Covering NP-hard?
Tomoku!
INSTANCE: A r × c grid and tiles completely
contained in each row and column.
QUESTION: Is there a tatami covering of this grid
with these row and column projections?
Tomoku!
INSTANCE: A r × c grid and tiles completely
contained in each row and column.
QUESTION: Is there a tatami covering of this grid
with these row and column projections?
Water Strider Problem
Water Strider Problem
Water Strider Problem
INSTANCE: A rectilinear region, R, with n
segments, and vertices in R2
.
QUESTION: Is there a configuration of at most k
water striders, such that no two water
striders intersect, and no more water
striders can be added?
Thank you
Thanks also to Bruce Kapron and Don Knuth. Part
of this research was conducted at the 9th
McGill-INRIA Workshop on Computational
Geometry.
Slides at alejandroerickson.com

Contenu connexe

Similaire à Monomino-Domino Tatami Coverings

TatamiMaker: A Combinatorially Rich Mechanical Game Board
TatamiMaker: A Combinatorially Rich Mechanical Game BoardTatamiMaker: A Combinatorially Rich Mechanical Game Board
TatamiMaker: A Combinatorially Rich Mechanical Game BoardAlejandro Erickson
 
Some history of quantum groups
Some history of quantum groupsSome history of quantum groups
Some history of quantum groupsDaniel Tubbenhauer
 
An FPT Algorithm for Maximum Edge Coloring
An FPT Algorithm for Maximum Edge ColoringAn FPT Algorithm for Maximum Edge Coloring
An FPT Algorithm for Maximum Edge ColoringNeeldhara Misra
 
ACM ICPC 2013 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2013 NEERC (Northeastern European Regional Contest) Problems ReviewACM ICPC 2013 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2013 NEERC (Northeastern European Regional Contest) Problems ReviewRoman Elizarov
 
Generalized CDT as a scaling limit of planar maps
Generalized CDT as a scaling limit of planar mapsGeneralized CDT as a scaling limit of planar maps
Generalized CDT as a scaling limit of planar mapsTimothy Budd
 
Ham Radio Vertical Antennas
Ham Radio Vertical AntennasHam Radio Vertical Antennas
Ham Radio Vertical AntennasLee Jennings
 
Yr7-RoundingApproximation.pptx
Yr7-RoundingApproximation.pptxYr7-RoundingApproximation.pptx
Yr7-RoundingApproximation.pptxEidTahir
 
Connected Dominating Set and Short Cycles
Connected Dominating Set and Short CyclesConnected Dominating Set and Short Cycles
Connected Dominating Set and Short CyclesNeeldhara Misra
 
Skiena algorithm 2007 lecture20 satisfiability
Skiena algorithm 2007 lecture20 satisfiabilitySkiena algorithm 2007 lecture20 satisfiability
Skiena algorithm 2007 lecture20 satisfiabilityzukun
 
The Max Cut Problem
The Max Cut ProblemThe Max Cut Problem
The Max Cut Problemdnatapov
 
Cheat Sheets for Hard Problems
Cheat Sheets for Hard ProblemsCheat Sheets for Hard Problems
Cheat Sheets for Hard ProblemsNeeldhara Misra
 
Digital Roots and Their Properties
Digital Roots and Their PropertiesDigital Roots and Their Properties
Digital Roots and Their PropertiesIOSR Journals
 
How Do I Cassandra?
How Do I Cassandra?How Do I Cassandra?
How Do I Cassandra?Rick Branson
 

Similaire à Monomino-Domino Tatami Coverings (20)

TatamiMaker: A Combinatorially Rich Mechanical Game Board
TatamiMaker: A Combinatorially Rich Mechanical Game BoardTatamiMaker: A Combinatorially Rich Mechanical Game Board
TatamiMaker: A Combinatorially Rich Mechanical Game Board
 
Algorithm Homework Help
Algorithm Homework HelpAlgorithm Homework Help
Algorithm Homework Help
 
Some history of quantum groups
Some history of quantum groupsSome history of quantum groups
Some history of quantum groups
 
An FPT Algorithm for Maximum Edge Coloring
An FPT Algorithm for Maximum Edge ColoringAn FPT Algorithm for Maximum Edge Coloring
An FPT Algorithm for Maximum Edge Coloring
 
ACM ICPC 2013 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2013 NEERC (Northeastern European Regional Contest) Problems ReviewACM ICPC 2013 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2013 NEERC (Northeastern European Regional Contest) Problems Review
 
Algorithm Assignment Help
Algorithm Assignment HelpAlgorithm Assignment Help
Algorithm Assignment Help
 
Generalized CDT as a scaling limit of planar maps
Generalized CDT as a scaling limit of planar mapsGeneralized CDT as a scaling limit of planar maps
Generalized CDT as a scaling limit of planar maps
 
Ham Radio Vertical Antennas
Ham Radio Vertical AntennasHam Radio Vertical Antennas
Ham Radio Vertical Antennas
 
Splay Tree
Splay TreeSplay Tree
Splay Tree
 
Yr7-RoundingApproximation.pptx
Yr7-RoundingApproximation.pptxYr7-RoundingApproximation.pptx
Yr7-RoundingApproximation.pptx
 
Algorithms Exam Help
Algorithms Exam HelpAlgorithms Exam Help
Algorithms Exam Help
 
Connected Dominating Set and Short Cycles
Connected Dominating Set and Short CyclesConnected Dominating Set and Short Cycles
Connected Dominating Set and Short Cycles
 
Skiena algorithm 2007 lecture20 satisfiability
Skiena algorithm 2007 lecture20 satisfiabilitySkiena algorithm 2007 lecture20 satisfiability
Skiena algorithm 2007 lecture20 satisfiability
 
Algorithm Exam Help
Algorithm Exam HelpAlgorithm Exam Help
Algorithm Exam Help
 
NP completeness
NP completenessNP completeness
NP completeness
 
The Max Cut Problem
The Max Cut ProblemThe Max Cut Problem
The Max Cut Problem
 
Diffraction
DiffractionDiffraction
Diffraction
 
Cheat Sheets for Hard Problems
Cheat Sheets for Hard ProblemsCheat Sheets for Hard Problems
Cheat Sheets for Hard Problems
 
Digital Roots and Their Properties
Digital Roots and Their PropertiesDigital Roots and Their Properties
Digital Roots and Their Properties
 
How Do I Cassandra?
How Do I Cassandra?How Do I Cassandra?
How Do I Cassandra?
 

Dernier

Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...anilsa9823
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptxRajatChauhan518211
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisDiwakar Mishra
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bSérgio Sacani
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPirithiRaju
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSarthak Sekhar Mondal
 
fundamental of entomology all in one topics of entomology
fundamental of entomology all in one topics of entomologyfundamental of entomology all in one topics of entomology
fundamental of entomology all in one topics of entomologyDrAnita Sharma
 
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxPhysiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxAArockiyaNisha
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsAArockiyaNisha
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...Sérgio Sacani
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptxanandsmhk
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PPRINCE C P
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRDelhi Call girls
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfmuntazimhurra
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPirithiRaju
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Lokesh Kothari
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)Areesha Ahmad
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfSumit Kumar yadav
 

Dernier (20)

Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptx
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
 
fundamental of entomology all in one topics of entomology
fundamental of entomology all in one topics of entomologyfundamental of entomology all in one topics of entomology
fundamental of entomology all in one topics of entomology
 
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxPhysiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based Nanomaterials
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C P
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
 
The Philosophy of Science
The Philosophy of ScienceThe Philosophy of Science
The Philosophy of Science
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdf
 

Monomino-Domino Tatami Coverings

  • 1. Monomino-Domino Tatami Coverings Alejandro Erickson Joint work with Frank Ruskey at The University of Victoria, Canada December 4, 2013 Durham University, ACiD Seminar
  • 2. Japanese Tatami mats Traditional Japanese floor mats made of soft woven straw. A 17th Century layout rule: No four mats may meet.
  • 3. No four dominoes (mats) may meet Tatami coverings of rectangles were considered by Mitsuyoshi Yoshida, and Don Knuth (about 370 years later).
  • 4. No four dominoes (mats) may meet Tatami coverings of rectangles were considered by Mitsuyoshi Yoshida, and Don Knuth (about 370 years later).
  • 5. No four dominoes (mats) may meet Tatami coverings of rectangles were considered by Mitsuyoshi Yoshida, and Don Knuth (about 370 years later).
  • 6. No four dominoes (mats) may meet Tatami coverings of rectangles were considered by Mitsuyoshi Yoshida, and Don Knuth (about 370 years later).
  • 7. No four dominoes (mats) may meet Tatami coverings of rectangles were considered by Mitsuyoshi Yoshida, and Don Knuth (about 370 years later).
  • 8. No four dominoes (mats) may meet Tatami coverings of rectangles were considered by Mitsuyoshi Yoshida, and Don Knuth (about 370 years later).
  • 9. No four dominoes (mats) may meet Tatami coverings of rectangles were considered by Mitsuyoshi Yoshida, and Don Knuth (about 370 years later).
  • 10. Coverings of the chessboard There are exactly two Generalized by Ruskey, Woodcock, 2009, using Hickerson’s decomposition.
  • 21. Domino Tatami Covering (Ruskey, 2009) INPUT: A region, R, with n grid squares. QUESTION: Can R be tatami covered with dominoes?
  • 22. Domino Tatami Covering (Ruskey, 2009) INPUT: A region, R, with n grid squares. QUESTION: Can R be tatami covered with dominoes? Is this NP-hard?
  • 23. Domino Tatami Covering (Ruskey, 2009) INPUT: A region, R, with n grid squares. QUESTION: Can R be tatami covered with dominoes?
  • 24. Domino Tatami Covering (Ruskey, 2009) INPUT: A region, R, with n grid squares. QUESTION: Can R be tatami covered with dominoes?
  • 25. Domino Tatami Covering (Ruskey, 2009) INPUT: A region, R, with n grid squares. QUESTION: Can R be tatami covered with dominoes?
  • 26. Domino Tatami Covering (Ruskey, 2009) INPUT: A region, R, with n grid squares. QUESTION: Can R be tatami covered with dominoes?
  • 27. Domino Tatami Covering (Ruskey, 2009) INPUT: A region, R, with n grid squares. QUESTION: Can R be tatami covered with dominoes?
  • 28. Domino Tatami Covering (Ruskey, 2009) INPUT: A region, R, with n grid squares. QUESTION: Can R be tatami covered with dominoes?
  • 29. Domino Tatami Covering (Ruskey, 2009) INPUT: A region, R, with n grid squares. QUESTION: Can R be tatami covered with dominoes?
  • 30. Domino Tatami Covering is polynomial A domino covering is a perfect matching in the underlying graph.
  • 31. Domino Tatami Covering is polynomial A domino covering is a perfect matching in the underlying graph. INPUT: A region, R, with n grid squares. QUESTION: Can R be tatami covered with dominoes?
  • 32. Domino Tatami Covering is polynomial A domino covering is a perfect matching in the underlying graph. INPUT: A region, R, with n grid squares. QUESTION: Can R be tatami covered with dominoes? This can be answered in O(n2 ), since the underlying graph is bipartite.
  • 33. Tatami coverings as matchings The tatami restriction is the additional constraint, that every 4-cycle contains a matched edge.
  • 34. DTC is NP-hard Domino Tatami Covering INPUT: A region, R, with n grid squares. QUESTION: Can R be tatami covered with dominoes? Theorem (E., Ruskey, 2013) Domino Tatami Covering is NP-hard.
  • 35. Planar 3SAT Let φ be a 3CNF formula, with variables U, and clauses C. Let G = (U ∪ C, E), where {u, c} ∈ E iff one of the literals u or ¯u is in the clause c. The formula is planar if there exists a planar embedding of G. Planar 3SAT is NP-complete (Licht- enstein, 1982).
  • 36. Reduction to Planar 3SAT Working backwards from the answer... b a d b ∨ ¯d a ∨ ¯b ∨ c c¬ ∧ ∧ ∧ ¬ ¬ ¬ ¬ ¬ ¬ ¬¬
  • 37. Reduction to Planar 3SAT Working backwards from the answer... b a d b ∨ ¯d a ∨ ¯b ∨ c c
  • 38. Verify the NOT gate TF NOT gate covering can be completed with all “good” signals, but no “bad” signal. “good” “bad” F−→T T−→T T−→F F−→F
  • 39. Verify the NOT gate F−→T T−→F 1 F−→F 1 2 3 5 4 6 7 8 9 T−→T NOT gate covering can be completed with all “good” signals, but no “bad” signal. “good” “bad” F−→T T−→T T−→F F−→F
  • 40. Search for a NOT gate TF Search for sub-region, R, of the pink area. If R and the chessboards can be covered with all “good” signals, but no “bad” signal, we are done! “good” “bad” F−→T T−→T T−→F F−→F
  • 41. SAT-solvers A SAT-solver is software that finds a satisfying assignment to a Boolean formula, or outputs UNSATISFIABLE. We used MiniSAT.
  • 42. SAT-solvers A SAT-solver is software that finds a satisfying assignment to a Boolean formula, or outputs UNSATISFIABLE. We used MiniSAT. Given an instance of DTC, the corresponding SAT instance has the edges of the underlying graph G, as variables. A satisfying assignment sets matched edges to TRUE and unmatched edges to FALSE.
  • 43. SAT-solvers A SAT-solver is software that finds a satisfying assignment to a Boolean formula, or outputs UNSATISFIABLE. We used MiniSAT. Given an instance of DTC, the corresponding SAT instance has the edges of the underlying graph G, as variables. A satisfying assignment sets matched edges to TRUE and unmatched edges to FALSE. Three conditions must be enforced:
  • 44. SAT-solvers A SAT-solver is software that finds a satisfying assignment to a Boolean formula, or outputs UNSATISFIABLE. We used MiniSAT. Given an instance of DTC, the corresponding SAT instance has the edges of the underlying graph G, as variables. A satisfying assignment sets matched edges to TRUE and unmatched edges to FALSE. Three conditions must be enforced: 1. TRUE edges are not incident.
  • 45. SAT-solvers A SAT-solver is software that finds a satisfying assignment to a Boolean formula, or outputs UNSATISFIABLE. We used MiniSAT. Given an instance of DTC, the corresponding SAT instance has the edges of the underlying graph G, as variables. A satisfying assignment sets matched edges to TRUE and unmatched edges to FALSE. Three conditions must be enforced: 1. TRUE edges are not incident. 2. An edge at each vertex is TRUE.
  • 46. SAT-solvers A SAT-solver is software that finds a satisfying assignment to a Boolean formula, or outputs UNSATISFIABLE. We used MiniSAT. Given an instance of DTC, the corresponding SAT instance has the edges of the underlying graph G, as variables. A satisfying assignment sets matched edges to TRUE and unmatched edges to FALSE. Three conditions must be enforced: 1. TRUE edges are not incident. 2. An edge at each vertex is TRUE. 3. An edge of each 4-cycle is TRUE.
  • 47. SAT-solvers We can generate, test cover, and forbid regions with SAT-solvers.4 12 CC#......#CC CC#......#CC CC#......#CC CC#......#CC 2 .A........<> .V........A. .A........V. .V........<> <>........A. .A........V. .V........A. <>........V. 2 <>........<> .A........A. .V........V. <>........<> .A........A. .V........V. .A........A. .V........V. Combine python scripts with the SAT-solver Min- iSAT (fast, lightweight, pre-compiled for my system.)
  • 48. Gadget Search request candidate region, R, from MiniSAT, satisfying “good” signals. MiniSAT to test each “bad” signal in R. if every test UNSATISFIABLE R is the answer! Else, “forbid” R in next iteration.
  • 49. Huge search space CC#....#CC CC#....#CC CC#....#CC CC#..#.#CC XXX.#..XXX XXX..#.XXX CC#.#..XXX CC#....XXX CC#....XXX CC#....XXX Require and forbid some grid squares (#, X) to be in R to reduce number of disconnected regions. Search a smaller area.
  • 51. Recall the context b a d b ∨ ¯d a ∨ ¯b ∨ c c¬ ∧ ∧ ∧ ¬ ¬ ¬ ¬ ¬ ¬ ¬¬
  • 52. Recall the context b a d b ∨ ¯d a ∨ ¯b ∨ c c
  • 53. Verifiable by hand T T T In Out T F F In Out F T F In Out F F F In Out TT−→T TF−→F FT−→F FF−→F
  • 54. Verifiable by hand * F T In Out F * T In Out T T F In Out *F−→T F*−→T TT−→F Impossible AND gate coverings, where * denotes F or T.
  • 56. Simply Connected DTC Is DTC NP-hard even if the region is simply connected?
  • 57. The Structure of Tatami Coverings
  • 58. What are the consequences of this arrangement?
  • 59. This placement is forced.
  • 60. And this placement is also forced.
  • 64. Etc.
  • 65. Until we reach the boundary.
  • 66. This a ray. They can go NE, NW, SE, SW.
  • 67. ? How do rays start? (The question mark.) Not a vertical domino.
  • 70. We can enumerate and generate them! For example, the number of coverings of the n × n square with n monominoes is n2n−1 .
  • 71. We can enumerate and generate them! For example, the number of coverings of the n × n square with n monominoes is n2n−1 . Generating functions Let Xk be a set of ak combinatorial objects for each k ≥ 0. The generating function for {Xk}k≥0 is f (z) = a0z0 + a1z1 + a2z2 + a3z3 + a4z4 + . . . . If ak = 0 for some k ≥ K, then f (z) is a polynomial.
  • 72. Email from Knuth to Ruskey: ... I looked also at generating functions for the case m = n, with respect to horizontal versus vertical dominoes. ... for example when n = 11, the generating function for tatami tilings with exactly 11 monominoes and 55 dominoes turns out to be 2(1 + z)5 (1 + z2 )2 (1 − z + z2 )(1 + z4 )(1 − z + z2 − z3 + z4 )p(z), when subdivided by the number of say horizontal dominoes, where p(z) is a fairly random-looking irreducible polynomial of degree 36. One naturally wonders if there’s a good reason for so many cyclotomic polynomials in this factorization. ...
  • 73. Count n × n coverings with n monominoes, h horizontal dominoes A diagonal flip is an operation on coverings which preserves the tatami restriction, and changes the orientation of some dominoes.
  • 74. Count n × n coverings with n monominoes, h horizontal dominoes Good: Every covering is obtainable via a sequence of diagonal flips. Bad: Conflicting flips complicate enumeration. Solution: Equivalence classes with independent flips.
  • 75. Classes of coverings with independent diagonal flips Longest “flipped” diagonal in green. Flippable diagonals are independent of one another.
  • 76. Classes of coverings with independent diagonal flips Longest “flipped” diagonal in green. Flippable diagonals are independent of one another. Can change s to s in a predictable way.
  • 77. Classes of coverings with independent diagonal flips Longest “flipped” diagonal in green. Flippable diagonals are independent of one another. Can change s to s in a predictable way. Consider k-sum subsets of multiset {1, 2, . . . , 9, 1, 2, . . . , 5}
  • 78. Generating polynomial (E.,Ruskey) Sn(z) = n k=1(1 + zk ) “generates” k-sum subsets of {1, 2, ..., n}. (algebra omitted...) Let VHn(z) = Pn(z) j≥1 S n−2 2j (z) where Pn(z) is a polynomial. For odd n, the kth coefficient of VHn(z) is the number of n × n coverings with n monominoes and h horizontal dominoes.
  • 79. Generating polynomial (E.,Ruskey) Sn(z) = n k=1(1 + zk ) “generates” k-sum subsets of {1, 2, ..., n}. (algebra omitted...) Let VHn(z) = Pn(z) j≥1 S n−2 2j (z) where Pn(z) is a polynomial. For odd n, the kth coefficient of VHn(z) is the number of n × n coverings with n monominoes and h horizontal dominoes. Cyclotomic polynomial factors: Sn(z) = n j=1 φ n+j 2j 2j (z)
  • 80. “... where p(z) is a fairly random-looking irreducible polynomial...” Not as random as it looks. e.g. complex zeros of Pn(z). n is odd. Large n plotted with darker, smaller dots.
  • 81. “... where p(z) is a fairly random-looking irreducible polynomial...” Not as random as it looks. deg(Pn(z)) = n−2 k=1 Od(k), where Od(k) is the largest odd divisor of k.
  • 82. “... where p(z) is a fairly random-looking irreducible polynomial...” Not as random as it looks. deg(Pn(z)) = n−2 k=1 Od(k), where Od(k) is the largest odd divisor of k. Pn(1) = n2ν(n−2)−1 , where ν(k) is the binary weight of k.
  • 83. “... where p(z) is a fairly random-looking irreducible polynomial...” Not as random as it looks. deg(Pn(z)) = n−2 k=1 Od(k), where Od(k) is the largest odd divisor of k. Pn(1) = n2ν(n−2)−1 , where ν(k) is the binary weight of k. ... etc. But, is Pn(z) irreducible?
  • 84. “... where p(z) is a fairly random-looking irreducible polynomial...” Not as random as it looks. deg(Pn(z)) = n−2 k=1 Od(k), where Od(k) is the largest odd divisor of k. Pn(1) = n2ν(n−2)−1 , where ν(k) is the binary weight of k. ... etc. But, is Pn(z) irreducible? Can it be computed without dividing VHn(z) = Pn(z) j≥1 S n−2 2j (z).
  • 85. Open problems Efficient combinatorial generation All tatami coverings of the 3 × 4 grid.
  • 86. Open problems Efficient combinatorial generation Generalizations to other tiles All tatami coverings of the 3 × 4 grid.
  • 88. Lozenge 5-Tatami Covering Is Lozenge 5-Tatami Covering NP-hard?
  • 89. Tomoku! INSTANCE: A r × c grid and tiles completely contained in each row and column. QUESTION: Is there a tatami covering of this grid with these row and column projections?
  • 90. Tomoku! INSTANCE: A r × c grid and tiles completely contained in each row and column. QUESTION: Is there a tatami covering of this grid with these row and column projections?
  • 93. Water Strider Problem INSTANCE: A rectilinear region, R, with n segments, and vertices in R2 . QUESTION: Is there a configuration of at most k water striders, such that no two water striders intersect, and no more water striders can be added?
  • 94. Thank you Thanks also to Bruce Kapron and Don Knuth. Part of this research was conducted at the 9th McGill-INRIA Workshop on Computational Geometry. Slides at alejandroerickson.com