ALTERNATING PATHS AND CYCLES OF MINIMUM LENGTH William Evans - - PowerPoint PPT Presentation

alternating paths and cycles of minimum length william
SMART_READER_LITE
LIVE PREVIEW

ALTERNATING PATHS AND CYCLES OF MINIMUM LENGTH William Evans - - PowerPoint PPT Presentation

ALTERNATING PATHS AND CYCLES OF MINIMUM LENGTH William Evans University of British Columbia, Canada Giuseppe Liotta Universit a degli Studi di Perugia, Italy Henk Meijer U. C. Roosevelt, the Netherlands Stephen Wismath University of


slide-1
SLIDE 1

ALTERNATING PATHS AND CYCLES OF MINIMUM LENGTH William Evans Giuseppe Liotta Henk Meijer Stephen Wismath

University of British Columbia, Canada Universit´ a degli Studi di Perugia, Italy

  • U. C. Roosevelt, the Netherlands

University of Lethbridge, Canada

slide-2
SLIDE 2

Motivating problem Draw planar graph on given point set to minimize total edge length [Chan et al. GD13]

  • vertex maps to point of the same color
  • each vertex has distinct color
slide-3
SLIDE 3

Motivating problem Draw planar graph on given point set to minimize total edge length [Chan et al. GD13]

  • vertex maps to point of the same color

This is NP-hard [Bastert and Fekete 96]

  • each vertex has distinct color
slide-4
SLIDE 4

Our problem

  • vertex maps to point of the same color
  • each vertex has distinct color

Draw planar graph on given point set to minimize total edge length

slide-5
SLIDE 5

Our problem

  • vertex maps to point of the same color
  • each vertex has distinct color

Draw planar graph on given point set to minimize total edge length alternating path/cycle

slide-6
SLIDE 6

Our problem is NP-hard Draw planar alternating path/cycle on given point set to minimize total edge length Idea: Reduce from EXACT COVER

Use (modified) reduction to Euclidean TSP [Papadimitriou 77]

slide-7
SLIDE 7

Our problem Draw planar alternating path/cycle on given colinear point set to minimize total edge length

slide-8
SLIDE 8

Cycles: A lower bound

slide-9
SLIDE 9

Cycles: A lower bound Minimum number of edges crossing this gap? (for any alternating cycle)

slide-10
SLIDE 10

Cycles: A lower bound Minimum number of edges crossing this gap? (for any alternating cycle) 2

slide-11
SLIDE 11

Cycles: A lower bound Minimum number of edges crossing this gap? (for any alternating cycle) 2

slide-12
SLIDE 12

Cycles: A lower bound Minimum number of edges crossing this gap? (for any alternating cycle) 2 2

slide-13
SLIDE 13

Cycles: A lower bound Minimum number of edges crossing this gap? (for any alternating cycle) 2 2

slide-14
SLIDE 14

Cycles: A lower bound Minimum number of edges crossing this gap? (for any alternating cycle) 2 2 2

slide-15
SLIDE 15

Cycles: A lower bound Minimum number of edges crossing this gap? (for any alternating cycle) 2 2 2

slide-16
SLIDE 16

Cycles: A lower bound Minimum number of edges crossing this gap? (for any alternating cycle) 2 2 2 4

slide-17
SLIDE 17

Cycles: A lower bound 2 2 2 4 ci = 2 max{|ri − bi|, 1} ri = red, bi = blue points before gapi 6 4 Lemma 1. Minimum number of edges crossing gapi is 6 8 10 8 6 4 2

slide-18
SLIDE 18

Cycles: A lower bound 2 2 2 4 ci = 2 max{|ri − bi|, 1} ri = red, bi = blue points before gapi 6 4 Lemma 1. Minimum number of edges crossing gapi is Proof: Each cycle component to the left of gapi has the same number of red and blue points ±1. 6 8 10 8 6 4 2

slide-19
SLIDE 19

Cycles: A lower bound 2 2 2 4 ci = 2 max{|ri − bi|, 1} ri = red, bi = blue points before gapi 6 4 Cycle length ≥

i ci|gapi|

Lemma 1. Minimum number of edges crossing gapi is 6 8 10 8 6 4 2

slide-20
SLIDE 20

Cycles: Matching the lower bound with 2 bends Drawing Rules Invariants At gapi:

  • 1. Number of red components = max{ri − bi, 0}.
  • 2. Number of blue components = max{bi − ri, 0}.
  • 3. If ri = bi, one red/blue component spans spine.
  • 4. Two closest components to spine are not both above
  • r below.
