24
1 Maximum Independent Set in 2-Direction Outer-Segment Graphs Holger Flier, Matúš Mihalák, Peter Widmayer, Anna Zych ETH Zürich

Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

1

Maximum Independent Set in 2-Direction Outer-Segment Graphs

Holger Flier, Matúš Mihalák, Peter Widmayer, Anna Zych

ETH Zürich

Page 2: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

2

The problem: Maximum Independent Set of Segments

aligned horizontally or vertically inside a diskwith one endpoint on the boundary

Input: A set of segments as above Output: A subset of segmentspairwise disjoint

The problem reduces to Maximum Independent Set (MIS) Problem in corresponding intersection graphs

Page 3: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

3

Related results [Kratochvíl, Nešetřil 1990]

● MIS (of segments) is polynomial for segments in 2 directions with one endpoint fixed on a boundary of a disk

● MIS is NP-hard for segments in the plane● aligned in 2 directions...● ...or in 3 directions but no two segments in one direction

intersect

Our result

Page 4: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

4

Why this problem?Train station

MIS is open for outer-string graphs

Page 5: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

5

Easy vs. NP-hard

Easy instance: opposite segments do not intersect

The intersection graph is bipartite:G=(V , E ):V=A∪B , E⊆A×B

Page 6: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

6

Easy vs. NP-hard

A: vertical segments

Easy instance: opposite segments do not intersect

The intersection graph is bipartite:G=(V , E ):V=A∪B , E⊆A×B

Page 7: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

7

Easy vs. NP-hard

A: vertical segmentsB: horizontal segments

Easy instance: opposite segments do not intersect

The intersection graph is bipartite:G=(V , E ):V=A∪B , E⊆A×B

Page 8: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

8

Easy vs. NP-hard

A: vertical segmentsB: horizontal segmentsE: edges connect intersecting pairs:

vertical with horizontal

Independent set in bipartite graphs is polynomial!

Easy (bipartite) instance:opposite segments do not intersect

The intersection graph is bipartite:G=(V , E ):V=A∪B , E⊆A×B

Page 9: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

9

Easy vs. NP-hard

Not easy instance: opposite segments intersect

The intersection graph is bipartiteplus two matchings:

Independent set is NP-hard in such graphs!

Page 10: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

10

Easy vs. NP-hard

Easy instance: no horizontal segments (one direction)

The intersection graph is a matching:also a bipartite instance

Page 11: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

11

3 side instances

Not trivial:solvable in polynomial timewith dynamic programming(still to come)

Page 12: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

12

General case: Decomposition to simpler instances

● Decompose the input instance into few 3 side instances

● Decomposition is determined by a constant number of segments

● Exhaustively search for the decomposition segments and solve 3 side instances

Page 13: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

13

Getting rid of overlapsoverlap

Page 14: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

14

Getting rid of overlaps

Instance of interest:➢ No overlapping pair

of left segments in optimum➢ No overlapping pair

of right segments in optimum

This partition is determined by four segments of the optimum

Page 15: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

15

Completing the partition into 3 side instances

Case 1: an overlapping pair of a left and a right segment

Page 16: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

16

Completing the partition into 3 side instances

Case 1: an overlapping pair of a left and a right segment √

Case 2: no overlapping pair

Page 17: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

17

Completing the partition into 3 side instances

Case 1: an overlapping pair of a left and a right segment √

Case 2: no overlapping pair √

The overall partition into 3 side instances is determined by at most six segments

Page 18: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

18

The algorithm for 3 side instances● Bottom side segments of optimum

partition the disk into regions:

➢ optimum is the sum of optima within the regions

➢ instances within the regions are bipartite

● Dynamic programming:

➢ to compute a solution for a region,use partial solutions computed for regions contained in it

Page 19: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

19

Decomposing 3 side instances

Page 20: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

20

Decomposing 3 side instances

Page 21: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

21

Decomposing 3 side instances

Page 22: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

22

Dynamic Programming

is determined uniquely by a left and a right segmentU i

U i−1=U i∪Bi∪T i

MIS [U i ] D ∖U i

Properties:

is a maximum independent set in

The sweeping process processesthe left segments from left to rightand the right segments from right to left

Page 23: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

23

Dynamic Programming

U l , r

MIS [U l , r ] D ∖U l , ris a maximum independent set in :

MIS [U l , r ]=max l '<l : sl '≥sl(MIS [U l ' , r ]+OPT (T l)+OPT (Bl))MIS [U 0,0]=0

sl sr is determined uniquely By (left) and (right segment)

U i−1=U i∪Bi∪T i

Properties:

The sweeping process processesthe left segments from left to rightand the right segments from right to left

Page 24: Maximum Independent Set in 2-Direction Outer-Segment Graphs...The intersection graph is bipartite plus two matchings: Independent set is NP-hard in such graphs! 10 Easy vs. NP-hard

24

Open Problems

● MIS in outer-segment graphs for segments aligned in more than 2 directions

● MIS in outer-string graphs