SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and...

15
SODA’02 January 7 San Francisco, CA 1 Center and Diameter Center and Diameter Problems Problems in Plane in Plane Triangulations and Triangulations and Quadrangulations Quadrangulations Victor D. Chepoi Universite Aix-Marseille II, France Feodor F. Dragan Kent State University, Ohio Yann Vaxes Universite Aix-Marseille II, France `

Transcript of SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and...

Page 1: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

1

Center and Diameter Problems Center and Diameter Problems in Plane in Plane

Triangulations and QuadrangulationsTriangulations and Quadrangulations

Victor D. ChepoiUniversite Aix-Marseille II, France

Feodor F. DraganKent State University, Ohio

Yann VaxesUniversite Aix-Marseille II, France

`

Page 2: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

2

The Center and Diameter Problems• G = (V,E) is a connected, finite, and undirected graph

• The length of a path from a vertex v to a vertex u is the number of edges in the path

• The distance d(u,v) is the length of a shortest (u,v)-path

• The eccentricity e(v) of a vertex v is the maximum distance from v to a vertex in G • The radius r(G) is the minimum eccentricity of a vertex in G and the diameter d(G) is the maximum eccentricity

• The center C(G) of G is the subgraph induced by the set of all central vertices, i.e., vertices whose eccentricities are equal to r(G)

• The diameter problem: find d(G) and x,y such that d(x,y)=d(G)

• The center problem: find a central vertex v of G or whole C(G)

vx

y

