Data Structures: Range Queries - Space Efficiency Pooya Davoodi Aarhus University PhD Defense July 4, 2011.

Slides:



Advertisements
Similar presentations
Time-Space Trade-Offs for 2D Range Minimum Queries Gerth Stølting BrodalPooya Davoodi Aarhus University S. Srinivasa Rao Seoul National University 18 th.
Advertisements

Surender Baswana Department of CSE, IIT Kanpur. Surender Baswana Department of CSE, IIT Kanpur.
Price of Stability Li Jian Fudan University May, 8 th,2007 Introduction to.
Gerth Stølting Brodal University of Aarhus Monday June 9, 2008, IT University of Copenhagen, Denmark International PhD School in Algorithms for Advanced.
Dynamic Graph Algorithms - I
Tight Bounds for Dynamic Convex Hull Queries (Again) Erik DemaineMihai Pătraşcu.
An Optimal Dynamic Interval Stabbing-Max Data Structure? Pankaj K. Agarwal, Lars Arge and Ke Yi Department of Computer Science Duke University.
An Improved Succinct Dynamic k-Ary Tree Representation (work in progress) Diego Arroyuelo Department of Computer Science, Universidad de Chile.
D ICTIONARY M ATCHING WITH O NE G AP Amihood Amir, Avivit Levy, Ely Porat and B. Riva Shalom 1 CPM 2014.
Exact algorithms for the minimum latency problem Exact algorithms for the minimum latency problem 吳邦一 黃正男 詹富傑 樹德科大 資工系.
Konstantinos Tsakalidis 1 Dynamic Data Structures: Orthogonal Range Queries and Update Efficiency Konstantinos Tsakalidis PhD Defense 23 September 2011.
1 Hashing, randomness and dictionaries Rasmus Pagh PhD defense October 11, 2002.
Continuous Intersection Joins Over Moving Objects Rui Zhang University of Melbourne Dan Lin Purdue University Kotagiri Ramamohanarao University of Melbourne.
Succinct Representations of Trees S. Srinivasa Rao Seoul National University.
Fractional Cascading CSE What is Fractional Cascading anyway? An efficient strategy for dealing with iterative searches that achieves optimal.
Lectures on Network Flows
Time-Space Trade-Offs for 2D Range Minimum Queries
Update 1 Persistent Data Structures (Version Control) v0v0 v1v1 v2v2 v3v3 v4v4 v5v5 v6v6 Ephemeral query v0v0 v1v1 v2v2 v3v3 v4v4 v5v5 v6v6 Partial persistence.
Lowest common ancestors. Write an Euler tour of the tree LCA(1,5) = 3 Shallowest node.
1 Finding Dominators in Flowgraphs Linear-Time Algorithm 1 and Experimental Study 2 Loukas Georgiadis 1 joint work with Robert E. Tarjan 2 joint work with.
CS728 Lecture 16 Web indexes II. Last Time Indexes for answering text queries –given term produce all URLs containing –Compact representations for postings.
Fully Persistent B-Trees 23 rd Annual ACM-SIAM Symposium on Discrete Algorithms, Kyoto, Japan, January 18, 2012 Gerth Stølting Brodal Konstantinos Tsakalidis.
Minimum Spanning Network: Brute Force Solution
Improvements on the Range-Minimum-Query- Problem
Scalable Network Distance Browsing in Spatial Database Samet, H., Sankaranarayanan, J., and Alborzi H. Proceedings of the 2008 ACM SIGMOD international.
Mergeable Trees1 Mergeable Trees Mergeable Trees Robert E. Tarjan Princeton University and HP Labs Joint work with Loukas Georgiadis, Haim Kaplan, Nira.
Fractional Cascading and Its Applications G. S. Lueker. A data structure for orthogonal range queries. In Proc. 19 th annu. IEEE Sympos. Found. Comput.
Algorithm Engineering, September 2013Data Structures, February-March 2010Data Structures, February-March 2006 Cache-Oblivious and Cache-Aware Algorithms,
Towards Polynomial Lower Bounds for Dynamic Problems STOC 2010 Mihai P ă trașcu.
Improved Randomized Algorithms for Path Problems in Graphs PhD Thesis Surender Baswana Department of Computer Science & Engineering, I.I.T. Delhi Research.
Simple and Improved Parameterized Algorithms for Multiterminal Cuts Mingyu Xiao The Chinese University of Hong Kong Hong Kong SAR, CHINA CSR 2008 Presentation,
Succinct Representations of Trees
Space Efficient Data Structures for Dynamic Orthogonal Range Counting Meng He and J. Ian Munro University of Waterloo.
Succinct Geometric Indexes Supporting Point Location Queries Prosenjit Bose, Eric Y. Chen, Meng He, Anil Maheshwari, Pat Morin.
Wolfgang Mulzer Institut f ür Informatik Data Structures on Event Graphs Bernard ChazelleWolfgang Mulzer FU Berlin Princeton University.
Distance sensitivity oracles in weighted directed graphs Raphael Yuster University of Haifa Joint work with Oren Weimann Weizmann inst.
The LCA Problem Revisited
 Analysis Wrap-up. What is analysis?  Look at an algorithm and determine:  How much time it takes  How much space it takes  How much programming.
