Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: - - PowerPoint PPT Presentation

finding hamiltonian cycle in graphs of bounded
SMART_READER_LITE
LIVE PREVIEW

Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: - - PowerPoint PPT Presentation

Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation 1 Marcin Pilipczuk, Micha l Ziobro March 12, 2019 1 Supported by the Recent trends in kernelization: theory and experimental evaluation project, carried


slide-1
SLIDE 1

Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation1

Marcin Pilipczuk, Micha l Ziobro March 12, 2019

1Supported by the “Recent trends in kernelization: theory and experimental

evaluation” project, carried out within the Homing programme of the Foundation for Polish Science co-financed by the European Union under the European Regional Development Fund.

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-2
SLIDE 2

Separator

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-3
SLIDE 3

Separator

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-4
SLIDE 4

Separator

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-5
SLIDE 5

Separator

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-6
SLIDE 6

Separator

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-7
SLIDE 7

Separator

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-8
SLIDE 8

Fingerprints

1 1 1 1 1 1 2 2 1 1 2 2

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-9
SLIDE 9

Fingerprints

1 1 1 1 1 1 2 2 1 1 2 2 2 2 1 1 1 1 2 2 1 1 1 1 2 2

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-10
SLIDE 10

Fingerprints

1 1 1 1 1 1 2 2 1 1 2 2 2 2 1 1 1 1 2 2 1 1 1 1 2 2 same vertex degrees ⇒ one class

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-11
SLIDE 11

Fingerprints

1 1 1 1 1 1 2 2 1 1 2 2 2 2 1 1 1 1 2 2 1 1 1 1 2 2 same vertex degrees ⇒ one class k vertices of degree 1 ⇒ k!! possible fingerprints

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-12
SLIDE 12

Naive algorithm

tree decomposition — set of separators covering whole graph treewidth — size of largest separator in the tree decomposition (one with the smallest largest separator)

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-13
SLIDE 13

Naive algorithm

tree decomposition — set of separators covering whole graph treewidth — size of largest separator in the tree decomposition (one with the smallest largest separator) Basic idea: fingerprint set for trivial separator fingerprint set for S′ ∼ S ⇒ fingerprint set for S

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-14
SLIDE 14

Naive algorithm

tree decomposition — set of separators covering whole graph treewidth — size of largest separator in the tree decomposition (one with the smallest largest separator) Basic idea: fingerprint set for trivial separator fingerprint set for S′ ∼ S ⇒ fingerprint set for S FPT dynamic algorithm with running time 2O(t ln t)O(nc), where t = treewidth

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-15
SLIDE 15

Representative sets

class — tuple of degrees of vertices, ∈ {0, 1, 2}S fingerprint — a class plus a matching on deg-1 vtcs number of classes is small (3t)

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-16
SLIDE 16

Representative sets

class — tuple of degrees of vertices, ∈ {0, 1, 2}S fingerprint — a class plus a matching on deg-1 vtcs number of classes is small (3t) bottleneck - size of a class (k!!)

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-17
SLIDE 17

Representative sets

class — tuple of degrees of vertices, ∈ {0, 1, 2}S fingerprint — a class plus a matching on deg-1 vtcs number of classes is small (3t) bottleneck - size of a class (k!!) representative set F ′ of F : f ∈ F fits g ⇒ ∃f ′∈F ′f ′ fits g

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-18
SLIDE 18

Representative sets

class — tuple of degrees of vertices, ∈ {0, 1, 2}S fingerprint — a class plus a matching on deg-1 vtcs number of classes is small (3t) bottleneck - size of a class (k!!) representative set F ′ of F : f ∈ F fits g ⇒ ∃f ′∈F ′f ′ fits g 1 1 1 1 1 1 2 2 1 1 2 2 2 2 1 1 1 1 2 2 1 1 1 1 2 2

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-19
SLIDE 19

Representative sets

class — tuple of degrees of vertices, ∈ {0, 1, 2}S fingerprint — a class plus a matching on deg-1 vtcs number of classes is small (3t) bottleneck - size of a class (k!!) representative set F ′ of F : f ∈ F fits g ⇒ ∃f ′∈F ′f ′ fits g 2k−1 (Bodleander et al., 2012) 2k/2−1 (Cygan et al., 2013)

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-20
SLIDE 20

Representative sets

class — tuple of degrees of vertices, ∈ {0, 1, 2}S fingerprint — a class plus a matching on deg-1 vtcs number of classes is small (3t) bottleneck - size of a class (k!!) representative set F ′ of F : f ∈ F fits g ⇒ ∃f ′∈F ′f ′ fits g 2k−1 (Bodleander et al., 2012) 2k/2−1 (Cygan et al., 2013) both are rank-based approaches ⇒ size of representative set bounded by rank of certain matrix

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-21
SLIDE 21

Representative sets

class — tuple of degrees of vertices, ∈ {0, 1, 2}S fingerprint — a class plus a matching on deg-1 vtcs number of classes is small (3t) bottleneck - size of a class (k!!) representative set F ′ of F : f ∈ F fits g ⇒ ∃f ′∈F ′f ′ fits g 2k−1 (Bodleander et al., 2012) (rank-based 1) 2k/2−1 (Cygan et al., 2013) (rank-based 2) both are rank-based approaches ⇒ size of representative set bounded by rank of certain matrix

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-22
SLIDE 22

Cut-and-count approach

randomized algebraic theoretically fastest

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-23
SLIDE 23

Cut-and-count approach

randomized algebraic theoretically fastest Evaluation of a poly over large field of characteristic 2:

  • (R,B)∈C
  • e∈R∪B

xe

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-24
SLIDE 24

Cut-and-count approach