20),()(10)()(

9),(

yxdGdveGr

uvd

u

Page 3: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

3

Graphs Considered • Trigraphs: plane triangulations with inner vertices of degree at least six

• Squaregraphs: plane quadrangulations with inner vertices of degree at least four

• Triangular and Square Systems: the subgraphs of the regular triangular and square grids which are induced by the vertices lying on a simple circuit and inside the region bounded by this circuit.

• Benzenoids, alias, Hexagonal Systems: subgraphs of the regular hexagonal grid bounded by a simple circuit

• Kinggraphs: the graphs resulting from squaregraphs by transforming each inner face into a 4-clique (includes all subgraphs of the King grid bounded by a simple circuit).

8

Page 4: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

4

Motivation• The diameter and center problems are basic problems in algorithmic graph theory and computational geometry.

• They naturally arise in communication and transportation networks, robot-motion planning and also in several other areas.

• in distributed systems, centers are ideal locations for placing resources that need to be shared among different processes in a network,

• if a graph represents a road network with its vertices representing communities, one may have the problem of locating optimally a hospital, police station, fire station, or any other "emergency“ service facility.

• the diameter of a communication network gives a lower bound on the time needed to transmit a message from an arbitrary source node to all other nodes.

22)(11)(

GdGr

Page 5: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

5

Motivation (cont.)• The starting point of our investigations of these subclasses of planar graphs was a question: how to find the center (i.e., all central vertices) of a benzenoid system efficiently [A. Balaban; in his H. Skolnik award lecture].

• Benzenoids represent a significant class of chemical graphs and their encoding constitutes an important subject of research in computational chemistry.

• One canonical way of such an encoding is to label the carbon atoms level-wise starting from the center.

• Trying to find an efficient algorithm for the center problem on benzenoids, we noticed that its solution can be obtained from the solution of the same problem on two triangular systems inferred from the initial benzenoid

Page 6: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

6

Motivation (cont.)• Squaregraphs can be used to model a road network (streets) in a city.

• Squaregraphs and Kinggraphs contain as particular cases two important classes of discrete metric spaces, extensively studied in digital geometry:

• simply connected sets of lattice points in the plane under the graph structure defined by 4-neighbor adjacency (city block distance) or 8-neighbor adjacency (chessboard distance)

• Such sets of lattice points ("pixels") arise when planar regions are digitized; they can be regarded as discrete approximations of these regions.

Page 7: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

7

Our Results• We designed a general approach for computing the centers and diameters which can be applied not only to triangular systems but also to all trigraphs, squaregraphs and kinggraphs.

• It gives linear time algorithms for computing the centers and diameters in all those graph classes as well as in all benzenoids.

• Additionally, we characterized centers of trigraphs and kinggraphs (answering a question posed by Khuller et al. [KhRoWu’00]).

• The centers of squaregraphs were characterized by Postaru [Po’84] and, independently, by Khuller et al. in [KhRoWu’00] for the particular case of the square systems.

• Some properties of centers of square systems have been given by Metivier and Saheb in [MeSa’96].

• No linear time algorithms were known for computing the centers and diameters of those graphs.

. . .

Page 8: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

8

Method: The Diameter Problem• For any vertex v of G, the set F(v)={ u V: d(v,u)=e(v) } of furthest neighbors belong to . ([Lyndon’67] and [Baues and Peyerimhoff’01])

G

v

w

Q

P}},:),(max{),(max{)( QqPpqpdweGd

P

Q

),( qpd

• To find we use row-wise maxima search of Aggarwal et al. [AKMSW’87] in totally monotone matrix.

• matrix D is totally monotone if D(i,k)<D(i,l) implies D(j,k)<D(j,l) for any

• The matrix is defined implicitly -- an entry is evaluated only when needed by the algorithm. If evaluating an entry takes O(f(n,m)) time, then the complexity of the algorithm is O((n+m)f(n,m)).

},:),(max{ QqPpqpd

mn

.1and1 mlknji

is totally monotone matrix

Page 9: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

9

• Get metric interval I(v,w)={ x V: d(v,x)+d(x,w)=d(v,w)}. It is a convex set and induces a triangular system.

v

w

v

w

• Get distances and projections of vertices from P and Q to I(v,w).

d(p,q) in constant time after linear time preprocessing

(q),q).d(π(q))(p),πd(π(p))d(p, πd(p,q) have We

p

q

• Embed I(v,w) isometrically into the Cartesian product of three trees in linear time. Then, for any p,q, the distance can be computed in constant time.

(q))(p),πd(π

Page 10: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

10

singletonsareand (q)π(p)π

w

v

p

q

Diameters of Squaregraphs and Kinggraphs• Squaregraphs: in a similar way as for trigraphs, even easier.

• Kinggraphs: we reduce the problem to the squaregraphs

K

Q(K)

)(2))(( KdKQd

Theorem 1: Diameters of trigraphs, squaregraphs, kinggraphs and benzenoids can be computed in linear time.

• The idea to use matrix-searching to compute the diameter of a simple polygon was employed by Hershberger and Suri in [HeSu’97].

Page 11: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

11

Method: The Center Problem

yx

Get convex cut c of trigraph T Get histogram H(c)

A histogram H(c) of a convex cut c is the union of all metric triangles having one side on c. It is an isometric subgraph of T (and of triangular grid).

• Having a diametral pair, a simple region containing at least one central vertex will be located and preprocessed in such a way that all vertices of minimum eccentricity in this region can be found in linear time.

• Then, using the established structure of the center, the remaining part of the center can build up.

)()( TCcH

Page 12: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

12

Method: The Center Problem

• Embed H(c) into triangular grid and consider quadrangles.

• Find vertices of least eccentricity in each quadrangle (reduced to analyzing a system of at most 6 inequalities with two variables and one unknown parameter).

• Thus, can be found in linear time.

• Get distances and projections of vertices from to H(c)

• harder, since H(c) is not necessarily convex; it is convex if T does not contain inner vertices of degree 7.

• the case with inner vertices of degree 7 is handled separately.

G

)()()( TCcH

Page 13: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

13

Centers of Trigraphs

• Here is the idea how we do this for a triangular system T

• Structure of the center: The center of a trigraph T is a 3-sun, a convex path, or a convex strip.

• Using the established structure of the center, one can get the entire center C(T) from the set in linear time.)()( TCcH

• Let

• Consider disk B(w,2) (3-sun case)

• Consider or intersections of C(T) with 9 convex cuts.

,3,2,1,)()( iTCcH i

)()( TCcHw

1c

2c 3c

w

Page 14: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

14

w

v

Centers of Squaregraphs, Kinggraphs and Benzenoids

• Squaregraphs: in a similar way as for trigraphs. Even easier since:

• Kinggraphs and Benzenoids: The centers of hexagonal systems and kinggraphs are obtained by simply employing their relation to triangular systems and squaregraphs, respectively.

• The center of a kinggraph K is an isometric path or an isometric chain of .

Theorem 2: Centers of trigraphs, squaregraphs, kinggraphs and benzenoids can be found in linear time.

2)(2)( QrQd

kQdbNaNLLLkQdLL

QCkkk

kk

2)(if)()(12)(if

)(11

1

).,(},{and}),(:),({where

wvILbaixvdwvIxL

k

i

s4K

Page 15: SODA’02 January 7 San Francisco, CA 1 Center and Diameter Problems in Plane Triangulations and Quadrangulations Victor D. Chepoi Universite Aix-Marseille.

SODA’02 January 7 San Francisco, CA

15

Concluding Remarks and Open Problems• We presented a general approach for computing in linear time the centers and diameters of trigraphs, benzenoid systems, squaregraphs and kinggraphs.

• We characterized centers of trigraphs and kinggraphs (answering a question posed by Khuller et al. [KhRoWu’00]).

• Few interesting open problems remain:

• Characterize the centers of benzenoid systems.

• To which other face regular planar graphs can this method be applied?

• Can it be extended to 3-dimensional variants of squaregraphs, kinggraphs and trigraphs?

• Can the p-center problem (p=2,3,…) be solved efficiently on those classes of graphs?

. . .