slide-21
SLIDE 21

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-22
SLIDE 22

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-23
SLIDE 23

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-24
SLIDE 24

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-25
SLIDE 25

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-26
SLIDE 26

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-27
SLIDE 27

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-28
SLIDE 28

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-29
SLIDE 29

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-30
SLIDE 30

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-31
SLIDE 31

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-32
SLIDE 32

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-33
SLIDE 33

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-34
SLIDE 34

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-35
SLIDE 35

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-36
SLIDE 36

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-37
SLIDE 37

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-38
SLIDE 38

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-39
SLIDE 39

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-40
SLIDE 40

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-41
SLIDE 41

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-42
SLIDE 42

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-43
SLIDE 43

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-44
SLIDE 44

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-45
SLIDE 45

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-46
SLIDE 46

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-47
SLIDE 47

Cycles: Matching the lower bound with 2 bends Drawing Rules

slide-48
SLIDE 48

Cycles: Matching the lower bound with 2 bends Drawing Rules Theorem 1. Exists O(n log n)-time algorithm to compute a shortest planar alternating cycle on colinear

  • points. Each edge has ≤ 2 bends.
slide-49
SLIDE 49

Paths: A lower bound 2 3 Lemma 2. Minimum number of edges crossing gapi is 5 7 9 7 6 4 2 Given path endpoints r and b. ci =    2 max{|ri−bi|, 1} if r, b same side 1+2 max{bi−ri, ri−bi−1} if r left of gapi 1+2 max{ri−bi, bi−ri−1} if b left of gapi 5 2 2 3 r b

slide-50
SLIDE 50

Paths: A lower bound 2 3 Lemma 2. Minimum number of edges crossing gapi is Proof: Same. Component with red endpoint can have

  • ne more red than blue points, but zero more blue than

red points. 5 7 9 7 6 4 2 Given path endpoints r and b. ci =    2 max{|ri−bi|, 1} if r, b same side 1+2 max{bi−ri, ri−bi−1} if r left of gapi 1+2 max{ri−bi, bi−ri−1} if b left of gapi 5 2 2 3 r b

slide-51
SLIDE 51

Paths: A lower bound 2 3 r to b Path length ≥

i ci|gapi|

Lemma 2. Minimum number of edges crossing gapi is 5 7 9 7 6 4 2 Given path endpoints r and b. ci =    2 max{|ri−bi|, 1} if r, b same side 1+2 max{bi−ri, ri−bi−1} if r left of gapi 1+2 max{ri−bi, bi−ri−1} if b left of gapi 5 2 2 3 r b

slide-52
SLIDE 52

Paths: Matching the lower bound with 2 bends Given path endpoints r and b. Use (almost) the same algorithm as for cycles to find a path whose length matches the lower bound.

slide-53
SLIDE 53

Paths: Matching the lower bound with 2 bends Given path endpoints r and b. Calculate the r to b Path length lower bound for all r and b and pick the minimum. Use (almost) the same algorithm as for cycles to find a path whose length matches the lower bound. O(n2) time

slide-54
SLIDE 54

Paths: Matching the lower bound with 2 bends Given path endpoints r and b. Calculate the r to b Path length lower bound for all r and b and pick the minimum. Use (almost) the same algorithm as for cycles to find a path whose length matches the lower bound. O(n2) time Theorem 2. Exists O(n2)-time algorithm to compute a shortest planar alternating path on colinear points. Each edge has ≤ 2 bends.

slide-55
SLIDE 55

Extending to more than two colors ci = 2 max{|ri − gi|, |gi − bi|, |bi − ri|, 1} ri = red, gi = green, bi = blue points before gapi Lemma 3. Minimum number of edges crossing gapi is Similar algorithm achieves lower bound. (O(n) bends)

slide-56
SLIDE 56

Extending to more than two colors ci = 2 max{|ri − gi|, |gi − bi|, |bi − ri|, 1} ri = red, gi = green, bi = blue points before gapi Lemma 3. Minimum number of edges crossing gapi is Similar algorithm achieves lower bound. (O(n) bends) Four colors Lower bound cannot be achieved.

slide-57
SLIDE 57

Open Problems

  • Shortest alternating path in o(n2) time.
  • Shortest 3-color path/cycle with o(n)

bends.

  • Shortest 4-color path/cycle.
  • Shortest arbitrary (not alternating) 2-color

path/cycle.

slide-58
SLIDE 58

Open Problems

  • Shortest alternating path in o(n2) time.
  • Shortest 3-color path/cycle with o(n)

bends.

  • Shortest 4-color path/cycle.
  • Shortest arbitrary (not alternating) 2-color

path/cycle.

Thank you