randomized algebraic theoretically fastest Evaluation of a poly over large field of characteristic 2:

  • (R,B)∈C
  • e∈R∪B

xe 1 2 1 2 1 1 1

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-25
SLIDE 25

Cut-and-count approach

1 2 1 2 1 1 1 4t states, deg-1 vertices red or blue,

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-26
SLIDE 26

Cut-and-count approach

1 2 1 2 1 1 1 4t states, deg-1 vertices red or blue, evaluate some polynomial over GF(2s),

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-27
SLIDE 27

Cut-and-count approach

1 2 1 2 1 1 1 4t states, deg-1 vertices red or blue, evaluate some polynomial over GF(2s), monomials from non-solutions cancel out, from solutions stay,

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-28
SLIDE 28

Cut-and-count approach

1 2 1 2 1 1 1 4t states, deg-1 vertices red or blue, evaluate some polynomial over GF(2s), monomials from non-solutions cancel out, from solutions stay, Schwarz-Zippel: random values, from GF(264),

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-29
SLIDE 29

Cut-and-count approach

1 2 1 2 1 1 1 4t states, deg-1 vertices red or blue, evaluate some polynomial over GF(2s), monomials from non-solutions cancel out, from solutions stay, Schwarz-Zippel: random values, from GF(264), naive join nodes: 9t,

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-30
SLIDE 30

Cut-and-count approach

1 2 1 2 1 1 1 4t states, deg-1 vertices red or blue, evaluate some polynomial over GF(2s), monomials from non-solutions cancel out, from solutions stay, Schwarz-Zippel: random values, from GF(264), naive join nodes: 9t, transform at join nodes: 4t, but problems with GF(264).

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-31
SLIDE 31

Data sets

FHCP Challenge - 1001 instances

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-32
SLIDE 32

Data sets

FHCP Challenge - 1001 instances 623 instances with treewidth below 10 (fill-in heuristic)

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-33
SLIDE 33

Data sets

FHCP Challenge - 1001 instances 623 instances with treewidth below 10 (fill-in heuristic) 19 instances with treewidth between 17 and 29 (heuristic by Ben Strasser, 2nd place on PACE 2017)

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-34
SLIDE 34

Data sets

FHCP Challenge - 1001 instances 623 instances with treewidth below 10 (fill-in heuristic) 19 instances with treewidth between 17 and 29 (heuristic by Ben Strasser, 2nd place on PACE 2017) A - instances with small treewidth from FHCP Challenge B - randomly sampled subset of A (for adjusting hyperparameters)

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-35
SLIDE 35

Data sets

FHCP Challenge - 1001 instances 623 instances with treewidth below 10 (fill-in heuristic) 19 instances with treewidth between 17 and 29 (heuristic by Ben Strasser, 2nd place on PACE 2017) A - instances with small treewidth from FHCP Challenge B - randomly sampled subset of A (for adjusting hyperparameters) C - instances with treewidth between 17 and 29 from FHCP Challenge D - subset of C which were solved by at least one of our algorithms (for adjusting hyperparameters) E - our few random instances

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-36
SLIDE 36

Small treewidth results

1st rank-based: 18.59% times slower than naive, 2nd rank-based: 10.97% faster, cut-and-count: solved 499 from 623 instances (TL: 600s) test |V | tw naive rank-based 1 rank-based 2 c&c 0556 3274 9 20.655 27.794 28.024 128.231 0728 4170 9 30.861 38.578 38.823 279.871 0947 6598 9 128.733 143.144 142.427 467.181 0584 3411 9 105.371 114.240 73.291

  • 0746

4286 9 631.261 619.601 381.351

  • 0778

4561 8 17.468 16.974 13.069

  • 0950

6620 9 196.572 206.482 124.641

  • Marcin Pilipczuk, Micha

l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-37
SLIDE 37

Large treewidth results

test |V | tw naive rank-based 1 rank-based 2 c&c 0074 462 28 38.737 109.655 110.040

  • 0253

1578 29 93.343 167.458 167.440

  • 0268

1644 25 36.449 70.157 69.111

  • 0272

1662 25 554.271 1260.329 1230.722

  • 0298

1806 23 10.035 18.611 18.492

  • 0172

1002 25 1.156 1.298 .554

  • 0199

1200 25 13.513 15.419 3.369

  • E0002

600 18 204.197

  • 28.882
  • E0003

700 20

  • 711.778
  • E0007

360 15 1575.475

  • 328.191
  • Marcin Pilipczuk, Micha

l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-38
SLIDE 38

Conclusions

Even on tests with small treewidth rank-based approach can help, but please use 2nd rank-based approach.

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-39
SLIDE 39

Conclusions

Even on tests with small treewidth rank-based approach can help, but please use 2nd rank-based approach. For sparse graphs with a large treewidth a cost of dividing fingerprints into families is often greater than gain from reducing number of them.

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-40
SLIDE 40

Conclusions

Even on tests with small treewidth rank-based approach can help, but please use 2nd rank-based approach. For sparse graphs with a large treewidth a cost of dividing fingerprints into families is often greater than gain from reducing number of them. Cut-and-count approach is impractical.

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation

slide-41
SLIDE 41

Conclusions

Even on tests with small treewidth rank-based approach can help, but please use 2nd rank-based approach. For sparse graphs with a large treewidth a cost of dividing fingerprints into families is often greater than gain from reducing number of them. Cut-and-count approach is impractical. Conjecture: reducing only classes with 4 vertices of degree

  • ne may be the best.

Marcin Pilipczuk, Micha l Ziobro Finding Hamiltonian Cycle in Graphs of Bounded Treewidth: Experimental Evaluation