1.5-side Boundary Labeling Chun-Cheng LinNational Chiao Tung University Sheung-Hung PoonNational Tsing Hua University Shigeo TakahashiThe University of.

Slides:



Advertisements
Similar presentations
Optimal Bus Sequencing for Escape Routing in Dense PCBs H.Kong, T.Yan, M.D.F.Wong and M.M.Ozdal Department of ECE, University of Illinois at U-C ICCAD.
Advertisements

Minimum Vertex Cover in Rectangle Graphs
Approximation Algorithms Chapter 14: Rounding Applied to Set Cover.
Approximations of points and polygonal chains
Greedy Algorithms Be greedy! always make the choice that looks best at the moment. Local optimization. Not always yielding a globally optimal solution.
Spine Crossing Minimization in Upward Topological Book Embeddings Tamara Mchedlidze, Antonios Symvonis Department of Mathematics, National Technical University.
Squares in a Rectangle Tutorial.
EXAMPLE 1 Find ratios of similar polygons Ratio (red to blue) of the perimeters a.a. Ratio (red to blue) of the areas b.b. In the diagram, ABC  DEF. Find.
The Rectangle Escape Problem By: Ehsan Emam-Jomeh-Zadeh Sepehr Assadi Supervisor: Dr. Hamid Zarrabi-Zadeh Sharif University of Technology B.Sc. Thesis.
Outline. Theorem For the two processor network, Bit C(Leader) = Bit C(MaxF) = 2[log 2 ((M + 2)/3.5)] and Bit C t (Leader) = Bit C t (MaxF) = 2[log 2 ((M.
Approximation Algorithms Chapter 5: k-center. Overview n Main issue: Parametric pruning –Technique for approximation algorithms n 2-approx. algorithm.
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
CS 253: Algorithms Chapter 8 Sorting in Linear Time Credit: Dr. George Bebis.
1 Pseudo-polynomial time algorithm (The concept and the terminology are important) Partition Problem: Input: Finite set A=(a 1, a 2, …, a n } and a size.
Many-to-One Boundary Labeling Hao-Jen Kao, Chun-Cheng Lin, Hsu-Chun Yen Dept. of Electrical Engineering National Taiwan University.
1 Pseudo-polynomial time algorithm (The concept and the terminology are important) Partition Problem: Input: Finite set A=(a 1, a 2, …, a n } and a size.
1 Tardiness Models Contents 1. Moor’s algorithm which gives an optimal schedule with the minimum number of tardy jobs 1 ||  U j 2. An algorithm which.
AT&T Labs1 The Sensor Cover Problem Alon Efrat (U. Arizona) Adam Buchsbaum (AT&T Labs) Shaili Jain (Harvard) Suresh Venkatasubramanian (AT&T Labs) Ke Yi.
A general approximation technique for constrained forest problems Michael X. Goemans & David P. Williamson Presented by: Yonatan Elhanani & Yuval Cohen.
1 Vertex Cover Problem Given a graph G=(V, E), find V' ⊆ V such that for each edge (u, v) ∈ E at least one of u and v belongs to V’ and |V’| is minimized.
1 Pseudo-polynomial time algorithm (The concept and the terminology are important) Partition Problem: Input: Finite set A=(a 1, a 2, …, a n } and a size.
1 Set # 3 Dr. LEE Heung Wing Joseph Phone: Office : HJ639.
1 On the Benefits of Adaptivity in Property Testing of Dense Graphs Joint work with Mira Gonen Dana Ron Tel-Aviv University.
Lecture 36 CSE 331 Dec 2, Graded HW 8 END of the lecture.
Pseudo-polynomial time algorithm (The concept and the terminology are important) Partition Problem: Input: Finite set A=(a1, a2, …, an} and a size s(a)
1 IOE/MFG 543 Chapter 14: General purpose procedures for scheduling in practice Section 14.4: Local search (Simulated annealing and tabu search)
More on Intractability Knapsack Problem Wednesday, August 5 th 1.
Dynamic Programming 0-1 Knapsack These notes are taken from the notes by Dr. Steve Goddard at
Basic PRAM algorithms Problem 1. Min of n numbers Problem 2. Computing a position of the first one in the sequence of 0’s and 1’s.
 On-line problem  Input arrives one at a time, and a decision is made (and cannot be changed).  In the minADM problem: lightpaths arrive one at a time,
Lower Bounds for Comparison-Based Sorting Algorithms (Ch. 8)
Orthogonal Drawings of Series-Parallel Graphs Joint work with Xiao Zhou by Tohoku University Takao Nishizeki.
Triangulating a monotone polygon
Crossing-Free Boundary Labeling Using Hyperleaders Chun-Cheng Lin Taipei Municipal University of Education.
1 Edge-bipancyclicity of star graphs under edge-fault tolerant Applied Mathematics and Computation, Volume 183, Issue 2, 15 December 2006, Pages
Theory of Computing Lecture 17 MAS 714 Hartmut Klauck.
Analysis of Algorithms CS 477/677
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 8.
1 Triangulation Supplemental From O’Rourke (Chs. 1&2) Fall 2005.
알고리즘 설계 및 분석 Foundations of Algorithm 유관우. Digital Media Lab. 2 Chap4. Greedy Approach Grabs data items in sequence, each time with “best” choice, without.
First lecture in Mathematics
1 Chapter 6 Dynamic Programming. 2 Algorithmic Paradigms Greedy. Build up a solution incrementally, optimizing some local criterion. Divide-and-conquer.
CSCI 256 Data Structures and Algorithm Analysis Lecture 6 Some slides by Kevin Wayne copyright 2005, Pearson Addison Wesley all rights reserved, and some.
Discrete Optimization Lecture 2 – Part 2 M. Pawan Kumar Slides available online
COSC 3101A - Design and Analysis of Algorithms 6 Lower Bounds for Sorting Counting / Radix / Bucket Sort Many of these slides are taken from Monica Nicolescu,
Earliness and Tardiness Penalties Chapter 5 Elements of Sequencing and Scheduling by Kenneth R. Baker Byung-Hyun Ha R1.
LIMITATIONS OF ALGORITHM POWER
Optimization/Decision Problems Optimization Problems – An optimization problem is one which asks, “What is the optimal solution to problem X?” – Examples:
Center for Graphics and Geometric Computing, Technion 1 Computational Geometry Chapter 9 Line Arrangements.
Common Intersection of Half-Planes in R 2 2 PROBLEM (Common Intersection of half- planes in R 2 ) Given n half-planes H 1, H 2,..., H n in R 2 compute.
Polygon Triangulation
Single Machine Scheduling Problem Lesson 5. Maximum Lateness and Related Criteria Problem 1|r j |L max is NP-hard.
2IMA20 Algorithms for Geographic Data Spring 2016 Lecture 7: Labeling.
Greedy Algorithms – Chapter 5
Huffman Codes Let A1,...,An be a set of items.
Algebraic Limits and Continuity
Lecture 35 CSE 331 Nov 27, 2017.
Lecture 34 CSE 331 Nov 20, 2017.
Algorithms (2IL15) – Lecture 2
EXAMPLE 1 Use a formula to find area Find the area of PQRS. SOLUTION
6-3 The Pythagorean Theorem Pythagorean Theorem.
3.5 Minimum Cuts in Undirected Graphs
Lecture 35 CSE 331 Nov 28, 2016.
Greedy Algorithms Many optimization problems can be solved more quickly using a greedy approach The basic principle is that local optimal decisions may.
CS200: Algorithm Analysis
Richard Anderson Lecture 13 Divide and Conquer
Quickest Visibility Queries in Polygonal Domains
Minimizing the Aggregate Movements for Interval Coverage
CS 583 Analysis of Algorithms
Asst. Prof. Dr. İlker Kocabaş
Presentation transcript:

1.5-side Boundary Labeling Chun-Cheng LinNational Chiao Tung University Sheung-Hung PoonNational Tsing Hua University Shigeo TakahashiThe University of Tokyo Hsiang-Yu WuThe University of Tokyo Hsu-Chun YenNational Taiwan University

Boundary labeling (Bekos et al., GD 2004) (Bekos & Symvonis, GD 2005) Type-opo leadersType-po ledersType-s leaders Min (total leader length or total bend number) s.t. #(leader crossing) = 0 1-side, 2-side, 4-side site label leader

Variants Polygons labeling (Bekos et. al, APVIS 2006) Multi-stack boundary labeling (Bekos et. al, FSTTCS 2006)

1.5-side Boundary Labeling type-opo: direct leader vs. indirect leader Annotation system for wordprocessing S/W #1 #2 #3 #4 #5 #6 indirect leader #1 #2 #3 #4 #5 #6 direct leader

Problem Setting (labelSize, labelPort, Objective) Nonuniform label #1 #2 Uniform label #1 #2 #3

Problem Setting (labelSize, labelPort, Objective) #1 #2 Fixed-position port (FP) Fixed-ratio port (FR) Sliding port #1 #2 #1 #2 

Problem Setting (labelSize, labelPort, Objective) Min (total bend num) (TBM for short) Min (total leader length) (TLLM for short) #1 #2 #3 #4 #1 #2 #3 #1 #2 #3 #1 #2 #(bends) = 6#(bends) = 2 longer lengthshorter length

Assumptions All the parameters are integers No two sites with the same x- or y- coordinate Map height = label height sum Legal leader pjpj pipi maplabel A left A right p i–1 j i p j+1 pjpj pipi maplabel A left A right p i–1 j i p j+1 #1 #2 #3 #4 #5 #6

Our Contributions (LabelSize,LabelPort,Objective)timereference (uniform,FR/sliding,TLLM)O(n log n)Thm 1 (uniform,FP,TLLM)O(n5)O(n5)Thm 2 (uniform,FR/FP/sliding,TBM)O(n5)O(n5)Thm 2 (nonuniform,FR/FP/sliding,TLLM)NP-complete*Thm 3 (nonuniform,FR/FP/sliding,TBM)NP-complete*Thm 4 * Pseudo-polynomial time algorithms and fixed-parameter algorithms are designed for those intractable problems. Solved all the problems of all the combinations of (LabelSize, LabelPort, Objective).

(LabelSize,LabelPort,Objective)timereference (uniform,FR/sliding,TLLM)O(n log n)Thm 1 (uniform,FP,TLLM)O(n5)O(n5)Thm 2 (uniform,FR/FP/sliding,TBM)O(n5)O(n5)Thm 2 (nonuniform,FR/FP/sliding,TLLM)NP-complete*Thm 3 (nonuniform,FR/FP/sliding,TBM)NP-complete*Thm 4

Lemma 1. All direct leaders are optimal for the above concerned case. (LabelSize,LabelPort,Objective)timereference (uniform,FR/sliding,TLLM)O(n log n)Thm 1 p U B p B U p B lhlh B lvlv B leader l p B |U||U|

(LabelSize,LabelPort,Objective)timereference (uniform,FR/sliding,TLLM)O(n log n)Thm 1 (uniform,FP,TLLM)O(n5)O(n5)Thm 2 (uniform,FR/FP/sliding,TBM)O(n5)O(n5)Thm 2 (nonuniform,FR/FP/sliding,TLLM)NP-complete*Thm 3 (nonuniform,FR/FP/sliding,TBM)NP-complete*Thm 4

Theorem 2. The above case can be solved by dynamic programming in O(n 5 ) time. (LabelSize,LabelPort,Objective)timereference (uniform,FP,TLLM)O(n5)O(n5)Thm 2 pbpb papa (c+b-a)-th c-th maplabel S(a, b, c) = // all direct leaders // downward indirect leader // upward indirect leader // the solution of the problem with p a, p a+1, …, p b connected to label positions c to c+(b-a)+1 # = (b+a)+1

Theorem 2. The above case can be solved by dynamic programming in O(n 5 ) time. (LabelSize,LabelPort,Objective)timereference (uniform,FP,TLLM)O(n5)O(n5)Thm 2 S(a, b, c) = // all direct leaders // downward indirect leader // upward indirect leader // the solution of the problem with p a, p a+1, …, p b connected to label positions c to c+(b-a)+1 pbpb papa (c+b-a)-th c-th maplabel

Theorem 2. The above case can be solved by dynamic programming in O(n 5 ) time. (LabelSize,LabelPort,Objective)timereference (uniform,FP,TLLM)O(n5)O(n5)Thm 2 pbpb p a+i+1 p a+i-1 pa+jpa+j p a+j-1 papa p a+i (c+b-a)-th (c+i)-th (c+j-1)-th c-th (c+j+1)-th (c+i+1)-th maplabel S(a+i+1, b, c+i+1) S(a+j, a+i-1, c+j+1) S(a, a+j-1, c) (c+j)-th S(a, b, c) = // all direct leaders // downward indirect leader // upward indirect leader // the solution of the problem with p a, p a+1, …, p b connected to label positions c to c+(b-a)+1

Theorem 2. The above case can be solved by dynamic programming in O(n 5 ) time. (LabelSize,LabelPort,Objective)timereference (uniform,FP,TLLM)O(n5)O(n5)Thm 2 pbpb p a+j+1 pa+jpa+j p a+i+1 p a+i-1 papa pa+ipa+i (c+b-a)-th (c+i)-th (c+j-1)-th c-th (c+i-1)-th (c+j+1)-th maplabel S(a+j+1, b, c+j+1) S(a, a+i-1, c) (c+j)-th S(a+i+1, a+j, c+i) pbpb p a+i+1 p a+i-1 pa+jpa+j p a+j-1 papa p a+i (c+b-a)-th (c+i)-th (c+j-1)-th c-th (c+j+1)-th (c+i+1)-th maplabel S(a+i+1, b, c+i+1) S(a+j, a+i-1, c+j+1) S(a, a+j-1, c) (c+j)-th S(a, b, c) = // all direct leaders // downward indirect leader // upward indirect leader // the solution of the problem with p a, p a+1, …, p b connected to label positions c to c+(b-a)+1

(LabelSize,LabelPort,Objective)timereference (uniform,FR/sliding,TLLM)O(n log n)Thm 1 (uniform,FP,TLLM)O(n5)O(n5)Thm 2 (uniform,FR/FP/sliding,TBM)O(n5)O(n5)Thm 2 (nonuniform,FR/FP/sliding,TLLM)NP-complete*Thm 3 (nonuniform,FR/FP/sliding,TBM)NP-complete*Thm 4

Total Discrepancy Problem is NP-complete  job J i  {J 0, J 1, …, J 2n } Execution time length l i, where I 0 < I 1 < … < l 2n Preferred midtime M = (l 0 + l 1 + … + l 2n ) /2 For a planned schedule  Actual midtime of J i = m i (  ) Min ( |m 0 (  ) – M| + |m 1 (  ) – M| + … + |m 2n (  ) – M| + |m 2n+1 (  ) – M’|) Properties for the optimal schedule  opt No gaps between two jobs m 0 (  opt ) = M | {J i : m i M } |  opt = A n, A n-1, …, A 1, J 0, B 1, B 2, …, B n where {A i, B i } = {J 2i-1, J 2i } 0M J0J0 J1J1 J2J2 J3J3 J4J4 J0J0 J1J1 J2J2 J3J3 J4J4

Theorem 3. Total Discrepancy Problem  L(nonuniform, FR/FP/sliding, TLLM). (LabelSize,LabelPort,Objective)timereference (nonuniform,FR/FP/sliding,TLLM)NP-complete*Thm 3 0M J0J0 J1J1 J2J2 J3J3 J4J4

(LabelSize,LabelPort,Objective)timereference (uniform,FR/sliding,TLLM)O(n log n)Thm 1 (uniform,FP,TLLM)O(n5)O(n5)Thm 2 (uniform,FR/FP/sliding,TBM)O(n5)O(n5)Thm 2 (nonuniform,FR/FP/sliding,TLLM)NP-complete*Thm 3 (nonuniform,FR/FP/sliding,TBM)NP-complete*Thm 4

Theorem 4. Subset Sum Problem  L(nonuniform, FR/FP/sliding, TBM). (LabelSize,LabelPort,Objective)timereference (nonuniform,FR/FP/sliding,TBM)NP-complete*Thm 4 p n+1 p n+2 h min Subset Sum Problem Input: A = {a 1, …, a n } and a num B = (a 1 + … + a n )/2 Question: find a subset A’  A such that sum(elements in A’) = B < h min h/2

(LabelSize,LabelPort,Objective)timereference (uniform,FR/sliding,TLLM)O(n log n)Thm 1 (uniform,FP,TLLM)O(n5)O(n5)Thm 2 (uniform,FR/FP/sliding,TBM)O(n5)O(n5)Thm 2 (nonuniform,FR/FP/sliding,TLLM)NP-complete*Thm 3 (nonuniform,FR/FP/sliding,TBM)NP-complete*Thm 4 * Pseudo-polynomial time algorithms and fixed-parameter algorithms are designed for those intractable problems.

Theorem 5 (pseudo-polynomial algorithm). The above two cases can be solved in O(n 4 h) time, where h is the map height. (LabelSize,LabelPort,Objective)timereference (nonuniform,FR/FP/sliding,TLLM)NP-complete*Thm 3 (nonuniform,FR/FP/sliding,TBM)NP-complete*Thm 4 S(a, b, t ) = S(a, b, c ) = // all direct leaders // downward indirect leader // upward indirect leader // the solution of the problem with p a, p a+1, …, p b connected to label positions c to c+(b-a)+1 // the solution of the problem with p a, p a+1, …, p b connected to y-coordinate t (uniform label case)

Theorem 6 (fixed-parameter algorithm). The above two cases using k different label heights can be solved in O(n k+4 ) time. Theorem 5. The above two cases can be solved in O(n 4 h) time. Lemma 2. num( positions of each label using k different label heights ) = O(n k ). pf. Induction on k Assume num(…(k-1) …) = O(n k-1 ) Consider each label, which is the i-th label from the bottom (LabelSize,LabelPort,Objective)timereference (nonuniform,FR/FP/sliding,TLLM)NP-complete*Thm 3 (nonuniform,FR/FP/sliding,TBM)NP-complete*Thm 4 h = n k type-k type-1, …, type-(k-1) (i –1) labels using type-1, type-2, …, type-k O(n k-1 ) positions at most O(n)

Conclusion (LabelSize,LabelPort,Objective)timereference (uniform,FR/sliding,TLLM)O(n log n)Thm 1 (uniform,FP,TLLM)O(n5)O(n5)Thm 2 (uniform,FR/FP/sliding,TBM)O(n5)O(n5)Thm 2 (nonuniform,FR/FP/sliding,TLLM)NP-complete*Thm 3 (nonuniform,FR/FP/sliding,TBM)NP-complete*Thm 4 * Pseudo-polynomial algorithms and fixed-parameter algorithms are designed for those intractable problems. Solved all the problems of all the combinations of (LabelSize, LabelPort, Objective).