106 research outputs found

    Mixed Map Labeling

    Get PDF
    Point feature map labeling is a geometric problem, in which a set of input points must be labeled with a set of disjoint rectangles (the bounding boxes of the label texts). Typically, labeling models either use internal labels, which must touch their feature point, or external (boundary) labels, which are placed on one of the four sides of the input points' bounding box and which are connected to their feature points by crossing-free leader lines. In this paper we study polynomial-time algorithms for maximizing the number of internal labels in a mixed labeling model that combines internal and external labels. The model requires that all leaders are parallel to a given orientation θ[0,2π)\theta \in [0,2\pi), whose value influences the geometric properties and hence the running times of our algorithms.Comment: Full version for the paper accepted at CIAC 201

    Agglomerative Clustering of Growing Squares

    Get PDF
    We study an agglomerative clustering problem motivated by interactive glyphs in geo-visualization. Consider a set of disjoint square glyphs on an interactive map. When the user zooms out, the glyphs grow in size relative to the map, possibly with different speeds. When two glyphs intersect, we wish to replace them by a new glyph that captures the information of the intersecting glyphs. We present a fully dynamic kinetic data structure that maintains a set of nn disjoint growing squares. Our data structure uses O(n(lognloglogn)2)O(n (\log n \log\log n)^2) space, supports queries in worst case O(log3n)O(\log^3 n) time, and updates in O(log7n)O(\log^7 n) amortized time. This leads to an O(nα(n)log7n)O(n\alpha(n)\log^7 n) time algorithm to solve the agglomerative clustering problem. This is a significant improvement over the current best O(n2)O(n^2) time algorithms.Comment: 14 pages, 7 figure

    Dynamic Data Structures for k-Nearest Neighbor Queries

    Get PDF
    Our aim is to develop dynamic data structures that support kk-nearest neighbors (kk-NN) queries for a set of nn point sites in the plane in O(f(n)+k)O(f(n) + k) time, where f(n)f(n) is some polylogarithmic function of nn. The key component is a general query algorithm that allows us to find the kk-NN spread over tt substructures simultaneously, thus reducing an O(tk)O(tk) term in the query time to O(k)O(k). Combining this technique with the logarithmic method allows us to turn any static kk-NN data structure into a data structure supporting both efficient insertions and queries. For the fully dynamic case, this technique allows us to recover the deterministic, worst-case, O(log2n/loglogn+k)O(\log^2n/\log\log n +k) query time for the Euclidean distance claimed before, while preserving the polylogarithmic update times. We adapt this data structure to also support fully dynamic \emph{geodesic} kk-NN queries among a set of sites in a simple polygon. For this purpose, we design a shallow cutting based, deletion-only kk-NN data structure. More generally, we obtain a dynamic planar kk-NN data structure for any type of distance functions for which we can build vertical shallow cuttings. We apply all of our methods in the plane for the Euclidean distance, the geodesic distance, and general, constant-complexity, algebraic distance functions

    Chromatic k-Nearest Neighbor Queries

    Get PDF
    Let PP be a set of nn colored points. We develop efficient data structures that store PP and can answer chromatic kk-nearest neighbor (kk-NN) queries. Such a query consists of a query point qq and a number kk, and asks for the color that appears most frequently among the kk points in PP closest to qq. Answering such queries efficiently is the key to obtain fast kk-NN classifiers. Our main aim is to obtain query times that are independent of kk while using near-linear space. We show that this is possible using a combination of two data structures. The first data structure allow us to compute a region containing exactly the kk-nearest neighbors of a query point qq, and the second data structure can then report the most frequent color in such a region. This leads to linear space data structures with query times of O(n1/2logn)O(n^{1 / 2} \log n) for points in R1\mathbb{R}^1, and with query times varying between O(n2/3log2/3n)O(n^{2/3}\log^{2/3} n) and O(n5/6polylogn)O(n^{5/6} {\rm polylog} n), depending on the distance measure used, for points in R2\mathbb{R}^2. Since these query times are still fairly large we also consider approximations. If we are allowed to report a color that appears at least (1ε)f(1-\varepsilon)f^* times, where ff^* is the frequency of the most frequent color, we obtain a query time of O(logn+loglog11εn)O(\log n + \log\log_{\frac{1}{1-\varepsilon}} n) in R1\mathbb{R}^1 and expected query times ranging between O~(n1/2ε3/2)\tilde{O}(n^{1/2}\varepsilon^{-3/2}) and O~(n1/2ε5/2)\tilde{O}(n^{1/2}\varepsilon^{-5/2}) in R2\mathbb{R}^2 using near-linear space (ignoring polylogarithmic factors).Comment: 37 pages, 9 figure

    Kinetic Geodesic Voronoi Diagrams in a Simple Polygon

    Get PDF
    We study the geodesic Voronoi diagram of a set S of n linearly moving sites inside a static simple polygon P with m vertices. We identify all events where the structure of the Voronoi diagram changes, bound the number of such events, and then develop a kinetic data structure (KDS) that maintains the geodesic Voronoi diagram as the sites move. To this end, we first analyze how often a single bisector, defined by two sites, or a single Voronoi center, defined by three sites, can change. For both these structures we prove that the number of such changes is at most O(m³), and that this is tight in the worst case. Moreover, we develop compact, responsive, local, and efficient kinetic data structures for both structures. Our data structures use linear space and process a worst-case optimal number of events. Our bisector KDS handles each event in O(log m) time, and our Voronoi center handles each event in O(log² m) time. Both structures can be extended to efficiently support updating the movement of the sites as well. Using these data structures as building blocks we obtain a compact KDS for maintaining the full geodesic Voronoi diagram

    Развитие финансово-кредитной инфраструктуры национальной экономики

    Get PDF
    We introduce a variation of unit-distance graphs which we call emph clear unit-distance graphs. They require the pairwise distances of the representing points to be either exactly 1 or not close to 1. We discuss properties and applications of clear unit-distance graphs

    Improved Dynamic Geodesic Nearest Neighbor Searching in a Simple Polygon

    Get PDF
    We present an efficient dynamic data structure that supports geodesic nearest neighbor queries for a set S of point sites in a static simple polygon P. Our data structure allows us to insert a new site in S, delete a site from S, and ask for the site in S closest to an arbitrary query point q in P. All distances are measured using the geodesic distance, that is, the length of the shortest path that is completely contained in P. Our data structure achieves polylogarithmic update and query times, and uses O(n log^3n log m + m) space, where n is the number of sites in S and m is the number of vertices in P. The crucial ingredient in our data structure is an implicit representation of a vertical shallow cutting of the geodesic distance functions. We show that such an implicit representation exists, and that we can compute it efficiently

    Shortest Paths in Portalgons

    Get PDF
    Any surface that is intrinsically polyhedral can be represented by a collection of simple polygons (fragments), glued along pairs of equally long oriented edges, where each fragment is endowed with the geodesic metric arising from its Euclidean metric. We refer to such a representation as a portalgon, and we call two portalgons equivalent if the surfaces they represent are isometric. We analyze the complexity of shortest paths. We call a fragment happy if any shortest path on the portalgon visits it at most a constant number of times. A portalgon is happy if all of its fragments are happy. We present an efficient algorithm to compute shortest paths on happy portalgons. The number of times that a shortest path visits a fragment is unbounded in general. We contrast this by showing that the intrinsic Delaunay triangulation of any polyhedral surface corresponds to a happy portalgon. Since computing the intrinsic Delaunay triangulation may be inefficient, we provide an efficient algorithm to compute happy portalgons for a restricted class of portalgons
    corecore