Path Minima on Dynamic Weighted Trees Pooya Davoodi Aarhus University Aarhus University, November 17, 2010 Joint work with Gerth Stølting Brodal and S.
Succinct Dynamic Cardinal Trees with Constant Time Operations for Small Alphabet Pooya Davoodi Aarhus University May 24, 2011 S. Srinivasa Rao Seoul National.
Fault Tolerant Graph Structures Merav Parter ADGA 2015.
Index tuning-- B+tree. overview Overview of tree-structured index Indexed sequential access method (ISAM) B+tree.
Λίστα Εργασιών Data Structures for Tree Manipulation D. Harel and R.E. Tarjan. Fast Algorithms for finding nearest common ancestors. SIAM J. Computing,
Union-Find  Application in Kruskal’s Algorithm  Optimizing Union and Find Methods.
A light metric spanner Lee-Ad Gottlieb. Graph spanners A spanner for graph G is a subgraph H ◦ H contains vertices, subset of edges of G Some qualities.
Splay Trees and the Interleave Bound Brendan Lucier March 15, 2005 Summary of “Dynamic Optimality -- Almost” by Demaine et. Al., 2004.
Vasilis Syrgkanis Cornell University
Introduction Terrain Level set and Contour tree Problem Maintaining the contour tree of a terrain under the following operation: ChangeHeight(v, r) : Change.
Shortest Paths in Decremental, Distributed and Streaming Settings 1 Danupon Nanongkai KTH Royal Institute of Technology BIRS, Banff, March 2015.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
Internal Memory Pointer MachineRandom Access MachineStatic Setting Data resides in records (nodes) that can be accessed via pointers (links). The priority.
Graphs David Kauchak cs302 Spring Admin HW 12 and 13 (and likely 14) You can submit revised solutions to any problem you missed Also submit your.
Succinct Data Structures
Succinct Data Structures
Limits of Data Structures
Improved Randomized Algorithms for Path Problems in Graphs
Persistent Data Structures (Version Control)
Searching in Trees Gerth Stølting Brodal Aarhus University
Lectures on Network Flows
Dissertation for the degree of Philosophiae Doctor (PhD)
4-4 Graph Theory Trees.
Incremental Maintenance of XML Structural Indexes
Haitao Wang Utah State University WADS 2017, St. John’s, Canada
Dynamic rectangular intersection with priorities
Two – One Problem Legal Moves: Slide Rules: 1s’ move right Hop
New Jersey, October 9-11, 2016 Field of theoretical computer science
Two – One Problem Legal Moves: Slide Rules: 1s’ move right Hop
Discrete Range Maximum
Dynamic rectangular intersection with priorities
Topology Mapping Bo Sheng Sept. 15.
Presentation transcript:

