Directed Hamiltonicity parameterized by the largest independent set - - PowerPoint PPT Presentation

directed hamiltonicity parameterized by the largest
SMART_READER_LITE
LIVE PREVIEW

Directed Hamiltonicity parameterized by the largest independent set - - PowerPoint PPT Presentation

Directed Hamiltonicity parameterized by the largest independent set Andreas Bjrklund, Petteri Kaski, and Yiannis Koutis A directed graph A Hamiltonian cycle Known Hamiltonicity detection results NP-hard! Undirected Hamiltonicity can be


slide-1
SLIDE 1

Directed Hamiltonicity parameterized by the largest independent set

Andreas Björklund, Petteri Kaski, and Yiannis Koutis

slide-2
SLIDE 2

A directed graph

slide-3
SLIDE 3

A Hamiltonian cycle

slide-4
SLIDE 4

Undirected Hamiltonicity can be decided in O(1.657n) time, and O(1.415n) in bipartite graphs, both in polynomial space [B14]. Directed Hamiltonicity in bipartite graphs can be decided in O(1.888n) time using exponential space [CKN13].

Known Hamiltonicity detection results

NP-hard!

slide-5
SLIDE 5

(For comparison, the parity of the number of Hamiltonian cycles can be decided in O(1.619n) time [BH13].)

Open problem

Can directed Hamiltonicity be decided in O(cn) time for some c<2?


slide-6
SLIDE 6

Directed Hamiltonicity can be decided in O(3n-mis(G)) time and polynomial space, where mis(G) is the size of the largest independent set in G. In particular, for bipartite directed graphs we get O(1.733n) time.

Our result

We will only show the bipartite case in this presentation.

slide-7
SLIDE 7

More than just a shaving from O(1.888n) to O(1.733n): The first O(cn) time algorithm for c<2 using only polynomial space. Allows efficient parallel computation. Smooth parameterization “immediately above” the bipartite case.

Why care about an incremental result?

slide-8
SLIDE 8

Max Cut in O(2⍵n/3) time [W04]. Uses O(2

2n/3) space.

Can be reduced to O(2

n/3) [BK16]. No known

polynomial space faster than O(2

n).

Chromatic number in O(2

n) time [BHK08]. Uses O(2 n)

  • space. Can be reduced to O(1.3

n) [BHKK11

]. No known polynomial space faster than O(2.2

n).

Subset sum in O(2

n/2) time [HS74]. Uses O(2 n/2) space.

Can be reduced to O(2

n/ 4) space [SS79]. Was no known

polynomial space faster than O(2

n), now there is: 


Recall Jesper’s talk!

Examples of speedups based on tabulation

Space matters

slide-9
SLIDE 9

Algebraic fingerprinting: Construct a polynomial that is not identically zero whenever there is a Hamiltonian cycle. Characteristic two: Use the field GF(2

k) so that an even

counting of any arc subsets not representing Hamiltonian cycles will cancel. Determinants: Use the facts that a determinant counts matchings over a characteristic two field and that determinants are polynomial time computable. Inclusion—exclusion: Sum over all subsets to sieve for set covers.

Key ideas in the new algorithm

Familiar

slide-10
SLIDE 10

Label arcs by any of their endpoints: Every arc will be thought of as either belonging to its origin or its target. Determinant matrix embedding: Use a new interpretation of the rows and column of the matrix. Each row represents a vertex *and* an orientation, either incoming or

  • utgoing arcs. Columns represent labels.

Key ideas in the new algorithm

Novel?

slide-11
SLIDE 11

The basic case: a bipartite graph

slide-12
SLIDE 12

A special vertex

s

slide-13
SLIDE 13

A selected arc is labeled by one of its two endpoint

either

  • r

Arc is associated with its origin Arc is associated with its target

Notation:

slide-14
SLIDE 14

We will count arc labeled cycle covers, i.e. subsets of arcs labeled by vertices such that: Every vertex has precisely one incoming and one outgoing arc. Every vertex is the label of exactly one arc. The special vertex is always a label of an

  • utgoing arc.

