In this paper, we study the problem of designing in-place algorithms for finding the maximum clique in the intersection graphs of axis-parallel rectangles and disks in R-2. First, we propose an O(n(2) log n) time in-p...
详细信息
In this paper, we study the problem of designing in-place algorithms for finding the maximum clique in the intersection graphs of axis-parallel rectangles and disks in R-2. First, we propose an O(n(2) log n) time in-place algorithm for finding the maximum clique of the intersection graph of a set of n axis-parallel rectangles of arbitrary sizes. For the intersection graph of fixed height rectangles, the time complexity can be slightly improved to O(n log n + nK), where K is the size of the maximum clique. For disk graphs, we consider two variations of the maximum clique problem, namely geometric clique and graphical clique. The time complexity of our algorithm for finding the largest geometric clique is O(m log n + n(2)) where m is the number of edges in the disk graph, and it works for disks of arbitrary radii. For graphical clique, our proposed algorithm works for unit disks (i.e., of same radii) and the worst case time complexity is O(n(2) + m(n + K-3));m is the number of edges in the unit disk intersection graph and K is the size of the largest clique in that graph. It uses O(n(3)) time in-place computation of maximum matching in a bipartite graph, where the vertices are given in an array, and the existence of an edge between a pair of vertices can be checked by an oracle on demand (from problem specification) in O(1) time. This problem is of independent interest. All these algorithms need O(1) work space in addition to the input array. (C) 2014 Elsevier B.V. All rights reserved.
We revisit the exact shortest unique substring (SUS) finding problem, and propose its approximate version where mismatches are allowed, due to its applications in subfields such as computational biology, We design a g...
详细信息
We revisit the exact shortest unique substring (SUS) finding problem, and propose its approximate version where mismatches are allowed, due to its applications in subfields such as computational biology, We design a generic in-place framework that fits to solve both the exact and approximate k-mismatch SUS finding, using the minimum 2n memory words, each of inverted right perpendicular log(2)(n)inverted left perpendicular bits, plus n bytes space, where n is the input string size. By using the in-place framework, we can find the exact and approximate k-mismatch SUS for every string position using a total of O(n) and O(n(2)) time, respectively, regardless of the value of k. Our framework does not involve any compressed or succinct data structures and thus is practical and easy to implement. Experimental study shows that the peak memory usage of our proposal is consistently 9n bytes for any string of size n, validating the claim that our solution is in-place. Further, our proposal uses much less memory and is much faster than the currently best work that has implementation for exact SUS finding. (C) 2017 Elsevier B.V. All rights reserved.
We describe space-efficient algorithms for solving problems related to finding maxima among points in two and three dimensions. Our algorithms run in optimal O(n log n) time and occupy only constant extra space in add...
详细信息
We describe space-efficient algorithms for solving problems related to finding maxima among points in two and three dimensions. Our algorithms run in optimal O(n log n) time and occupy only constant extra space in addition to the space needed for representing the input.
We describe the first optimal randomized in-place algorithm for the basic 3-d convex hull problem (and, in particular, for 2-d Voronoi diagrams). The algorithm runs in O(n log n) expected time using only O(1) extra sp...
详细信息
ISBN:
(纸本)9781605585017
We describe the first optimal randomized in-place algorithm for the basic 3-d convex hull problem (and, in particular, for 2-d Voronoi diagrams). The algorithm runs in O(n log n) expected time using only O(1) extra space;this improves the previous O(n log(3) n) bound by Bronnimann, Chan, and Chen [SoCG'04]. The same approach leads to an optimal randomized in-place algorithm for the 2-d line segment intersection problem, with O(n log n + K) expected running time for output size K, improving the previous O(n log(2) n + K) bound by Vahrenhold [WADS'05]. As a bonus, we also point out a simplification of a known optimal cache-oblivious (non-in-place) algorithm by Kumar and Ramos (2002) for 3-d convex hulls, and observe its applicability to 2-d segment intersection, extending a recent result for red/blue segment intersection by Arge, Molhave, and Zeh [ESA'08]. Our results are all obtained by standard random sampling techniques, with some interesting twists.
Read-only memory (ROM) model is a classical model of computation to study time-space tradeoffs of algorithms. More recently, several graph algorithms have been studied under ROM model. In this paper, we study graph al...
详细信息
Read-only memory (ROM) model is a classical model of computation to study time-space tradeoffs of algorithms. More recently, several graph algorithms have been studied under ROM model. In this paper, we study graph algorithms under two different relaxations of ROM model, referred to as the implicit and rotate models, and show that these simple relaxations allow us to implement fundamental graph search methods like BFS and DFS more space efficiently than in ROM model. All our algorithms are simple but quite subtle, and we believe that these models are practical enough to spur interest for other graph problems in these models. (C) 2021 The Author(s). Published by Elsevier Inc.
We describe the first optimal randomized in-place algorithm for the basic 3-d convex hull problem (and, in particular, for 2-d Voronoi diagrams). The algorithm runs in O(n log n) expected time using only O(1) extra sp...
详细信息
We describe the first optimal randomized in-place algorithm for the basic 3-d convex hull problem (and, in particular, for 2-d Voronoi diagrams). The algorithm runs in O(n log n) expected time using only O(1) extra space;this improves the previous O(n log(3) n) bound by Bronnimann, Chan, and Chen (2004) [10]. The same approach leads to an optimal randomized in-place algorithm for the 2-d line segment intersection problem, with O(n logn + K) expected running time for output size K, improving the previous O(n log(2) n + K) bound by Vahrenhold (2007) [42]. As a bonus, we also point out a simplification of a known optimal cache-oblivious (non-in-place) algorithm by Kumar and Ramos (2002) [33] for 3-d convex hulls, and observe its applicability to 2-d segment intersection, extending a recent result for red/blue segment intersection by Arge, MOlhave, and Zeh (2008) [3]. Our results are all obtained by standard random sampling techniques, with some interesting twists. (C) 2010 Elsevier B.V. All rights reserved.
It is shown that an array of n elements can be sorted using O(1) extra space, O(n log n/log log n) element moves, and a log(2)n + O(n log log n) comparisons. This is the first in-place sorting algorithm requiring o(n ...
详细信息
It is shown that an array of n elements can be sorted using O(1) extra space, O(n log n/log log n) element moves, and a log(2)n + O(n log log n) comparisons. This is the first in-place sorting algorithm requiring o(n log n) moves in the worst case while guaranteeing O(n log n) comparisons, but due to the constant factors involved the algorithm is predominantly of theoretical interest. (C) 1999 Elsevier Science B.V. All rights reserved.
In 2000, Geffert et al. (Theoret. Comput. Sci. 237 (2000) 159) presented an asymptotically efficient algorithm for stable merging in constant extra space. The algorithm requires at most m(1)(t + 1) + m(2)/2' + o(m...
详细信息
In 2000, Geffert et al. (Theoret. Comput. Sci. 237 (2000) 159) presented an asymptotically efficient algorithm for stable merging in constant extra space. The algorithm requires at most m(1)(t + 1) + m(2)/2' + o(m(1)) comparisons (t = [log(2)(m(2)/m(1))]) and 5m(2) + 12m(1) + o(m(1)) moves, where m(1) and m(2) are the sizes of two ordered sublists to be merged, and in m(1) less than or equal to m(2). This paper optimizes the algorithm. The optimized algorithm is simpler than their algorithm, and makes at most m(1)(t + 1) + m(2)/2' + o(m(1) + m(2)) comparisons and 6m(2) + 7m(1) + o(m(1) + m(2)) Moves. (C) 2002 Elsevier Science B.V. All rights reserved.
We present an algorithm for asymptotically efficient k-way merging. Given an array A containing k sorted subsequences A(1),..., A(k) of respective lengths n(1),..., n(k), where Sigma(k)(i=1) n(i) = n, our algorithm me...
详细信息
We present an algorithm for asymptotically efficient k-way merging. Given an array A containing k sorted subsequences A(1),..., A(k) of respective lengths n(1),..., n(k), where Sigma(k)(i=1) n(i) = n, our algorithm merges A(1),..., A(k) into a single sorted sequence in-place and in linear time, performing c(k).n + o(n) element comparisons and 3.n + o(n) element moves, where c(k) = left perpendicularlg kright perpendicular + 2.(1 - 2(left perpendicularlg kright perpendicular)/k), which is a constant satisfying lg k <= c(k) <= inverted right perpendicularlg kinverted left perpendicular and, moreover, bounded by c(k) <= lg k+ 0.0861. The algorithm does not merge stably, however, it does not require that the elements in A are all distinct. (C) 2010 Elsevier B.V. All rights reserved.
Two linear-time algorithms for in-place merging are presented. Both algorithms perform at most m(t + 1) + n/2(t) + o(m) comparisons, where m and n are the sizes of the input sequences, m less than or equal to n, and t...
详细信息
Two linear-time algorithms for in-place merging are presented. Both algorithms perform at most m(t + 1) + n/2(t) + o(m) comparisons, where m and n are the sizes of the input sequences, m less than or equal to n, and t = [log(2)(n/m)]. The first algorithm is for unstable merging and it carries out no more than 3(n + m) + o(m) element moves. The second algorithm is for stable merging and it accomplishes at most 5n + 12m + o(m) moves. (C) 2000 Elsevier Science B.V. All rights reserved.
暂无评论