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
 
Joint Repairs for Web Wrappers
Joint Repairs for Web WrappersJoint Repairs for Web Wrappers
Joint Repairs for Web WrappersGiorgio Orsi
 
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
 

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
 
Joint Repairs for Web Wrappers
Joint Repairs for Web WrappersJoint Repairs for Web Wrappers
Joint Repairs for Web Wrappers
 
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
 

Dernier

GenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxGenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxBerniceCayabyab1
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxmalonesandreagweneth
 
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...Universidade Federal de Sergipe - UFS
 
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.PraveenaKalaiselvan1
 
Davis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologyDavis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologycaarthichand2003
 
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In DubaiDubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubaikojalkojal131
 
Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxpriyankatabhane
 
《Queensland毕业文凭-昆士兰大学毕业证成绩单》
《Queensland毕业文凭-昆士兰大学毕业证成绩单》《Queensland毕业文凭-昆士兰大学毕业证成绩单》
《Queensland毕业文凭-昆士兰大学毕业证成绩单》rnrncn29
 
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)riyaescorts54
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPirithiRaju
 
Pests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdfPests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdfPirithiRaju
 
User Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationUser Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationColumbia Weather Systems
 
User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)Columbia Weather Systems
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxMurugaveni B
 
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...lizamodels9
 
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...Universidade Federal de Sergipe - UFS
 
Functional group interconversions(oxidation reduction)
Functional group interconversions(oxidation reduction)Functional group interconversions(oxidation reduction)
Functional group interconversions(oxidation reduction)itwameryclare
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentationtahreemzahra82
 
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...D. B. S. College Kanpur
 

Dernier (20)

GenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxGenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptx
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
 
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
 
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
 
Davis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologyDavis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technology
 
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In DubaiDubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
Dubai Calls Girl Lisa O525547819 Lexi Call Girls In Dubai
 
Speech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptxSpeech, hearing, noise, intelligibility.pptx
Speech, hearing, noise, intelligibility.pptx
 
《Queensland毕业文凭-昆士兰大学毕业证成绩单》
《Queensland毕业文凭-昆士兰大学毕业证成绩单》《Queensland毕业文凭-昆士兰大学毕业证成绩单》
《Queensland毕业文凭-昆士兰大学毕业证成绩单》
 
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdf
 
Pests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdfPests of jatropha_Bionomics_identification_Dr.UPR.pdf
Pests of jatropha_Bionomics_identification_Dr.UPR.pdf
 
User Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationUser Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather Station
 
User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
 
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
Best Call Girls In Sector 29 Gurgaon❤️8860477959 EscorTs Service In 24/7 Delh...
 
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
 
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
REVISTA DE BIOLOGIA E CIÊNCIAS DA TERRA ISSN 1519-5228 - Artigo_Bioterra_V24_...
 
Functional group interconversions(oxidation reduction)
Functional group interconversions(oxidation reduction)Functional group interconversions(oxidation reduction)
Functional group interconversions(oxidation reduction)
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentation
 
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
Fertilization: Sperm and the egg—collectively called the gametes—fuse togethe...
 

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