• Aucun résultat trouvé

Tile Packing Tomography is NP-hard

N/A
N/A
Protected

Academic year: 2022

Partager "Tile Packing Tomography is NP-hard"

Copied!
17
0
0

Texte intégral

(1)

Tile Packing Tomography is NP-hard

Cocoon 2010

Marek Chrobak Riverside

Flavio Guíñez Vancouver

Antoni Lozano Barcelona

Nguyn Kim Thng Aarhus

Christoph Dürr Palaiseau

(2)

• disjoint copies of the same shape

• same orientation

Tables in an open space office

(3)

Non-intrusive measurement

• the office is an n×m grid

• tables are aligned on the grid

• Measurement results in projection vectors r,s

• such that ri is the

number of grid cells of row i covered by a table (tile)

2 2 6 2 6 2 4 2 4 6 4 93

62 93

r

s

(4)

r

Equivalent measurement

• alternative

measurement

(equivalent up to base change) :

• mark a cell in the tile

• projections count only marks

0 0 1 1 2 0 00

31 00 0

1 1 1

1 1

1

1 1

2 0 2 0 2 0 0 2 2 0 0 30

20 30 2

1

0 0 1 0 0 0 00

10 00 0

equiv.

s

(5)

The tiling reconstruction pb

• A tile is a connected set of grid points

• Given a tile T, dimensions n,m and projections r, s

• does there exist a binary matrix M

• with ri=∑j Mij, sj=∑i Mij

• and for Mij=1, Mi’j’=1, the tiles T+

(i,j) and T+(i’,j’) are disjoint ?

r

1 1 0 1 0 0 2 0 0 0 0 20

10 20 0

s

1

(6)

The tiling reconstruction pb

• A tile is a connected set of grid points

• Given a tile T, dimensions n,m and projections r, s

• does there exist a binary matrix M

• with ri=∑j Mij, sj=∑i Mij

• and for Mij=1, Mi’j’=1, the tiles T+

(i,j) and T+(i’,j’) are disjoint ?

r

1 1 0 1 0 0 2 0 0 0 0 20

10 20 0

s

1

1 1

1 1

1

(7)

The tiling reconstruction pb

• A tile is a connected set of grid points

• Given a tile T, dimensions n,m and projections r, s

• does there exist a binary matrix M

• with ri=∑j Mij, sj=∑i Mij

• and for Mij=1, Mi’j’=1, the tiles T+

(i,j) and T+(i’,j’) are disjoint ?

r

1 1 0 1 0 0 2 0 0 0 0 20

10 20 0

s

1

1 1

1 1

1

(8)

Complexity depends on T

• When the tile T is a bar, the problem is

polynomial

• [this paper] When the tile T is not a bar, the problem is NP-hard

[Ryser’63] Characterize r,c such that there is a binary matrix with projections r,c

[Picouleau’01]

[D,Goles,Rapaport,Rémil a’03] greedy algorithm to reconstruct tilings with bars

[Chrobak,Couperous,D, Woeginger’03]

NP-hardness for some very specific tiles

(9)

Related : 3-color tomography

3 colors {R,G,B}

given projections rc,sc for every c{R,G,B}

is there a matrix M∈{R,G,B}n×m

such that rci=#{j:Mij=c}

and scj=#{i:Mij=c}

for every c∈{R,G,B}

[D,Guíñez,Matamala’09]

1 0 1 0 0 3

3 2 1 1

1 2 3

1 1 2 2 1

=s

G

=s

B

r

B

r

G

1 2 1 0 1

1 2 1 1

r

R

=s

R

(10)

• Reduce from 3-color tomography to tiling tomography

• Choose a block of fixed dimension k×l

• Choose 3 tilings of the block

1 1 0 1

1 0 0

s

G

2 0 0 1

0 1 0

s

B

r

B

r

G

1 0 0 1

0 0 0

s

R

r

R

Reduction from 3-color tomography

(11)

[in] instance rc,sc (c∈

{R,G,B}) of the 3-color

tomography problem for an n×m grid

[out] instance r,s of the

tiling tomography problem for an nk×ml grid

such that projections of block row i are

riR·rR+riG·rG+riY·rY (same for columns)

1 01 11 0

1 0 1 0 1 1

RG B

3 0 0 2 1 0 2

0 1 0 2 1

Reduction from 3-color tomography

(12)

Requirements

• (R1) the row projections rR, rG, rY have to be affine linear independent

• (R2) Let M be a solution to the tiling tomography

instance obtained by the reduction. Then every block in M is one of MR,MG, MY (or projection-equivalent)

1 1 0 1

0 1 0

1 1 0 1

0 1 0

projection equivalent

(13)

Implications

• (R2) ⇒ we can associate a color to every block in M

• and replace every block by a single colored cell

(contract)

• (R1) ⇒ the obtained grid

has the required projections, since any vector

nR·rR+nG·rG+nY·rY for nR+nG+nY=n

3 0 0 2 1 0 2

0 1 0 2 1

1 01 11 0

1 0 1 0 1 1

RG B

(14)

Apply this technique

We divide the tiles into four classes

and have a different construction for every class

Fix a maximal conflicting vector (p,q)

Choose smallest a>0 such that (ap,0) is not conflicting

Choose smallest b>0 such that (0,bq) is not conflicting

Cases are broken according to a,b,p,q

(p,q)=(1,3)

a=3

b=1

(15)

Example case b=1, a≥2

• We choose k,l large enough

• block tilings are as depicted, (R1) ok

MR

MG

MB

0 q 2q

0p

ap

(16)

Proving (R2)

• We have to show

(R2) Let M be a solution to the tiling tomography instance obtained by the reduction. Then every block in M is one of MR,MG, MY (or projection-equivalent)

• There might be another block tiling in the solution, namely

MA

• It counts like

MR

in the column

projections and like

MG

in the row projections

• Since total row projections equal total column projections this is

MR

MG

MA

(17)

Perspectives

• What about approximation algorithms?

• What about complete tilings, for a constant number of

tiles?

Références

Documents relatifs

Two-year follow-up of amyloid deposition in patients with Alzheimer's disease. Alzheimer's drugs take a

Given a parallelized loop nest, we determine which parallel loops should be distributed to processors, and the best alignment and distribution of arrays to minimize

Following the spatial arrangement of variable and clause elements (see Figure 5), and the rules defined for the connections of negative and positive instances of variables

Definition 1 We call v-gadgets, c-gadgets and l-gadgets the digital objects encoding respectively variables, clauses and literals of a 3-SAT expression.. a b

Les résultats préliminaires obtenus dans cette série concernant les patients ayant bénéficié de prothèses totales du genou à plateau mobiles sont favorables comme le montre le

By lemma 6, we constructed a polynomial reduction of 3-SAT to Less than k-edge- colored maximum matching on a tree. Since 3-SAT is NP-hard (since it is NP-C), Less than

Balls with a thick border belong to any minimum covering; any two circled points cannot be covered by a single ball. Note that this object and its decomposition are invariant

Centre de recherche INRIA Paris – Rocquencourt : Domaine de Voluceau - Rocquencourt - BP 105 - 78153 Le Chesnay Cedex Centre de recherche INRIA Rennes – Bretagne Atlantique :