Danny Z. Chen and Haitao Wang University of Notre Dame Indiana, USA

Slides:



Advertisements
Similar presentations
Minimum Clique Partition Problem with Constrained Weight for Interval Graphs Jianping Li Department of Mathematics Yunnan University Jointed by M.X. Chen.
Advertisements

Approximations of points and polygonal chains
The Greedy Approach Chapter 8. The Greedy Approach It’s a design technique for solving optimization problems Based on finding optimal local solutions.
Constant-Time LCA Retrieval
Dean H. Lorenz, Danny Raz Operations Research Letter, Vol. 28, No
A General Approach to Online Network Optimization Problems Seffi Naor Computer Science Dept. Technion Haifa, Israel Joint work: Noga Alon, Yossi Azar,
Sorting in Linear Time Lower bound for comparison-based sorting
SMAWK. REVISE Global alignment (Revise) Alignment graph for S = aacgacga, T = ctacgaga Complexity: O(n 2 ) V(i,j) = max { V(i-1,j-1) +  (S[i], T[j]),
Charalampos (Babis) E. Tsourakakis SODA th January ‘11 SODA '111.
2IL05 Data Structures Fall 2007 Lecture 13: Minimum Spanning Trees.
Spring 2015 Lecture 11: Minimum Spanning Trees
How to reform a terrain into a pyramid Takeshi Tokuyama (Tohoku U) Joint work with Jinhee Chun (Tohoku U) Naoki Katoh (Kyoto U) Danny Chen (U. Notre Dame)
Lectures on Greedy Algorithms and Dynamic Programming
Trees.
Greedy Algorithms General principle of greedy algorithm
Growth of Functions & Algorithms
The Steepest Ascent Hill Climbing Algorithm
Computing Connected Components on Parallel Computers
Paweł Gawrychowski, Nadav Krasnopolsky, Shay Mozes, Oren Weimann
Dynamic Programming Dynamic Programming is a general algorithm design technique for solving problems defined by recurrences with overlapping subproblems.
Dynamic Programming Dynamic Programming is a general algorithm design technique for solving problems defined by recurrences with overlapping subproblems.
Chapter 8 Dynamic Programming
Haim Kaplan and Uri Zwick
Richard Anderson Lecture 17 Dynamic Programming
Orthogonal Range Searching and Kd-Trees
Bart M. P. Jansen June 3rd 2016, Algorithms for Optimization Problems
Richard Anderson Lecture 16 Dynamic Programming
Computing Shortest Path amid Pseudodisks
Representing a Functional Curve by Curves with Fewer Peaks
Computing Maximum Non-Crossing Matching in Convex Bipartite Graphs
Efficient Algorithms for the Weighted k-Center Problem on a Real Line
Richard Anderson Lecture 16a Dynamic Programming
Richard Anderson Lecture 16 Dynamic Programming
Danny Z. Chen and Haitao Wang University of Notre Dame Indiana, USA
Dynamic Data Structures for Simplicial Thickness Queries
Locating an Obnoxious Line among Planar Objects
Computing the Visibility Polygon of an Island in a Polygonal Domain
2IMG15 Algorithms for Geographic Data
Covering Uncertain Points in a Tree
On the Geodesic Centers of Polygonal Domains
Minimizing the Aggregate Movements for Interval Coverage
Approximating Points by A Piecewise Linear Function: I
3. Brute Force Selection sort Brute-Force string matching
Haitao Wang Utah State University WADS 2017, St. John’s, Canada
Processing an Offline Insertion-Query Sequence with Applications
An O(n log n)-Time Algorithm for the k-Center Problem in Trees
Optimal Point Movement for Covering Circular Regions
Range Queries on Uncertain Data
Joseph S.B. Mitchell, Stony Brook University
Danny Z. Chen1, Yan Gu2, Jian Li2, and Haitao Wang1
Aggregate-Max Nearest Neighbor Searching in the Plane
Danny Z. Chen and Haitao Wang University of Notre Dame Indiana, USA
3. Brute Force Selection sort Brute-Force string matching
Haitao Wang Utah State University SoCG 2017, Brisbane, Australia
Computing Shortest Paths among Curved Obstacles in the Plane
Visibility and Ray Shooting Queries in Polygonal Domains
Outlier Respecting Points Approximation
Lecture 36 CSE 331 Nov 28, 2011.
Lecture 36 CSE 331 Nov 30, 2012.
Approximating Points by A Piecewise Linear Function: II
Weak Visibility Queries of Line Segments in Simple Polygons
L1 Shortest Path Queries among Polygonal Obstacles in the Plane
Chapter 16 1 – Graphs Graph Categories Strong Components
Richard Anderson Lecture 16, Winter 2019 Dynamic Programming
Algorithms CSCI 235, Spring 2019 Lecture 35 Graphs IV
CS 583 Analysis of Algorithms
Lecture 12 Shortest Path.
Algorithms.
A Variation of Minimum Latency Problem on Path, Tree and DAG
3. Brute Force Selection sort Brute-Force string matching
Presentation transcript:

Danny Z. Chen and Haitao Wang University of Notre Dame Indiana, USA New Algorithms for 1-D Facility Location and Path Equipartition Problems Danny Z. Chen and Haitao Wang University of Notre Dame Indiana, USA

Our Problems General model facility location L∞ path equipartition uniform k-median weighted k-median k-coverage linear model facility location L∞ path equipartition Ld path equipartition

The general model facility location Input: A set of n sites/customers P={p1,…,pn} sorted on a line, an integer k≤n, Goal: Choose at most k sites in P to set up facilities for serving all customers to minimize the sum of the facility opening cost and the service cost p1 pn choose three sites to set up facilities

The general model facility location (cont.) The facility opening cost For each site pi, there is a cost ci for setting up a facility at pi The service cost The distance of any two points pi and pj is their Euclidean distance on the line d(pi,pj)=|pi - pj| Each customer pj is associated with a service cost function fj(d) for a distance d such that: if we use a facility at pi to serve pj, the service cost for pj is fj(d(pi,pj)) fj(d) is a monotone increasing function with respect to d pj pi

The k-median No facility opening cost ci=0, for each site pi The service cost functions are linear For each site pj, fj(d)=aj * d the uniform k-median all coefficients aj are the same the weighted k-median the coefficients aj are not necessarily the same

The k-coverage The facility opening cost The service cost ci≠0 For each site pj, it has a range rj, such that fj(d)=0, if d≤rj fj(d)=+∞, if d>rj pj rj rj

The linear model The facility opening cost The service cost functions are linear For each site pj, fj(d)=aj * d

Previous work and our results T=min{n*sqrt{klogn}, n*2O(sqrt{logk loglogn})} The general model: O(n2) time (Hassin and Tamir 91’) k-median Previous work: O(nk) time (Hassin and Tamir 91’; Auletta, Parente, and Persiano 98’) Both uniform and weighted cases Our result: The uniform case: O(T) time, k=Ω(log n) The weighted case: O(T logn) time, k=Ω(log3n) k-coverage Previous work: O(nk) time (Hassin and Tamir 91’; van Hoesel and Wagelmans 07’) Our result: O(T) time, k=Ω(log n) Linear model Previous work: O(nk) time (Hassin and Tamir 91’) Our result: O(T log2 n), k=Ω(log5n)

Result summary uniform k-median O(nk) O(T) k=Ω(log n) k-median Problems Previous Our results Ours is better when uniform k-median O(nk) O(T) k=Ω(log n) k-median O(T log n) k=Ω(log3 n) k-coverage linear model O(T log2n) k=Ω(log5n) T=min{n*sqrt{klogn}, n*2O(sqrt{logkloglogn})}

Our techniques Model the general model as the k-link shortest path problem Prove the concave Monge property holds Apply two k-link shortest path algorithms as the high-level scheme for our problem O(n*sqrt{klogn}) time, Aggarwal, Schieber, and Tokuyama, 94’ O(n*2O(sqrt{logk loglogn})) time, Schieber 98’ The problem modeling looks natural Previous work does not use it

Our techniques (cont.) The concave Monge property in this problem modeling is not obvious Monge property is used in the previous work but only on the service cost The Monge property in our problem modeling also involves the facility opening cost There is an obvious monotone property on the service cost but not on the facility opening cost

The k-link shortest path problem Input: A weighted DAG G with vertices v1,…,vn, and an integer k, 1≤k≤n Output: Finding a path of k edges from v1 to vn such that the sum of the weights of the edges in the path is minimized Concave Monge property: For any i and j with 1<i+1<j<n, w(i,j)+w(i+1,j+1) ≤ w(i,j+1)+w(i+1,j) v1 vi vi+1 vj vj+1 vn

Modeling the facility location problem as finding a k-link shortest path Given the site set P={p1,…,pn} on a line, build a DAG G of n+1 vertices v0,…,vn v0 v1 v2 v3 v4 p1 p2 p3 p4 vn v0 a 3-link shortest path

Model the facility location problem as the k-link shortest path (cont The weight w(i,j) of each edge from vi to vj is the minimum cost of opening one facility and serving all customers in the group defined by the edge w(i,j) has two parts The cost of opening one facility The total service cost We prove that the concave Monge property holds on w(i,j) vi vj

Proving the concave Monge property on w(i,j) An observation: The positions of facilities satisfy a monotone property wij vi vj wij+1 vi vj+1

The algorithms High-level scheme: The computational components Apply the k-link shortest path algorithms The computational components Compute the edge weights w(i,j) Running time O(T*W) T: the k-link shortest path algorithms W: time for computing each w(i,j) k-median and k-coverage Design data structures to answer w(i,j) queries The linear model Modify the k-link shortest path algorithms

Computing w(i,j) for the k-median No facility opening cost, ci=0 The service cost functions are linear For each site pj, fj(d)=aj * d the uniform k-median: all coefficients aj are the same The uniform case The facility is set up at the median site in the group O(1) time (O(n) time preprocessing) The weighted case The facility is the weighted median site in the group O(log n) time by binary search (O(n) time preprocessing) vi vj wij

Computing w(i,j) for the k-coverage Facility opening cost, ci≠0 The service cost For each site pj, it has a range rj, such that fj(d)=0, if d≤rj fj(d)=+∞, if d>rj pj rj rj

Computing w(i,j) for the k-coverage (cont.) Reduce querying w(i,j) to the following points in intervals query problem Given n points p1,…,pn sorted on a line, each pi is associated with a cost ci and an interval Ii that contains pi Query: For each query (i,j) with i≤j, report a point pm with the smallest cost such that i ≤m≤ j and pm is contained in all intervals from Ii to Ij

Computing w(i,j) for the k-coverage (cont.) Reduce querying w(i,j) to the following points in intervals query problem Given n points p1,…,pn sorted on a line, each pi is associated with a cost ci and an interval Ii that contains pi Query: For each query (i,j) with i≤j, report a point pm with the smallest cost such that i ≤m≤ j and pm is contained in all intervals from Ii to Ij j i

Computing w(i,j) for the k-coverage (cont.) Our solution to the points in intervals query problem Preprocessing: O(n) time Query: O(1) time Approach: shrink some intervals, range-minima j i

Computing w(i,j) for the linear model The facility opening cost, ci≠0 The service cost functions are linear For each site pj, fj(d)=aj * d We do not build a query data structure An observation: Compute a special group of O(n) edge weights in O(n log n) time Modify the two k-link shortest path algorithms Use a new row-minima algorithm instead of the linear time SMAWK algorithm Overall running time: O(T log2n)

Conclusions uniform k-median O(nk) O(T) k=Ω(log n) k-median O(T log n) Problems Previous Our results Ours is better when uniform k-median O(nk) O(T) k=Ω(log n) k-median O(T log n) k=Ω(log3 n) k-coverage linear model O(T log2n) k=Ω(log5n) L∞ path partition O(nk logk) always Ld path partition T=min{n*sqrt{klogn}, n*2O(sqrt{logkloglogn})}

Thank you