VORONOI DIAGRAM IN THE LAGUERRE GEOMETRY AND
ITSAPPLICATIONS*
HIROSHI IMAIf, MASAO IRIf AND KAZUO MUROTA"
Abstract. Weextendtheconcept of Voronoidiagraminthe ordinaryEuclideangeometry fornpoints totheone intheLaguerregeometryfor n circles inthe plane, where thedistancebetween a circleanda pointis defined by thelengthofthe tangentline, andshow that thereis an O(nlogn)algorithmfor this extended case. The Voronoi diagram in the Laguerregeometry may be applied to solving effectivelya numberofgeometrical problemssuch asthoseofdetermining whetheror not apointbelongsto theunion of n circles, of finding the connected components ofn circles,andoffinding thecontourof theunionof n circles. Asinthe casewithordinaryVoronoidiagrams, thealgorithms .proposed here for those problems are optimaltowithin a constantfactor.Someextensions oftheproblem andthealgorithm fromdifferent viewpointsarealsosuggested.
Keywords. Voronoidiagram, computational geometry,Laguerregeometry, computational complexity, divide-and-conquer, Gershgorin’s theorem
Introduction. The Voronoi diagramfor a set of n points inthe Euclideanplane is one ofthemostinterestingand usefulsubjectsin computationalgeometry. Shamos and
Hoey [15]
presentedan algorithm which constructs the Voronoi diagram in the Euclidean plane inO(n
logn)
time by using the divide-and-conquer technique, and showed many useful applications. Since then, variousgeneralizations of the Voronoi diagram have been considered.Hwang [6]
andLee
andWong [10]
considered the Voronoidiagramsfora setofnpointsunder the Ll-metric, and theL1-
and Lo-metrics, respectively, andgaveO(n
logn)
algorithmstocompute them.Lee
and Drysdale[9]
studied theVoronoi diagrams fora set of n objectssuch asline segments orcircles, where the distance between a point and an object is defined as the least Euclidean distance from the point to anypoint of the object, and therefore the edges of these Voronoidiagramsare nolongersimple straightlinesegments butmaycontainfragments of parabolic orhyperbolic curves. They gave an
O(n(log n) 2)
algorithm toconstruct these diagrams,and Kirkpatrick[7]
reduced itscomplexity toO(n
logn).
Here
weextend the concept of usualVoronoidiagraminthe Euclideangeometry for npointstotheonein theLaguerre
geometry forn circles in theplane,where the distancefrom apointtoacircle is definedby thelengthof thetangentline. Then the edges ofthese extended diagramsaresimple straight line segments whichare easyto manipulate.We
show that thereis anO(n
logn)
algorithm for thisextendedcase.In
spite of the unusual distance employed here, the Voronoi diagram in theLaguerre
geometry can beappliedtosolving efficientlyanumber ofgeometric problems concerningcircles.By
usingthisextendedVoronoidiagram,theproblemofdetermining whetheror not apointbelongstotheunionofgivenn circles canbe solved inO(log n)
time and
O(n)
space withO(n
logn)
preprocessing.We
can also solve the problem offindingthe connected components ofgiven n circlesinO(n
logn)
time, which can be applied to a problem in numerical analysis, namely, estimating the region where the eigenvalues of a given matrix lie[4].
The problem of finding the contourof theunionof n circles can also be solved in
O(n
logn)
time,which canbe appliedtoimage processingand computergraphics.As
in the caseof theproblemsconnectedwiththe*Receivedby the editors December 15, 1981,andinfinal revised formAugust20, 1983.
"
Department of Mathematical Engineering and Instrumentation Physics, Faculty of Engineering,University ofTokyo,Tokyo,Japan 113.
93
Downloaded 09/01/14 to 143.107.45.106. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php
ordinaryVoronoi
diagram,
the methodsproposedhereareoptimalto within a constant factor.Some
further generalizations ofthe problems and the algorithmsfrom different viewpoints arealso suggested.1.
Laguerre geometry.
Consider the three-dimensional real vectorspace R
3where the distance d(P, Q) betweentwopoints
P= (xl,
yl,Zl)
andO (x2,
y2,z2)
isdefined by
d2(P,
Q)(Xl- x2) +(y- y)-(z- z) . In
theLaguerre
geometry[1],
a point
(x,
y,z)
in this spaceR
3 ismade to correspond to a directed circle in the Euclidean planewith center(x, y)
and radiusIzl,
the circlebeing endowed with the directionofrevolutioncorrespondingtothesignof z. Then the distance between two points inR
3 corresponds to the length ofthe common tangent of the corresponding twocircles. Hereafter we consider the planewith distanceso defined.Note
here that, solongasthedistancedL(Ci,P)
betweenacircleCi
C(Q;r)
with centerand radius
r
and a pointP (x, y)
is concerned, the direction of the circle has no meaningsince the distancedL(C, P)
is expressedas(1) d2(C,, P) (x- x,) +(y- y,)Z-
r,,2d(C,
P)
being the length of thetangent segment fromP
toC
ifP
is outside ofC.
Note
that, accordingasapointP
lies inthe interiorof,onthe periphery of,orin the exteriorof circle Ci,d2(C, P)
isnegative, zero,orpositive, respectively. The locus of the pointsequidistant from twocirclesC
andC
is a straightline, calledthe radical axis ofC
andCj,
which is perpendicularto the lineconnectingthetwocenters ofC
and
Cj.
Iftwo circles intersect,their radicalaxis is theline connectingthetwo points of intersection.Typicaltypes ofradicalaxes are illustrated inFig.1.If thethree,centers(a) (b} (c}
(Ci
:Cj) (Cj’Ck)
(Ck,C
(d)
FIG. 1. Radical axesandradicalcenters.
Downloaded 09/01/14 to 143.107.45.106. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php
of three circles Ci,
Cj
andCk
are not on a line, the three radical axesamong Ci,Q
andCk
meetata point, whichiscalled the radical center of Ci,CjandCk (see
Fig.1(d)).
2. Definitionofthe Voronoidiagraminthe
Laguerre geometry. Suppose
ncirclesCi C Q; r)
Q(x, y))
aregiveninthe
plane,wherethedistance betweenacircleC
and apointP
isdefinedby dL(Ci,P)
as in 1.Thenthe VoronoipolygonV(C)
for circleC
is definedby(2) V(C) {pR21d2L(C,P)<-_d2L(C,P)}.
Note
that theinequalityd2c(C, P)
_-<d2c(C, P)
determines ahalf-plane so that V(Ci) isconvex.However,
note also thatV(C)
maybeempty
andthatC
maynot intersect its polygonV(C)
when circleC
is contained in the union of the other circles. The Voronoi polygonsfor n circlesCi
(i--1,...,n)
partition the wholeplane, whichweshall
referto as the Voronoidiagram intheLaguerre
geometry(see
Fig.2). A
corner ofaVoronoi polygon is called a Voronoipoint, and aboundary
edge ofthe Voronoi polygoniscalleda Voronoiedge. Furthermore,acirclewhose correspondingVoronoi polygon is nonempty(empty)
is referredto as a substantial (trivial) circle. In Fig. 2, circleC3
is trivialand all the others are substantial.It
isalsoseenthat,inFig. 2, circleC2
hasnointersectionwithV(C2). A
circle that intersects thecorrespondingVoronoi polygon is said to be proper, and a circle whichis not properis called improper. The following is immediate fromthe above definitions./v(ce /
7)
FIG.2. Voronoidiagram in theLaguerregeometry.
LEMMA
1. (i)A
trivial circle is necessarilyimproper.(ii)
An
improper circleis contained intheunionof
thepropercircles.Obviously, if ri 0 for all i, the Voronoi diagramin the
Laguerre
geometry reduces tothatinthe
ordinaryEuclidean geometry.In
a Voronoi diagram in theLaguerre
geometry, a Voronoi edge is(part of)
a radical axis and aVoronoi pointis a radical center. Sincethe diagram isplanar, and Euler’s formula[5]
still holds, wehaveLEMMA
2. There areO(n)
Voronoi edgesandpoints in the Voronoi diagram in theLaguerre
geometryfor
ncircles.In
the case of the Voronoi diagram in the ordinary Euclidean geometry for n pointsP
(i--1,...,n),
the Voronoi polygonV(P)
is unbounded iff pointP
is onthe boundary of the convex hull of the n points Pi, but,
for
the Voronoi diagram inDownloaded 09/01/14 to 143.107.45.106. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php
the
Laguerre
geometry for n circlesC
with center Q, this statement needs some modification, asinLemma3 below.In
Fig. 3,thecenterQ2 ofC2
lies ontheboundaryof the convex hull of the centers, but
V(C2)
isempty./"
v(c3FIG.3. Relationsbetween the convex hull and Voronoipolygons.
LEMMA 3.
In
the VoronoidiagramintheLaguerre
geometry, theVoronoipolygonV(
Ci) is nonempty andunboundedif
thecenterQiof
thecircleCi
is at a cornerof
theconvex hull
of
the centers Qi,. Q,. Furthermore,if
thecenterQj of
acircle Cj is onthe
boundary of
thisconvexhull butnot atacorner, itsVoronoipolygonV( C)
iseitherunboundedorempty.
If
thecenterQkof
acircleCk
is notontheboundaryof
this convex hull, its VoronoipolygonV( Ck)
is eitherboundedorempty.Proof.
Consider the Voronoi diagram in theLaguerre
geometry for n circles Ci(Qi;ri) (Qi=(x,y);
i=1,...,n),
wherewe canassumey
yi (i])
without lossof generality. First recall
(cf. (1), (2))
thatapointP=(x, y)
belongs toV(C1)
iffd2(C1, P) --< d(C, P),
1,,
n,(3)
where(xi-
x)x + (Yi- Y)Y <=
Ri, i=l,...,n,2_
x- y2 + r21)/2.
Ri (xZi + y-
rNext,
note that thecenterOa
ofCa
lies on the boundary (including thecorners)
of the convex hull of{ Oli
1,., n}
itf(4)
:l(a,fl)( (0, 0)): a(x,-xa)+(y-yl)<=O,
i=l,...,n,since all the centers
O
(i=2,...,n)
lie on one side with respect to a line passingthrough
(xa, Yl).
Suppose
thatV(Ca)
and(Xo, Yo)
EV(Ca).
Then,V(Ca) f)
isunbounded itt ahalf line startingfrom(Xo, Yo)
is contained inV(Ca),
i.e.,=l(a,/3)( (0, 0)), VM(>0): (x, y)=(xo+Ma, yo+Mfl)
satisfies(3),
Downloaded 09/01/14 to 143.107.45.106. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php
whichiseasily seentobeequivalentto
(4)
above,sothatV(C1)
#)
isunbounded iff thecenter Q1 ofC1
liesonthe boundaryofthe convex hull.When the center Q1 liesat a corner of the convex hull,there exist two distinct pairs of
(a,/3),
say,(al,/31)
and(a2,/32)
such that(4)
holds and that the vectors (xi-xl,Yi-Yl)
(i=2,...,n)
can be represented as linear combinations of(al,/31)
and(a2,/32)
withnonpositive coefficients one ofwhich isstrictly negative.The assertion thatV(C1)#
easilyfollows from the fact that(3)
holds for(x, y)=(Ma, Mfl)
withasufficientlylarge
M(>0),
where(a,/3) (al +
a2,/31+/32).
3. Construction of the Voronoi diagram in the
Laguerre
geometry.We
shall show that the Voronoi diagram in theLaguerre
geometry can be constructed inO(n
logn)
time.Thealgorithm isbasedonthe divide-and-conquer technique,which isvery much like the oneproposed initiallyby ShamosandHoey [15]
inconstructing the Voronoi diagram in the ordinary Euclidean geometryfor n points, but which is different insome essential points.We
shallbrieflyreviewShamosandHoey’s
algorithm first, and thenexplain the difference.Shamos and
Hoey’s
algorithmworksasfollows.For
agivensetS{P1,
P2,", Pn}
of n distinct points, we sort them lexicographically by their
(x,
y)-coordinates with the x-coordinate asthe first key.Then, renumbering the indicesof thepoints in that order,wedivideSinto twosubsetsL {P1,
P2," ",Pin
andR {P[n/2]+l,"
",P,}.
We
recursivelyconstruct theVoronoidiagramsV(L)
andV(R)
for points in L andR,
respectively,andmerge V(L)
andV(R).
Ifwe canmergeV(L)
andV(R)
inO(n)
time, theVoronoi diagramV(S)
canbe computed inO(n
logn)
time.By
virtue of the manner of partitioning S intoL
andR,
there exists a unique unicursal polygonalline, called the dividing (polygonal) line, such thateverypoint to the left[right] ofit iscloserto somepointinL [R]
than toanypoint inR [L]. Once
this dividing line isfound, wecan obtain the diagram
V(S)
inO(n)
time simply by discarding that part of Voronoiedges inV(L)
andV(R)
which lies, respectively, to the right and tothe left of thedividing line.Hence,
the main problem in mergingV(L)
andV(R)
is to find the dividing polygonal line inO(n)
time, which is actually possible by virtue of the following properties(Lemmas
4 and5)
ofthe dividingline.LEMMA
4. The dividinglineiscomposedof
tworaysextendingtoinfinityandsomefinite
line segments. Each element(a
rayor asegment)
iscontainedin theintersectionof
V(Pi) inV(L)
andV(P)
inV(R) for
somepairof Pi L
andP R
and istheperpendicularbisector
of Pi
andP.
IqLEMMA
5. Eachof
thetworaysistheperpendicularbisectorof
apairof
consecutive pointson theboundaryof CH(S),
theconvex hullof
pointsof S,
such that one is inLand theotherinR.
Lemma
4 impliesthat, given aray,wecanfindthe dividinglineinO(n)
time by tracingitfrom theraytothe otherbymeansofaspecialscanning scheme, i.e.,bythe clockwise and counterclockwise scanning scheme[9]. Lemma
5, on the other hand, enables us to find a ray inO(n)
time fromCH(S),
which, in turn, can be found inO(n)
time fromCH(L)
andell(R) [14], [15].
Most
of the above ideas for theEuclidean Voronoidiagram,with suitable modifica- tions, can be carried overtoobtainan efficientalgorithmforconstructingthe Voronoi diagramin theLaguerre
geometry for n circles C(Qi;r)
asfollows.The firstproblem ishowtopartition thesetof givencircles into twosubsets.
We
partitionthesetSofncirclesC
into two setsLandR
withrespecttothecoordinates ofthe centersQ
ofC.
That is, we sort centers Q (i= 1,...,n)
lexicographically byDownloaded 09/01/14 to 143.107.45.106. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php
their
(x,
y)-coordinates with the x-coordinate as the first key and divide them into two subsets.Then,the locus of points equidistant (intheLaguerre geometry)
fromL
andR,
whichwe
call thedividingline(see
Fig.4),
enjoys the same propertyasinthe Euclideancase, asstated below.I
FIG.4. Merging the Voronoi diagramsintheLaguerregeometry.
LEMMA
6. The dividing polygonal line is unicursal, consistingof
two rays andseveral
finite
line segments.Every
point totheleft
[right]of
thispolygonallineis closer(in thesense
of
theLaguerre geometry)
tosome circleinL [R ]
thantoanycircleinR ILl.
Proof. By
rotating clockwise the axes, ifnecessary, by a sufficiently small angle, wecan assume thatx
# xj (i# j). Then there exists noVoronoi edge parallel to the x-axis.Downloaded 09/01/14 to 143.107.45.106. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php
Itsufficestoprovethat, forany t, thereexistsoneandonlyoneintersectionpoint
P (s, t)
ofthedividingline withthe line y t,i.e,, thedividinglineismonotoneand henceunicursal.By
the assumption that xi# xj (i# j), there exists at least one such pointP= (s, t),
since the point(-oo, t)
is nearer toL
than toR
whereas the point(+oo, t)
is nearer toR
than toL.For such a point
P=(s, t)
let Ci(Qi;ri) be the circle inL
that is nearest to the pointP
andCj(Q; r)
the circle in R that is nearest toP.
Sincex < x,
we see by elementarycalculationthat, forsome e>
0,(5) (s+
e,t) V(C)
and(s-
e,t)
V(Ci).Suppose
that therewere more than oneintersectionpoint, say,P1-" (S1, t), P2-"
(s2, t),. , Pk (Sk, t) (Sl <
S2 <"<
Sk; k>-2). It
follows from(5)
that the points(s, t)
with s Sl+
e< s2)
arenearertoR
thantoL,
whereas the pointswith s s2-e(> sl)
are nearertoL
thantoR. Therefore,thereexistsone andonlyoneintersection pointP (s, t)
ofthedividinglinewiththe line y t. TheLemma
then followsbythe continuity arguments. [3Itshould be noted that thepropertyof theaboveLemma6 doesnotholdfor the Voronoi diagramfor linesegments, i.e., that theremay
appear
an "L-island" inthe R-region and viceversa, whichmakes the problem quite complicated[9].
Thesecondproblemis to tracethedividinglinefromagiven
ray
totheotherray in linear time. Since a statementsimilar to Lemma4 holds for the Voronoi diagram intheLaguerre
geometry, we cansimplyutilize theordinary clockwiseand counter- clockwise scanning scheme by taking advantageofthe factthatthe Voronoiedgesare straightlines.The last problem is to find a ray in
O(n)
time. The ray is found just as in the ordinary Voronoidiagramfrom the convex hull of thecenters(cf.
Lemma5),
provided that thenew hull edge is not degenerate (i.e.,not collinear).In
the degeneratecase,
however, the property ofLemma
5, as it stands, does not necessarily hold, and something moreis needed.For
example,consider thecase shown inFig.5(i),
where one ofthenew hull edgesisdegenerate.Let
be the line of thenew degeneratehull edgeof the convex hull of thecenters.Even
ifQ4andQ5
are the closest pair ofcenters on such thatC4
eL
andC5
eR,
the radicalaxisofC4
andC5
doesnotappear
in theVoronoi diagram (Fig. 5(ii)).
In
place ofLemma
5,we have the followingLemma
7 intheLaguerre
geometry.LEMMA
7. Consider the lineof
thenewhull edge (inthedegeneratecase,edges)
of
the convex hullof
thecenters Q1, Q,.Let L
andR
besetsof
circles inL
andR,
respectively, with theircenters onI.
LetC, LI L
andC, R _ R
be twocircleswhich have the corresponding Voronoiedge
e*
in the Voronoi diagramV(Lt U R)
in theLaguerre
geometryfor
the subsetLt I..J Rt of
circles. Then,e*,
which is the radicalaxis
of C,
and Cj,, isa rayof
the dividinglineinmergingV(L)
andV(R).
Proof.
From theLemma
3, itis obvious that the twocircles corresponding to aray ot V(L t.J R)
havetheir centers ontheboundaryot
theconvex hull of Q1,", Q,.
Therefore, theedge
e*
isthe onlycandidate forthe rayot
the dividingline. [3In
order to find the ray of the dividingline inO(n)
time, we find the Voronoi edgee*
inthe diagramV(LI R)
forcirclesinL
13R
in linear time inthe tollowing way.Note
that the Voronoiedges ofV(L t.J Rt)
are allparallel.First, we construct the diagrams
V(L)
andV(R)
for circles inL
and inRt,
respectively,from the diagrams
V(L)
andV(R),
whichcanbe done inlinear time as tollows. Considering apart of thediagramV(L)
far fromthe line l, we see thattwo circles inL
share a Voronoi edgeinV(L)
iff they share a Voronoi edge inV(L).
Downloaded 09/01/14 to 143.107.45.106. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php
C7
C3
C6
C 7
C3
C6
V(C
I)
v(C2)
V(C3)
V(C6)
V(C7)
FIG. 5. Finding a ray in a degenerate case. (i) Degenerate new hull edge (Lt={C1,C2,Ca,C4}, Rt={Cs,C6,C7}).(ii) V(LU R). (iii) V(L) andV(R).(iv) V(Lt)andV(Rt).
Downloaded 09/01/14 to 143.107.45.106. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php
V(RZ)
V(C
5)
V(C
1)
V(C2)
V(C3)
V(C
6)
V(C7)
e*
c
7V(C
4)
V(L)
FIG.5.(cont.)
Hence,
thediagramV(Lt)
canbe constructedsimplyby pickingoutthe Voronoiedges(rays)
of pairso
circles inLt
in the diagramV(L). (In
the example of Fig. 5, theV(Lt)
shown in Fig. 5(iv) by broken lines can be obtained by extending that part (consistingof parallel lines) ofV(L)
which is fardown to the bottom inFig. 5(iii).)A
similarconstruction is validor
the diagramV(R).
Next,
we canfinde*
fromV(L)
andV(Rt)
in lineartime as follows. Since all the Voronoiedgesin
bothdiagramsV(Lt)
andV(Rt)
are perpendicularto l, wecanmerge
the diagramsV(Lt)
andV(Rt)
to obtainV(Lt U RI)
in linear time in a way similartothatinwhichwemergetwosorted listsintoasinglesorted list.In
themerged diagram ofV(Lt),
andV(Rt),
each region between two neighbouring edges is the intersection of two Voronoi regions, one inV(L)
and theother inV(R). For
each region of the merged diagram, with which is associated a pair (CiEL, CjE R)
of circles, we examinewhether or not there exists a point equidistant (in theLaguerre geometry) rom Ci and Cj
withinthe region; ithere exists one, the radical axiso Ci
andC
istheraye*. (In
theexampleot
Fig. 5(iv),theraye*,
lyingin theintersection ofV(C3)
inV(Lt) and V(C6)
inV(R),
is equidistant fromC3
and6"6.)
Since thenumber of thoseregionsin thatdiagram is
O(n),
wecan finde*,
which isthe ray of the dividing line, inO(n)
time.V(LtU Rt)
is ready to obtain fromV(Lt), V(Rt)
ande*.
Thus,ithas been shown thatthe Voronoidiagram in the
Laguerre
geometryfor n circlescan beconstructed inO(n log n) time.
4. Applications.
Problem 1. Given n circles in the plane, determine whether a given point
P
is contained in their unionor not.Oncewehave constructedtheVoronoidiagramin the
Laguerre
geometryforthe given n circles Ci(i=1,...,n),
we have only to find the Voronoi polygonV(Cj)
containingP
andcheck
ifP
lies in Cj. IfP
is not inC,
then for any circleC, d(C,
P)->_d2(Cj, P)>
0,and thereforeP
is notinany circle. SincewecanconstructDownloaded 09/01/14 to 143.107.45.106. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php
the Voronoidiagram in the
Laguerre
geometryinO(n
logn)
time, andlocateapoint in a polygonal subdivision of the plane inO(log n)
time andO(n)
storage, usingO(n
logn)
preprocessing[8], [12],
we cansolve thisproblemcompletely inO(log n)
time andO(n)
storagewithO(n
logn)
preprocessing.Problem 2. Partition thesetof n circlesintothe connected components. That is, findtheconnectedcomponents of the intersectiongraphofthe n circles,i.e.thegraph whose vertices are the circles and which hasanedgebetweentwoverticesiff thecircles corresponding tothem intersect in the plane.
This problem arisesinnumerical analysiswhen we estimate theeigenvaluesofa matrixbymeans ofGershgorin’stheorem
[4].
Thoughthe intersectiongraphcanhaveO(n 2)
edges, we can solve this problem inO(n
logn)
time as follows withthe help ofthe VoronoidiagramintheLaguerre
geometry.Since animproper circle is contained in theunion ofthe propercircles
(Lemma 1)
and does not affect the connectedness of the other circles, we first consider only propercircles. Forthe connectedness of propercircles, we have:LEMMA
8.For
anypairof
propercirclesC andC’
inthesameconnectedcomponent,thereexists a sequence C C1, C2,"
, Ck C’ of
propercirclessuchthateverypairof
consecutivecircles intersect eachothersothatthey havethe correspondingVoronoiedge.
Proof.
Considerthe connected componentSt
whichconsistsofpropercircles and containsC
andC’.
Since the union of circles in $I is a connected region and is partitioned intoCiN
V(Ci)(Ci.S1)[i.e., U{CilfiSI}-
U{CiNV(Ci)ICSI}],
wecantake apath within thisconnected region from apoint in C
n V(C)
toa point inC’N V(C’).
Considering.a sequence C CI,
C2,’",Ck C’
of circlesin
the order in which this pathpasses through C n V(C)
(CiSz),
we cansee that every pair of consecutive circles in thissequence intersect each other so thatthey have the corre- spondingVoronoi edge. []We
construct a subgraph G of the intersection graph of the n circles which is guaranteedby Lemma
8 tocarry the same information as the intersection graph so far as theconnected components of the propercircles are concerned.For
each pair ofproper
circles (Ci,Cj)
having acommonVoronoiedge, weputanedge connectingCi
andCj
inG
ifthe two circlesC
andC
haveanonemptyintersection in theplane.The graph G can be constructed in
O(n)
time since there exist onlyO(n)
Voronoi edges.Furthermore, theconnectedcomponents ofGcaneasilybefoundinO(n)
time.In
ordertofind which components theimproper circles belongto, we firstmake a listofall
the impropercircles,amongwhich the trivial circlesarefoundin thecourse of the construction ofthe diagram and thesubstantialbut impropercircles arefoundby
scanning allthe Voronoiedges.Next,
for each impropercircleCi, wefind aproper
circlethat intersects
Ci
by locating thecenter Qi ofCi
in the diagram; if QV(C),
then
C
is a proper circle that contains Q, i.e., intersectsC.
The set of centers ofimproper circles can be located in the diagram in
O(n
logn)
time by means of thesimple
algorithmwhichmakes use ofabalancedtree[11].
Thus,thetotal timetofindthe
partition of n circles into the connectedcomponents isO(n
logn).
Thisalgorithm is optimal towithin a constantfactor.
In
fact,we haveLEMMA
9.Any
algorithm whichfinds
the partitionof
n circles into theconnectedcomponentsmakesatleast
II(
nlogn)
comparisons under the linear decisiontreemodel Areferee has kindly informed the authors thatthislemma holdstrue notonly under thelinear decision treemodel but also under the more precise algebraic computationtreemodel, basedontherecentresult byBen-Or(see M. Ben-Or, Lowerboundsforalgebraiccomputation trees,Proc. 15thACM Symposiumon Theory of Computing,Boston,1983,pp. 80-86).Downloaded 09/01/14 to 143.107.45.106. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php
Proof.
Thisfollowsimmediatelyfrom the factthat the element-uniqueness prob- lem, i.e., to determine whethergiven, n real numbers are distinct, reduces in linear time to the connected-component problem, where the lower boundot f(n
logn)
is known for the element-uniqueness problem under the above model of computation[3]. D
Problem 3. Find the contour ofthe unionof n given circles in theplane.
This kindofproblemissometimesencountered inimageprocessingandcomputer graphics. First, we construct the Voronoi diagram in the
Laguerre
geometry for n circles and then collect that part of the periphery of each circleCi
which lies in theVoronoi polygon V(Ci) for i=1,...,n. The validity of this algorithm is obvious.
Concerningthe number of circulararcson the .contour, we have thefollowing.
LEMMA
10. The numberof
circulararcson thecontour isO(n).
Proof. To
distinctpairs ofconsecutivearcsof the contour, therecorresponddistinct Voronoi edges (i.e.,radicalaxes),
the. numbero
which isO(n).
This algorithmis optimal for thecontourproblem..
In
fact,we haveLEMMA
11. The complexityof
finding the contourof
the n circles in theplane isf(n
logn)
under the decision treemodel.Proof. We
showthat sortingnreal numbersXl,x2,",
x,reducesto thisproblem inO(n)
time.First, findx.
min(xi)andx*
=max(x),
andletRx*-x.>-O.
Then,consider n circles with centers
(x, 0)
and radiiR (see
Fig.6).
The contour of the union of thesecirclesconsistsof circular arcs, and the order of arcs,accordingtowhich the contourcan be tracedunicursally, gives usthe sorted list of n numbers.FIG. 6. Reductionofsortingtofinding thecontouroftheunionofcircles.
5. Discussion. Consider the Voronoi diagram in the
Laguerre
geometry for n circles C(Qi;ri) (Qi=(x, yi); i=1,...,n).
This diagram will remain invariant if2 2
ri.(i
1,..’,n)
arereplacedsimultaneouslybyr-R
withsomeconstantR;
inotherwords,thisdiagramcan be regardedastheVoronoi diagramfor n points Q
(x, y)
inthe plane where,withsomeconstantR,
a distance d(Q,P)
between Q andapointP (x, y)
is defined byd2(Q,,P)=(x-x)2+(y- yi)2-r
2+R.
On
the other hand, the two-dimensional section (with z=0)
of the Voronoi diagram in the three-dimensional Euclideanspace
for n pointsP (x,
y,zi) (i1,...,
n)
is a kind of Voronoi diagram for n points Qi(x, y)
(i 1,...,n),
which we will callthe section diagram(or,
the generalized Dirichlet tessellation[13]),
withthe distance d(Q,
P)
between Q and a pointP= (x, y)
defined byd2(Q,,P) (x x,)2+(y- y)2+
z2Downloaded 09/01/14 to 143.107.45.106. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php
2 2
Hence,
by setting rR-
z with sufficiently large constantR,
the algorithm we presented here can be applied to the construction inO(n
logn)
time of the section with the plane z =0 of the Voronoi diagram for n points in the three-dimensional Euclidean space.More
generally, we can consider the section of the Voronoi diagram in the k-dimensionalspace
with the distance d(P,Pj)
between two points,P x
andPj x R k,
definedbyd
2 P,, P) (x,- x G
x,x
where
G
is a kx
k symmetricmatrix[13], [16]. We
canapplythealgorithm presented here to such section diagrams even ifG
is not positive definite(for
example, G=
diag[1,-1,-1]).Here,
itshould be noted that the Voronoi diagramin theLaguerre
geometryitself is thesectionwiththeplane z 00t the Voronoi diagramor
npointsP (x,
y,z)
in three-dimensionalspace
where the square of distance between two points(xl,
Yl,Zl)
and(x2,
Y2,Z2)
is defined by(x1-x2)2+(y1-Y2)2-(zl-z2) 2.
Nevertheless,itwould be worth whiletoconsiderthe Voronoi diagraminthe
Laguerre
geometryinconnection withthecirclessince,then,theVoronoiedgesand the Voronoi pointshave the geometrical andphysical meaningsof radicalaxes andradicalcenters, respectively.Condutlingremarks.
We
have shown that the Voronoidiagramin theLaguerre
geometrycanbeconstructed inO(n
logn)
time, andisusefulforgeometric problems concerningcircles.Brown [2]
consideredatechniqueofinversionwhich isalso useful forgeometrical problemsfor circles.In act,
it can beappliedtotheproblemstreated in the presentpaper.However,
ourapproachisintrinsicin theplaneand would be of interestin itself.We
havealsodiscussed the relationbetween the Voronoidiagramin theLaguerre
geometry and the two-dimensional sectiono
the Voronoi diagram in the three-dimensional Euclidean space.Aeknowletlgment. The authors thank the referees for many helpful comments, without which the paper mighthave been less readable.
REFERENCES
[1] W. BLASCHKE, Vorlesungen iiberDifferentialgeometrie III, Springer,Berlin, 1929.
[2] K.Q. BROWN, Geometrictransforms[orfastgeometric algorithms, Ph.D. thesis,ComputerScience Department, Carnegie-MellonUniv., Pittsburgh,PA,1979.
[3] D. P. DOBKINANDR. J. LIPTON, Onthe complexityofcomputations under varyingsetsofprimitives, J.Comput.SystemSci., 18(1979), pp. 86-91.
[4] O. K. FADDEEV AND V. N. FADDEEVA, Computational Methods ofLinear.Algebra, Fizmatgiz, Moscow, 1960; translatedbyR. C.Williams,Freeman, SanFrancisco, 1963.
[5] F. HARARY,GraphTheory, Addison-Wesley,Reading,MA,1969.
[6] F. K. HWANG, An O(nlogn) algorithmforrectilinear minimalspanning trees,J. Assoc. Comput.
Mach., 26(1979), pp. 177-182.
[7] D. G. KIRKPATRICK,Efficientcomputationo]:continuousskeletons, Proc.20thIEEESymposium on FoundationsofComputerScience,SanJuan,1979, pp. 18-27.
[8]
.,
Optimal searchinplanarsubdivision,thisJournal, 12(1983),pp. 28-35.[9] D.T. LEEANDR. L.DRYSDALE, III,GeneralizationofVoronoi diagramsintheplane,thisJournal, 10(1981),pp.73-87.
[10] D. T. LEE AND C. K. WONG, Voronoi diagrams in Ll(Loo) metrics with 2-dimensional storage applications,thisJournal, 9(1980), pp. 200-211.
[11] O.T.LEEANDC. C. YANG,Locationofmultiplepointsin aplanar subdivision, Inform.Proc. Letters, 9(1979),pp. 190-193.
Downloaded 09/01/14 to 143.107.45.106. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php
[12] R.J. LIPTONANDR.E.TARJAN,Applicationsofplanarseparatortheorem,Proc.18th
IEEE
Symposium on Foundations ofComputerScience,Providence,RI, 1977, pp. 162-170.[13] R. E. MILES, The random divisionofspace,Suppl.Adv.Appl.Prob.(1972), pp.243-266.
[14] F. P.PREPARATAANDS.J. HONG, Convexhullsoffinitesetsofpointsintwoorthree dimensions, Comm. ACM,20(1977), pp.87-93.
[15] M. I.SHAMOSANDD. HOLY,Closest-pointproblems, Proc.16thIEEESymposiumonFoundations ofComputerScience,Berkeley,CA,1975,pp. 151-162.
[16] R.SIBSON,Avectoridentityforthe Dirichlet tessellation, Math.Proc. Camb.Phil.Soc.,87(1980), pp.
151-155.
Downloaded 09/01/14 to 143.107.45.106. Redistribution subject to SIAM license or copyright; see http://www.siam.org/journals/ojsa.php