1 / 19

A linear time algorithm for the weighted lexicographic rectilinear 1-center problem in the plane

A linear time algorithm for the weighted lexicographic rectilinear 1-center problem in the plane. Nir Halman, Technion, Israel. This work is part of my Ph.D. thesis, held in Tel Aviv University, under the supervision of Professor Arie Tamir. Planar 1-center problems.

talib
Download Presentation

A linear time algorithm for the weighted lexicographic rectilinear 1-center problem in the plane

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A linear time algorithm for the weighted lexicographic rectilinear 1-center problem in the plane Nir Halman, Technion, Israel This work is part of my Ph.D. thesis, held in Tel Aviv University, under the supervision of Professor Arie Tamir

  2. Planar 1-center problems Input: a set P={p1,…,pn}of n points pi=(xi,yi) a set W={w1,…,wn}of positive weights Output: a center p=(x,y) which minimizes f(p)=Maxi {wid(p,pi )} where d is a distance function Motivation: customers, service center, 1/wi=speed d=l2: solvable in linear time [M83],[D86],[SW96]

  3. Rectilinear 1-center (d=l1) c = Minp Maxi {wi (|xi-x|+|yi-y|)} Min c s.t. wi (|xi-x|+|yi-y|)  c, i=1,…,n Min c s.t. wi ((xi-x)+(yi-y))  c, i=1,…,n, wi (-(xi-x)+(yi-y))  c, i=1,…,n, wi ((xi-x)-(yi-y))  c, i=1,…,n, wi (-(xi-x)-(yi-y))  c, i=1,…,n. Transform the problem into one where d=l

  4. 1-center problem with d=l c = Minp Maxi {wi Max{|xi-x|,|yi-y|}} Min c s.t. wi|xi-x|  c, i=1,…,n, wi|yi-y|  c, i=1,…,n. Decomposition into 2 one-dimensional problems Min cx s.t. wi|xi-x|  cx i=1,…,n. Min cy s.t. wi|yi-y|  cy i=1,…,n. c=Max{cx , cy}

  5. Lex 1-center problem [O97] Unique solutions to 1-dimensional problems and Euclidean planer 1-center This is not the case for planar 1-center with l1 , l Input: a set P={p1,…,pn}of n points pi=(xi,yi) a set W={w1,…,wn}of positive weights Output: a center p=(x,y) which lex-minimizes lf(p)=q(w1d(p,p1),…,wnd(p,pn )) where q is the non-decreasing ordering of a multi-set

  6. Y p3=(3,2) p1=(-4,1) p5=(5,0) X p2=(6,-1) p4=(2,-3) Example The distances vector is lf(p)=(5,5,4,2½, 2½) No O(n log n) time algorithm exists

  7. Talk outline • Introduction • An (n log n) lower bound for calculating the optimal value of the optimal solution • A restricted problem, the min rays problem and the relations between them • Solving the min rays problem in linear time • Putting it all together 

  8. Lower bound Obs 1:it takes(n log n) time to compute the distances vector of a given set of n real points Proof: reduction from sorting Given is a set R={r1,…,rn}of n real numbers Suppose the minimal element is 0 Set P={r1,…,rn ,2rmax} Center is rmax Distances vector yields sorting of R

  9.  Talk outline • Introduction • An (n log n) lower bound for calculating the optimal value of the optimal solution • A restricted problem, the min rays problem and the relations between them • Solving the min rays problem in linear time • Putting it all together

  10. Obs 2: Each gi(y) has a shape Restricted problem Input:P={p1,…,pn},W={w1,…,wn}as beforeanda real number x@ Output: a center p@=(x@,y) which lex-minimizes lf(p@)=q(w1d(p@,p1),…,wnd(p@,pn )) Setai = wi|x@- xi|, gi(y)=max{ai, wi|y-yi|}, then lf(p@)=q(g1(y),…,gn(y))

  11. gi(y) define r-i(y) as and r+i(y) as r+1 r-2 r-1 r+5 Y r+2 C p3=(3,2) r-3 p1=(-4,1) r-4 r+4 p5=(5,0) r+3 X p2=(6,-1) p4=(2,-3) Y Min rays problem Let u(y) be upper envelop of {r-i(y),r+i(y) | i=1,…,n} Goal:calculate c = min u(y) 

  12. C C Y Y Restricted vs. min rays Thm 1: y$, c$ an optimal solution of the min rays problem (x@, y$) is an optimal center in the corresponding restricted problem Proof:

  13.   Talk outline • Introduction • An (n log n) lower bound for calculating the optimal value of the optimal solution • A restricted problem, the min rays problem and the relations between them • Solving the min rays problem in linear time • Putting it all together

  14. Solving min rays problem Let y$, c$ be an optimal solution of the min rays problem, p@=(x@, y$) be an optimal center for the corresponding restricted problem. Oracle: Input: same as for min rays problem with an additional point p =(x@, y) Output:y$=y or y$>y, or y$<y Lem 1:the test oracle can be implemented in linear time

  15. index type 1 2 3 4 mix r r’ r r’ r r’ r r’ inc r’ r’ r’ r’ r r r r Solving min rays problem (cont’) Thm 2:the min rays problem is solvable in linear time Proof:partition the given 2n rays into n pairs. Group the pairs of rays into the 12 distinct sets:

  16. r r’ r’ r’ r r Solving min rays problem (cont’) Proof (cont’): ½ of the rays are dropped ¼ of rays are dropped 1/8 of rays are dropped

  17.    Talk outline • Introduction • An (n log n) lower bound for calculating the optimal value of the optimal solution • A restricted problem, the min rays problem and the relations between them • Solving the min rays problem in linear time • Putting it all together

  18. Putting it all together Algorithm: • transform the input to l • solve non-lex problem • solve min rays problem Generalizes to (in the same time bound): • lex 1-center in Rd with l norm (quadratic dependency in d ) • different weights on each of the axes • all centers

  19. Thank you !

More Related