Dynamic Elias-Fano Representation

Total Page:16

File Type:pdf, Size:1020Kb

Dynamic Elias-Fano Representation Dynamic Elias-Fano Representation Giulio Ermanno Pibiri1 and Rossano Venturini1 1 Computer Science Department, University of Pisa, Italy [email protected], [email protected] Abstract We show that it is possible to store a dynamic ordered set S(n, u) of n integers drawn from a bounded universe of size u in space close to the information-theoretic lower bound and yet preserve the asymptotic time optimality of the operations. Our results leverage on the Elias- u Fano representation of S(n, u) which takes EF(S(n, u)) = ndlog n e + 2n bits of space and can be shown to be less than half a bit per element away from the information-theoretic minimum. Considering a RAM model with memory words of Θ(log u) bits, we focus on the case in which the integers of S are drawn from a polynomial universe of size u = nγ , for any γ = Θ(1). We represent S(n, u) with EF(S(n, u)) + o(n) bits of space and: 1. support static predecessor/suc- u cessor queries in O(min{1 + log n , log log n}); 2. make S grow in an append-only fashion by spending O(1) per inserted element; 3. support random access in O(log n/ log log n) worst- case, insertions/deletions in O(log n/ log log n) amortized and predecessor/successor queries in u O(min{1 + log n , log log n}) worst-case time. These time bounds are optimal. 1998 ACM Subject Classification E.1 Data Structures, E.4 Coding and Information Theory, F.2.2 Nonnumerical Algorithms and Problems Keywords and phrases Succinct Data Structures, Integer Sets, Predecessor Problem, Elias-Fano Digital Object Identifier 10.4230/LIPIcs.CPM.2017.48 1 Introduction The problem we consider is the one of representing in compressed space a dynamic ordered set S of n integer keys, which is a fundamental textbook problem (see the introduction to parts III and V of [8]). In general, any self-balancing search tree data structure, e.g., AVL or Red-Black tree, solves the problem optimally in the comparison model, by implementing all operations in O(log n) worst-case time and using linear space [8]. However, by exploiting the fact that the stored keys are integers drawn from a bounded universe of size u, the problem is known to admit more efficient solutions in terms of asymptotic time complexity while still retaining linear space [8, 23, 26, 30, 13, 14]. Classical examples include the van Emde Boas tree [26, 27, 28], x/y-fast trie [30] and the fusion tree [14], that was the first data structure able to surpass the information-theoretic lower bound, by exhibiting an optimal [13] amount of time per operation within a number of memory words proportional to the size of the input. Some efforts have been spent in trying to reduce the space requirements of the representation [16, 18, 25] but known compressed solutions do not closely match the information-theoretic lower bound of the underlying integer set. In this paper we show that it is possible to preserve the optimal bounds for the operations under almost optimal space requirements. The key ingredient of our data structures is the Elias-Fano representation of monotone integer sequences [10, 11]. In particular, Elias-Fano u encodes a monotone integer sequence S(n, u) in EF(S(n, u)) = ndlog n e + 2n bits, which can be shown to be less than half a bit per element away from optimality [10], maintaining the capability of randomly access an integer in O(1) worst-case time. The query Predecessor, © Giulio Ermanno Pibiri and Rossano Venturini; licensed under Creative Commons License CC-BY 28th Annual Symposium on Combinatorial Pattern Matching (CPM 2017). Editors: Juha Kärkkäinen, Jakub Radoszewski, and Wojciech Rytter; Article No. 48; pp. 48:1–48:14 Leibniz International Proceedings in Informatics Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany 48:2 Dynamic Elias-Fano Representation which, given an integer x, returns max{y ∈ S : y < x}, is possible as well over the compressed u sequence in O(1 + log n ) worst-case time. These properties make Elias-Fano extremely efficient on crucial practical applications, e.g., inverted indexes compression, just to mention the most noticeable one. Since inverted indexes can indeed be regarded as being a collection of sorted integer sequences, recent works [29, 20] have shown that Elias-Fano exhibits the best time/space trade-off thanks to its efficient search capabilities and strong theoretical guarantees. For this specific application, the operation that has to be supported efficiently is Successor(x) = min{y ∈ S : y ≥ x}, which is commonly called NextGEQ (Next Greater or EQual) [29, 20]. Throughout the paper we adopt the classical nomenclature and discuss Predecessor(x) as it is well known that the twin query Successor(x) is solved in a similar way. The natural question is whether it is possible to extend the static Elias-Fano representation to dynamic scenarios, in which integers can also be inserted/deleted in/from S. To this end, we consider the case in which the n integers of S are drawn from a polynomial universe of size u = nγ , for any γ = Θ(1). This is the classical operational setting as considered by Fredman and Saks [13] (list representation problem) and let us concentrate on the typical case of practical interest. In order to characterize the asymptotic complexity of the data structures described in the paper and review the literature, we use a RAM model with word size w = Θ(log u) bits. We also adopt the usual trans-dichotomous assumption [14], making w grow with n as needed. We maintain S(n, u) using EF(S(n, u)) + o(n) bits of space, hence introducing a sublinear space overhead with respect to its static Elias-Fano representation, and show how: u 1. static predecessor/successor queries can be supported in O(min{1 + log n , log log n}) u worst-case time (note that the first term of the bound, i.e., O(1 + log n ), is optimal only for polynomial universes of size u = nγ with 1 ≤ γ ≤ 1 + log log n/ log n); 2. to extend S in an append-only fashion, i.e., by assuming that integers are inserted in the data structure in sorted order, using a constant amount of work per integer; 3. to maintain S in a fully dynamic way, supporting random access in O(log n/ log log n) worst-case, insertions/deletions in O(log n/ log log n) amortized and predecessor/successor u queries in O(min{1 + log n , log log n}) worst-case time. 2 Related Work We organize the discussion of the related work in three parts. The first part concerns the review of the results about the static predecessor problem. The second one explains in details the (static) Elias-Fano representation of monotone integer sequences because it forms the backbone of our solutions. The last part finally describes the results closest to our work for the maintenance of a dynamic integer set. 2.1 Static Predecessor Problem We could solve the static predecessor problem in O(1) worst-case by storing all results to every possible query using perfect hashing [12] in O(u) words of space. In order to not trivialize the problem, assume we have a polynomial space budget, e.g., we deal with a data structure occupying O(nO(1)) words. √ Ajtai [1] proved the first ω(1) lower bound, claiming that ∀w, ∃n that gives Ω( log w) query time. Only ten years later Beame and Fich [3, 4] proved two strong bounds for any G. E. Pibiri and R. Venturini 48:3 cell-probe data structure1. They proved that ∀w, ∃n that gives Ω(log w/ log log w) query time and that ∀n, ∃w that gives Ω(plog n/ log log n) query time. They also gave a static data structure achieving O(min{log w/ log log w, plog n/ log log n}) which is, therefore, optimal. Building on a long line of research, Pˇatraşcuand Thourp [21, 22] finally proved the following optimal space-time trade-off for a static data structure taking m = n2aw bits of space, with m a = log n − log w n w − log n log w log w o Θ min log n, log , a , a (1) w a log( a log w ) w log n log n a log(log a / log a ) This lower bound holds for cell-probe, RAM, trans-dichotomous RAM, external memory and communication game models. The first branch of the trade-off indicates that, whenever we are in RAM or external memory with one integer fitting in one memory word, fusion trees are optimal, as these require O(logw n) = O(log n/ log w) query time. The second branch holds for polynomial universes, i.e., whenever u = nγ , for any γ = Θ(1). In such case we have that w = Θ(log u) = γ log n, therefore y-fast tries [30] and van Emde Boas trees [26, 27, 28] are optimal with query time O(log log u) = O(log log n). Finally, the last two branches of the trade-off treat the case for super-polynomial universes. In particular, the third branch matches the lower bound by Beame and Fich [3, 4] that requires nO(1) words of space; the 1− fourth branch improves this space occupancy, showing that n1+1/ exp(log log u) words are sufficient, for any > 0. 2.2 Static Elias-Fano Representation The integer encoding we describe in this section was independently proposed by Peter Elias [10] and Robert Mario Fano [11], hence its name.
Recommended publications
  • Persistent Predecessor Search and Orthogonal Point Location on the Word
    Persistent Predecessor Search and Orthogonal Point Location on the Word RAM∗ Timothy M. Chan† August 17, 2012 Abstract We answer a basic data structuring question (for example, raised by Dietz and Raman [1991]): can van Emde Boas trees be made persistent, without changing their asymptotic query/update time? We present a (partially) persistent data structure that supports predecessor search in a set of integers in 1,...,U under an arbitrary sequence of n insertions and deletions, with O(log log U) { } expected query time and expected amortized update time, and O(n) space. The query bound is optimal in U for linear-space structures and improves previous near-O((log log U)2) methods. The same method solves a fundamental problem from computational geometry: point location in orthogonal planar subdivisions (where edges are vertical or horizontal). We obtain the first static data structure achieving O(log log U) worst-case query time and linear space. This result is again optimal in U for linear-space structures and improves the previous O((log log U)2) method by de Berg, Snoeyink, and van Kreveld [1995]. The same result also holds for higher-dimensional subdivisions that are orthogonal binary space partitions, and for certain nonorthogonal planar subdivisions such as triangulations without small angles. Many geometric applications follow, including improved query times for orthogonal range reporting for dimensions 3 on the RAM. ≥ Our key technique is an interesting new van-Emde-Boas–style recursion that alternates be- tween two strategies, both quite simple. 1 Introduction Van Emde Boas trees [60, 61, 62] are fundamental data structures that support predecessor searches in O(log log U) time on the word RAM with O(n) space, when the n elements of the given set S come from a bounded integer universe 1,...,U (U n).
    [Show full text]
  • Lecture 1 — 24 January 2017 1 Overview 2 Administrivia 3 The
    CS 224: Advanced Algorithms Spring 2017 Lecture 1 | 24 January 2017 Prof. Jelani Nelson Scribe: Jerry Ma 1 Overview We introduce the word RAM model of computation, which features fixed-size storage blocks (\words") similar to modern integer data types. We also introduce the predecessor problem and demonstrate solutions to the problem that are faster than optimal comparison-based methods. 2 Administrivia • Personnel: Jelani Nelson (instructor) and Tom Morgan (TF) • Course site: people.seas.harvard.edu/~cs224 • Course staff email: [email protected] • Prerequisites: CS 124/125 and probability. • Coursework: lecture scribing, problem sets, and a final project. Students will also assist in grading problem sets. No coding. • Topics will include those from CS 124/125 at a deeper level of exposition, as well as entirely new topics. 3 The Predecessor Problem In the predecessor, we wish to maintain a ordered set S = fX1;X2; :::; Xng subject to the prede- cessor query: pred(z) = maxfx 2 Sjx < zg Usually, we do this by representing S in a data structure. In the static predecessor problem, S does not change between pred queries. In the dynamic predecessor problem, S may change through the operations: insert(z): S S [ fzg del(z): S S n fzg For the static predecessor problem, a good solution is to store S as a sorted array. pred can then be implemented via binary search. This requires Θ(n) space, Θ(log n) runtime for pred, and Θ(n log n) preprocessing time. 1 For the dynamic predecessor problem, we can maintain S in a balanced binary search tree, or BBST (e.g.
    [Show full text]
  • On Data Structures and Memory Models
    2006:24 DOCTORAL T H E SI S On Data Structures and Memory Models Johan Karlsson Luleå University of Technology Department of Computer Science and Electrical Engineering 2006:24|: 402-544|: - -- 06 ⁄24 -- On Data Structures and Memory Models by Johan Karlsson Department of Computer Science and Electrical Engineering Lule˚a University of Technology SE-971 87 Lule˚a, Sweden May 2006 Supervisor Andrej Brodnik, Ph.D., Lule˚a University of Technology, Sweden Abstract In this thesis we study the limitations of data structures and how they can be overcome through careful consideration of the used memory models. The word RAM model represents the memory as a finite set of registers consisting of a constant number of unique bits. From a hardware point of view it is not necessary to arrange the memory as in the word RAM memory model. However, it is the arrangement used in computer hardware today. Registers may in fact share bits, or overlap their bytes, as in the RAM with Byte Overlap (RAMBO) model. This actually means that a physical bit can appear in several registers or even in several positions within one regis- ter. The RAMBO model of computation gives us a huge variety of memory topologies/models depending on the appearance sets of the bits. We show that it is feasible to implement, in hardware, other memory models than the word RAM memory model. We do this by implementing a RAMBO variant on a memory board for the PC100 memory bus. When alternative memory models are allowed, it is possible to solve a number of problems more efficiently than under the word RAM memory model.
    [Show full text]
  • Predecessor Search
    Predecessor Search GONZALO NAVARRO and JAVIEL ROJAS-LEDESMA, Millennium Institute for Foundational Research on Data (IMFD), Department of Computer Science, University of Chile, Santiago, Chile. The predecessor problem is a key component of the fundamental sorting-and-searching core of algorithmic problems. While binary search is the optimal solution in the comparison model, more realistic machine models on integer sets open the door to a rich universe of data structures, algorithms, and lower bounds. In this article we review the evolution of the solutions to the predecessor problem, focusing on the important algorithmic ideas, from the famous data structure of van Emde Boas to the optimal results of Patrascu and Thorup. We also consider lower bounds, variants and special cases, as well as the remaining open questions. CCS Concepts: • Theory of computation → Predecessor queries; Sorting and searching. Additional Key Words and Phrases: Integer data structures, integer sorting, RAM model, cell-probe model ACM Reference Format: Gonzalo Navarro and Javiel Rojas-Ledesma. 2019. Predecessor Search. ACM Comput. Surv. 0, 0, Article 0 ( 2019), 37 pages. https://doi.org/0 1 INTRODUCTION Assume we have a set - of = keys from a universe * with a total order. In the predecessor problem, one is given a query element @ 2 * , and is asked to find the maximum ? 2 - such that ? ≤ @ (the predecessor of @). This is an extension of the more basic membership problem, which only aims to find whether @ 2 -. Both are fundamental algorithmic problems that compose the “sorting and searching” core, which lies at the base of virtually every other area and application in Computer Science (e.g., see [7, 22, 37, 58, 59, 65, 75]).
    [Show full text]
  • Advanced Data Structures 1 Introduction 2 Setting the Stage 3
    3 Van Emde Boas Trees Advanced Data Structures Anubhav Baweja May 19, 2020 1 Introduction Design of data structures is important for storing and retrieving information efficiently. All data structures have a set of operations that they support in some time bounds. For instance, balanced binary search trees such as AVL trees support find, insert, delete, and other operations in O(log n) time where n is the number of elements in the tree. In this report we will talk about 2 data structures that support the same operations but in different time complexities. This problem is called the fixed-universe predecessor problem and the two data structures we will be looking at are Van Emde Boas trees and Fusion trees. 2 Setting the stage For this problem, we will make the fixed-universe assumption. That is, the only elements that we care about are w-bit integers. Additionally, we will be working in the word RAM model: so we can assume that w ≥ O(log n) where n is the size of the problem, and we can do operations such as addition, subtraction etc. on w-bit words in O(1) time. These are fair assumptions to make, since these are restrictions and advantages that real computers offer. So now given the data structure T , we want to support the following operations: 1. insert(T, a): insert integer a into T . If it already exists, do not duplicate. 2. delete(T, a): delete integer a from T , if it exists. 3. predecessor(T, a): return the largest b in T such that b ≤ a, if one exists.
    [Show full text]
  • Dynamic Integer Sets with Optimal Rank, Select, and Predecessor
    Dynamic Integer Sets with Optimal Rank, Select, and Predecessor Search ∗ Mihai Pˇatra¸scu† Mikkel Thorup‡ University of Copenhagen Abstract We present a data structure representing a dynamic set S of w-bit integers on a w-bit word RAM. With S = n and w log n and space O(n), we support the following standard operations in O(log n/ log| |w) time: ≥ insert(x) sets S = S x . • ∪{ } delete(x) sets S = S x . • \{ } predecessor(x) returns max y S y < x . • { ∈ | } successor(x) returns min y S y x . • { ∈ | ≥ } rank(x) returns # y S y < x . • { ∈ | } select(i) returns y S with rank(y)= i, if any. • ∈ Our O(log n/ log w) bound is optimal for dynamic rank and select, matching a lower bound of Fredman and Saks [STOC’89]. When the word length is large, our time bound is also optimal for dynamic predecessor, matching a static lower bound of Beame and Fich [STOC’99] whenever log n/ log w = O(log w/ log log w). Technically, the most interesting aspect of our data structure is that it supports all operations in constant time for sets of size n = wO(1). This resolves a main open problem of Ajtai, Komlos, and Fredman [FOCS’83]. Ajtai et al. presented such a data structure in Yao’s abstract cell-probe model with w-bit cells/words, but pointed out that the functions used could not be implemented. As a partial solution to the problem, Fredman and Willard [STOC’90] introduced a fusion node that could handle queries in constant time, but used polynomial time on the updates.
    [Show full text]
  • MIT 6.851 Advanced Data Structures Prof
    MIT 6.851 Advanced Data Structures Prof. Erik Demaine Spring '12 Scribe Notes Collection TA: Tom Morgan, Justin Zhang Editing: Justin Zhang Contents 1 1. Temporal data structure 1 4 Scribers: Oscar Moll (2012), Aston Motes (2007), Kevin Wang (2007) 1.1 Overview . 4 1.2 Model and definitions . 4 1.3 Partial persistence . 6 1.4 Full persistence . 9 1.5 Confluent Persistence . 12 1.6 Functional persistence . 13 2 2. Temporal data structure 2 14 Scribers: Erek Speed (2012), Victor Jakubiuk (2012), Aston Motes (2007), Kevin Wang (2007) 2.1 Overview . 14 2.2 Retroactivity . 14 3 3. Geometric data structure 1 24 Scribers: Brian Hamrick (2012), Ben Lerner (2012), Keshav Puranmalka (2012) 3.1 Overview . 24 3.2 Planar Point Location . 24 3.3 Orthogonal range searching . 27 3.4 Fractional Cascading . 33 4 4. Geometric data structure 2 35 2 Scribers: Brandon Tran (2012), Nathan Pinsker (2012), Ishaan Chugh (2012), David Stein (2010), Jacob Steinhardt (2010) 4.1 Overview- Geometry II . 35 4.2 3D Orthogonal Range Search in O(lg n) Query Time . 35 4.3 Kinetic Data Structures . 38 5 5. Dynamic optimality 1 42 Scribers: Brian Basham (2012), Travis Hance (2012), Jayson Lynch (2012) 5.1 Overview . 42 5.2 Binary Search Trees . 42 5.3 Splay Trees . 45 5.4 Geometric View . 46 6 6. Dynamic optimality 2 50 Scribers: Aakanksha Sarda (2012), David Field (2012), Leonardo Urbina (2012), Prasant Gopal (2010), Hui Tang (2007), Mike Ebersol (2005) 6.1 Overview . 50 6.2 Independent Rectangle Bounds . 50 6.3 Lower Bounds .
    [Show full text]
  • Advanced Rank/Select Data Structures: Succinctness, Bounds, and Applications
    Universita` degli Studi di Pisa Dipartimento di Informatica Dottorato di Ricerca in Informatica Settore Scientifico Disciplinare: INF/01 Ph.D. Thesis Advanced rank/select data structures: succinctness, bounds, and applications Alessio Orlandi Supervisor Roberto Grossi Referee Referee Referee Veli M¨akinen Gonzalo Navarro Kunihiko Sadakane December 19, 2012 Acknowledgements This thesis is the end of a long, 4 year journey full of wonders, obstacles, aspirations and setbacks. From the person who cautiously set foot in Pisa to the guy who left his own country, none of these steps would have been possible without the right people at the right moment, supporting me through the dark moments of my life and being with me enjoying the bright ones. First of all, I need to thank Prof. Roberto Grossi, who decided that he could accept me as a Ph.D. Student. Little he knew of what was ahead :). Still, he bailed me out of trouble multiple times, provided invaluable support and insight, helping me grow both as a person and as a scientist. I also owe a lot to Prof. Rajeev Raman, who has been a valuable, patient and welcoming co-author. I also want to thank Proff. Sebastiano Vigna and Paolo Boldi, who nurtured my passion for computer science and introduced me to their branch of research. Also Prof. Degano, as head of the Ph.D. course, provided me with non-trivial help during these years. In Pisa, I met a lot of interesting people who were crucial for my happiness, was it when studying on a Sunday, on a boring the-proof-does-not-work-again day, in moments of real need, or on a Saturday night.
    [Show full text]
  • Computational Geometry Through the Information Lens Mihai Pdtracu
    Computational Geometry through the Information Lens by Mihai Pdtracu Submitted to the Department of Electrical Engineering and Computer Science in partial fulfillment of the requirements for the degree of Master of Science at the MASSACHUSETTS INSTITUTE OF TECHNOLOGY June 2007 © Massachusetts Institute of Technology 2007. All rights reserved. A uthor ........................................... L............... ........ Department of Electrical Engineering and Computer Science May 22, 2007 Certified by .......................... Erik D. Demaine Associate Professor Thesis Supervisor Accepted by.... .. .. .......... .. .......... ... ..-- - ............... Arthur C. Smith Chairman, Department Committee on Graduate Students BARKEfR MASSACHUSETTS INMTITUTE OF TECHNOLOGY AUG 16 2007 URRIEFS cl Computational Geometry through the Information Lens by Mihai Pdtra§cu Submitted to the Department of Electrical Engineering and Computer Science on May 22, 2007, in partial fulfillment of the requirements for the degree of Master of Science Abstract This thesis revisits classic problems in computational geometry from the modern algorithmic perspective of exploiting the bounded precision of the input. In one dimension, this viewpoint has taken over as the standard model of computation, and has led to a powerful suite of techniques that constitute a mature field of research. In two or more dimensions, we have seen great success in understanding orthogonal problems, which decompose naturally into one dimensional problems. However, problems of a nonorthogonal nature, the core of computational geometry, have remained uncracked for many years despite extensive effort. For example, Willard asked in SODA'92 for a o(n lg n) algorithm for Voronoi diagrams. Despite growing interest in the problem, it was not successfully solved until this thesis. Formally, let w be the number of bits in a computer word, and consider n points with O(w)-bit rational coordinates.
    [Show full text]
  • 26 January, 2017 1 Overview 2 Y-Fast Tries
    CS 224: Advanced Algorithms Spring 2017 Lecture 2 | 26 January, 2017 Prof. Jelani Nelson Scribe: Daniel Alabi Spring'17, David Liu Fall'14 1 Overview In the last lecture, we discussed the Word RAM model, Van Emde Boas trees, and X-fast tries which are the basis for Y-fast tries. In this lecture we complete our discussion of Y-fast tries and discuss Fusion trees. Fusion trees show just how powerful the Word RAM model is. We exploit word-level parallelism to perform operations (like masking, comparisons) in constant time. 2 Y-fast Tries Y-fast tries make use of both X-fast tries and balanced Binary Search Trees (BSTs) to improve the space usage to Θ(n) from Θ(nw) when using X-fast tries. 2.1 Use of X-fast Tries Recall that w is the number of bits in a machine word and u = 2w is the universe. In the base level, we have u bits where the 1 bits are connected together in a doubly-linked list, for use in identifying the predecessor of an element. Then we OR the bits recursively, starting from the base level, until we get to the top level. Then to find the predecessor of an element i 2 [u], if the i-th bit is a 1, we just use the doubly-linked list to find the predecessor element. Else, we go up the trie until we find the first 1 on our way up, then we go down again by the provenance OR path of this 1 bit.
    [Show full text]
  • Minimal Indices for Predecessor Search ∗ Sarel Cohen , Amos Fiat, Moshik Hershcovitch, Haim Kaplan
    Information and Computation 240 (2015) 12–30 Contents lists available at ScienceDirect Information and Computation www.elsevier.com/locate/yinco ✩ Minimal indices for predecessor search ∗ Sarel Cohen , Amos Fiat, Moshik Hershcovitch, Haim Kaplan Tel-Aviv University, Israel a r t i c l e i n f o a b s t r a c t Article history: We give a new predecessor data structure which improves upon the index size of the 4/5 Received 30 September 2013 Patraˇ scu–Thorup ¸ data structures, reducing the index size from O (nw ) bits to O (n log w) Available online 2 October 2014 bits, with optimal probe complexity. Alternatively, our new data structure can be viewed as matching the space complexity of the (probe-suboptimal) z-fast trie of Belazzougui et Keywords: al. Thus, we get the best of both approaches with respect to both probe count and index Successor search size. The penalty we pay is an extra O (log w) inter-register operations. Our data structure Predecessor search Succinct data structures can also be used to solve the weak prefix search problem, the index size of O (n log w) bits Cell probe model is known to be optimal for any such data structure. Fusion trees The technical contributions include highly efficient single word indices, with out-degree 1/5 Tries w/ log w (compared to w of a fusion tree node). To construct these indices we device Word RAM model highly efficient bit selectors which, we believe, are of independent interest. © 2014 Elsevier Inc. All rights reserved. 1.
    [Show full text]
  • Lower Bound Techniques for Data Structures Mihai
    Lower Bound Techniques for Data Structures by Mihai Pˇatra¸scu Submitted to the Department of Electrical Engineering and Computer Science in partial fulfillment of the requirements for the degree of Doctor of Philosophy at the MASSACHUSETTS INSTITUTE OF TECHNOLOGY September 2008 c Massachusetts Institute of Technology 2008. All rights reserved. Author.................................................................... Department of Electrical Engineering and Computer Science August 8, 2008 Certified by . Erik D. Demaine Associate Professor Thesis Supervisor Accepted by . Professor Terry P. Orlando Chair, Department Committee on Graduate Students 2 Lower Bound Techniques for Data Structures by Mihai Pˇatra¸scu Submitted to the Department of Electrical Engineering and Computer Science on August 8, 2008, in partial fulfillment of the requirements for the degree of Doctor of Philosophy Abstract We describe new techniques for proving lower bounds on data-structure problems, with the following broad consequences: • the first Ω(lg n) lower bound for any dynamic problem, improving on a bound that had been standing since 1989; • for static data structures, the first separation between linear and polynomial space. Specifically, for some problems that have constant query time when polynomial space is allowed, we can show Ω(lg n= lg lg n) bounds when the space is O(n · polylog n). Using these techniques, we analyze a variety of central data-structure problems, and obtain improved lower bounds for the following: • the partial-sums problem (a fundamental application of augmented binary search trees); • the predecessor problem (which is equivalent to IP lookup in Internet routers); • dynamic trees and dynamic connectivity; • orthogonal range stabbing. • orthogonal range counting, and orthogonal range reporting; • the partial match problem (searching with wild-cards); • (1 + )-approximate near neighbor on the hypercube; • approximate nearest neighbor in the `1 metric.
    [Show full text]