|
|
|
Weighted farthest color Voronoi diagrams on trees and graphs
Given an undirected graph and a set of n sites with each site sitting on
a specific position on one of the graph's edges, consider a situation where
each of the n sites represents one of k different types of
facilities, like schools, shopping malls, hospitals, etc. A person choosing a
new residence might want to have one representative of each type as close by as
possible.
This problem can be solved by means of the farthest color Voronoi
diagram.
We differentiate between Voronoi diagrams (VD) and farthest color
Voronoi diagrams (FCVD). In case the multiplicative weight of sites is of
interest, we speak of weighted Voronoi diagrams (WVD) and weighted
farthest color Voronoi diagrams (WFCVD).
We further distinguish between trees and graphs, because in the
case of trees we can apply a less complex algorithm to compute the desired
Voronoi diagram.
Altogether this leads to eight different algorithms that are used by our applets
we present here.
More information on weighted farthest color Voronoi
diagrams on trees and graphs, including complexity and computation
deliberations, can be found in this paper:
WFCVD (PS, unzipped, 214K)
WFCVD (PS, g-zipped, 71K)
WFCVD (PDF, unzipped, 545K)
WFCVD (PDF, g-zipped, 163K)
The graph editor of each applet allows to create a tree or graph by setting
nodes and drawing edges between them. Sites can be set on every edge with a
single click on the desired position. A right button click on any graph
component opens a context menu that allows altering the component's properties
and removing the whole component.
A right button click on editor's empty space opens the editor context menu. Some
of its options are grayed out because they can only be used if the editor is in
application mode (access to user's file system). The menu allows creating a new
graph (note: only create an undirected graph to ensure proper Voronoi
computation) and changing default values for components' properties. The actual
default value is applied to all components that are drawed after the default
value is set.
Below the editor pane is a checkbox that switches between weighted and unweighted Voronoi diagrams. At the right one gets a short information about the currently drawed graph and the algorithm used to compute the Voronoi diagram. Note that the algorithms switch automatically according to the graph's layout; if the actual graph is a tree, the according tree algorithm is used rather than the more complex graph algorithm.
At the bottom there are algorithm-specific options to display various additional graphical information on the currently computet Voronoi diagram.
Ferran Hurtado, Rolf Klein, Elmar Langetepe, Vera Sacristán. The weighted farthest color Voronoi diagram on trees and graphs. August 14, 2002.