Counting arc labeled cycle cover

slide-15
SLIDE 15

An arc labeled cycle cover

s

slide-16
SLIDE 16

Hamiltonian cycles can be labeled only in one way

s

s forces a label orientation!

slide-17
SLIDE 17

Non-Hamiltonian cycle covers can be labeled in an even number of ways

s s

Any cycle not through s has two label association orientations.

Origin labeled Target labeled

slide-18
SLIDE 18

Call the blue vertices B. For every arc (i,j) we introduce a variable xi,j. The set O is the allowed origins in B, and the set T is the allowed targets in B.

The determinant summation formula

X

H∈HamCycles(G)

Y

(i,j)∈H

xi,j = X

O,T ⊆B

det(MO,T ).

Inclusion-exclusion over two sets, but in fact only terms where the union of O and T covers B will contribute, hence 3|B| terms.

slide-19
SLIDE 19

The structure of the matrix MO,T

s t u v w x s s t t u u v v w w x x a b c d e f

Labels Arcs

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

slide-20
SLIDE 20

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The left side of the matrix

s s t t u u v v w w x x

⇢ xb,t : b ∈ O : otherwise.

s t u v w x a b c d e f

Labels Arcs

⇢ xw,c : c ∈ T : otherwise.

slide-21
SLIDE 21

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The right side of the matrix

s s t t u u v v w w x x

X

i∈T

xt,i

X

i∈O

xi,w

s t u v w x a b c d e f

Labels Arcs

slide-22
SLIDE 22

. . . a . . d . . . . . . . . . a . . . . . . f . . . c . . . . f A monomial in the determinant expansion

s s t t u u v v w w x x s t u v w x a b c d e f

Labels Arcs

slide-23
SLIDE 23

A monomial in the determinant expansion

s t u v x w a b c d e f

Not necessarily a cycle cover!

slide-24
SLIDE 24

Non-cycle covers will be counted an even number of times

s t u v x w a b c d e f

There are no targets in b and e: Counted for T’s with and without b and e!

slide-25
SLIDE 25

Non-cycle covers will be counted an even number of times

s t u v x w a b c d e f

There is no target in e and no origin in d: Counted for T’s with and without e, and O’s with and without d!

slide-26
SLIDE 26

Randomly assign xuv from GF(2k). Compute If non-zero conclude Hamiltonian.

Bipartite algorithm

X

O,T ⊆B O∪T =B

det(MO,T ).

Polynomial Identity Testing

slide-27
SLIDE 27

Compute matching. If no perfect matching

  • utput non-Hamiltonian.

Find mis by any sufficiently fast algorithm. Trying all subsets of endpoints of the perfect matching will do (O(3n/2) time). Do P .I.T. on a determinant formula very similar to the bipartite case.

Mis parameterised algorithm

Assume n even

slide-28
SLIDE 28

Thank you for listening!

slide-29
SLIDE 29

[B14] A.Björklund. Determinant Sums for Undirected Hamiltonicity. SICOMP 2014. [BH13] A.Björklund and T.Husfeldt. The Parity of Directed Hamiltonian Cycles. FOCS 2013. [BHK08] A.Björklund, T,Husfeldt, and M.Koivisto. Set partitioning via inclusion—

  • exclusion. SICOMP 2008.

[BHKK11 ] A.Björklund, T.Husfeldt, P .Kaski, and M.Koivisto. Covering and packing in linear

  • space. IPL 2011.

[BK16] A.Björklund and P .Kaski. How proofs are prepared at Camelot, PODC 2016. [CKN13] M.Cygan, S.Kratsch, and J.Nederlof. Fast Hamiltonicity Checking via Matching

  • Bases. STOC 2013.

[HS74] E.Horowitz and S.Sahni. Computing partitions with applications to the knapsack

  • problem. JACM 1974.

[SS79] R.Schroeppel and A.Shamir. A T*S2=0 (2n) time/space tradeoff for certain NP- complete problems. FOCS 1979. [W04] R.Williams. A new algorithm for optimal 2-constraint satisfaction and its

  • implications. ICALP 2004.

References