Data Structures: Range Queries - Space Efficiency Pooya Davoodi Aarhus University PhD Defense July 4, 2011

Thesis Overview c d e b f a

Range Minimum Queries  Database systems – Lowest average-salary: 3 80,00085,000115,000120,000118,000 81,00073,00090,000100,00094,000 65,00075,00086,00092,00095,000 72,00091,00089,000103,000102,000 35,00045,00042,00050,00041, Age Year Minimum: 65,000 at [3,1]

Definition 4

Naïve Solution 5

Data Structures 6 Top-LeftBottom-RightMinimum (1,1) (1,1): 12 (1,1)(1,2)(1,2): 8 (1,1)(2,1)(2,1): 5 (1,1)(2,2)(2,1): 5 (2,1) (2,1): 5 (2,1)(2,2)(2,2): 5 (1,2) (1,2): 8 (1,2)(2,2)(1,2): 8 (2,2) (2,2): 10 Tabulation

ReferenceSpace (bits)Query Time Tabulation Tarjan et al. (STOC’84) Chazelle & Rosenberg (SoCG’89) Lewenstein et al. (CPM’07) Demaine et al. (ICALP’09) - Sadakane (ISAAC’07) Our Result (ESA’10) - Our Result (ESA’10) Space-Efficient Data Structures 7

1D vs. 2D Lowest Common Ancestor 5

Indexing Data Structures  Popular in Succinct Data Structures 9 Index Read-only Size of InputSize of IndexQuery Time (Our Results, ESA’10)

Cartesian Trees Cartesian Tree: Atallah and Yuan (SODA’10) Tabulation

C

Outline  Range Minimum Queries (ESA 2010, Invited to Algorithmica)  Path Minima Queries (WADS 2011)  Range Diameter Queries (Submitted to ISAAC 2011)

Path Minima/Maxima Queries  The most expensive connection between two given nodes? – between b and k = (c,e) – between e and k = (j,k)  Update(c,e) = 4 13 Tree-Topology Networks 30 a b d c e f g h k j i Trees with Dynamic Weights

4 Naïve Structures 14 a b d c e f g h k j i

 Reduction from Range Minimum Queries in 1D arrays ReferenceQuery TimeUpdate Time Tabulation Brute Force Search Sleator and Tarjan (STOC’81) Our Result (WADS’11) Our Result (WADS’11) Dynamic Weights 15 Optimal: Brodal et al. (SWAT’96) Optimal by conjecture: Patrascu and Thorup (STOC’06) Optimal: Alstrup et al. (FOCS’98) Comparison Based RAM Optimal: Alstrup et al. (FOCS’98)

Dynamic Leaves 16 Reference Query Time Update TimeComment Alstrup and Holm (ICALP’00) and Kaplan and Shafrir (ESA’08) RAM Our Results (WADS’11) Comparison based Optimal: Pettie (FOCS’02) a b d c e f g h k j i

Updates with link and cut 17 a b d c e f g h k j i link (d,i,12) cut(c,e) 12 ReferenceQuery Time Update Time Comment Sleator and Tarjan (STOC’81) Comparison Based Our Results (WADS’11) Cell Probe Proof: by reduction from connectivity problems in graphs

Outline  Range Minimum Queries (ESA 2010, Invited to Algorithmica)  Path Minima Queries (WADS 2011)  Range Diameter Queries (Submitted to ISAAC 2011)

Range Diameter Queries  Farthest pair of points 19 A Difficult Problem

Known Results 20 Cohen and Porat (2010) Set Intersection Problem Conjecture: Set Intersection problem is difficult ( Patrascu and Roditty, FOCS’10 ) ReferenceQuery TimeSpace Tabulation Smid et al. (CCCG’08) Our Results (Submitted to ISAAC’11) Reduction from Set Intersection

Set Intersection Queries Reduction 21 Diameter = 3Diameter < 5 Arithmetic on real numbers with unbounded precisions Points in Convex Position Our Results (Submitted to ISAAC’11) ReferenceQuery TimeSpace

Publications c d e b f a