Synopsis Data Structures for Massive Data Sets

Synopsis Data Structures for Massive Data Sets

DIMACS Series in Discrete Mathematics and Theoretical Computer Science Synopsis Data Structures for Massive Data Sets Phillip B Gibb ons and Yossi Matias Abstract Massive data sets with terabytes of data are b ecoming common place There is an increasing demand for algorithms and data structures that provide fast resp onse times to queries on such data sets In this pap er we describ e a context for algorithmic work relevant to massive data sets and a framework for evaluating suchwork We consider the use of synopsis data structures which use very little space and provide fast typically approxi mated answers to queries The design and analysis of eective synopsis data structures oer many algorithmic challenges We discuss a numb er of concrete examples of synopsis data structures and describ e fast algorithms for keeping them uptodate in the presence of online up dates to the data sets Intro duction A growing numb er of applications demand algorithms and data structures that enable the ecient pro cessing of data sets with gigabytes to terabytes to p etabytes of data Such massive data sets necessarily reside on disks or tap es making even a few accesses of the base data set comparably slow eg a single disk access is often times slower than a single memory access For fast pro cessing of queries to such data sets disk accesses should b e minimized This pap er fo cuses on data structures for supp orting queries to massive data sets while minimizing or avoiding disk accesses In particular we advo cate and study the use of small space data structures We denote as synopsis data structures any data structures that are substantively smaller than their base data sets Synop sis data structures have the following advantages over nonsynopsis data structures Fast processing A synopsis data structure may reside in main memory providing for fast pro cessing of queries and of data structure up dates by avoiding disk accesses altogether Fast swaptransfer A synopsis data structure that resides on the disks can b e swapp ed in and out of memory with minimal disk accesses for the purp oses of pro cessing queries or up dates A synopsis data structure can Mathematics Subject Classication Primary P P Secondary Q Q Q Research of the second author was supp orted in part byanAlonFellowship by the Israel Science Foundation founded by The Academyof Sciences and Humanities and by the Israeli Ministry of Science c copyright holder PHILLIP B GIBBONS AND YOSSI MATIAS b e pushed or pulled remotely eg over the internet at minimal cost since the amount of data to b e transferred is small Lower cost A synopsis data structure has a minimal impact on the overall space requirements of the data set and its supp orting data structures and hence on the overall cost of the system Better system performance A synopsis data structure leaves space in the memory for other data structures More imp ortantlyitleaves space for other pro cessing since most pro cessing that involves the disks uses the memory as a cache for the disks In a data warehousing environment for exam ple the main memory is needed for querypro cessing working space eg building hash tables for hash joins and for caching disk blo cks The imp or tance of available main memory for algorithms can b e seen from the external memory algorithms literature where the upp er and lower time b ounds for many fundamental problems are inversely prop ortional to the logarithm of the av ailable memory size Vit See Section for examples Thus although machines with large main memories are b ecoming increasingly com monplace memory available for synopsis data structures remains a precious resource Smal l surrogate A synopsis data structure can serveasa small surrogate for the data set when the data set is currently exp ensiveorimp ossible to access In contrast linear space data structures for massive data sets can not reside in memory havevery slowswap and transfer times can increase the space require ments and hence the overall cost of the system by constant factors can hog the memory when they are in use and can not serve as a small surrogate Hence a tra ditional viewp oint in the algorithms literature that a linear space data structure is a go o d one is not appropriate for massive data sets as suc h data structures often fail to provide satisfactory application p erformance On the other hand since synopsis data structures are to o small to maintain afull characterization of their base data sets they must summarize the data set and the resp onses they provide to queries will typically b e approximate ones The challenges are to determine what synopsis of the full data set to keep in the limited space in order to maximize the accuracy and condence of its approximate resp onses and how to eciently compute the synopsis and maintain it in the presence of up dates to the data set Due to their imp ortance in applications there are a numb er of synopsis data structures in the literature and in existing systems Examples include uniform and biased random samples various typ es of histograms statistical summary informa tion such as frequency moments data structures resulting from lossy compression of the data set etc Often synopsis data structures are used in a heuristic way with no formal prop erties proved on their p erformance or accuracy esp ecially under the presence of up dates to the data set Our ongoing work since seeks to provide a systematic study of synopsis data structures including the design and analysis of synopsis data structures with p erformance and accuracy guarantees even in the presence of data up dates In this pap er wedescribeacontext for algorithmic work relevant to massive data sets and a framework for evaluating suchwork In brief wecom bine the PDM external memory mo del VS with inputoutput conventions more typical for the SYNOPSIS DATASTRUCTURES study of online data structure problems Two general scenarios are considered one where the input resides on the disks of the PDM and one where the input arrives online in the PDM memory We describ e some of our work on synopsis data structures and highlight results on three problem domains from the database literature frequency moments hot list queries and histograms and quantiles Outline Section describ es our framework in detail Results on frequency moments hot list queries and histograms are describ ed in Sections and resp ectively Related work and further results are discussed in Section Framework In this section we rst describ e a context for data structure problems for massive data sets We then intro duce synopsis data structures and presentacost mo del for their analysis Finallywe discuss two example application domains Problem setup In the data structure questions we consider there are a number of data sets S S S and a set of query classes Q Q on k these data sets The query classes are given a priori and may apply to individual data sets or to multiple data sets Data structure p erformance is analyzed on a mo del of computation that distinguishes between two typ es of storage fast and slow where the fast storage is of limited size We equate the fast storage with the computer systems main memory and the slow storage with its disks and use a relevant mo del of computation details are in Section Ho wever the framework and results in this pap er are also relevant to scenarios where the fast storage is the disks and the slow storage is the tap es or the fast storage is the pro cessor cache memory and the slow storage is the main memory In the static or oine scenario the data sets are given as input residing on the disks Given a class of queries Q the goal is to design a data structure for the class Q that minimizes the resp onse time to answer queries from Q maximizes the accuracy and condence of the answers and minimizes the prepro cessing time needed to build the data structure In the dynamic or online scenario which mo dels the ongoing loading of new data into the data set the data sets arrive online in the memory and are stored on the disks Sp ecically the input consists of a sequence of op erations that arrive on line to b e pro cessed by the data structure where an op eration is either an insertion of a new data item a deletion of an existing data item or a query Given a class of queries Q the goal is to design a data structure for the class Q that minimizes the resp onse time to answer queries from Q maximizes the accuracy and condence of the answers and minimizes the up date time needed to maintain the data structure As we are interested in the additional overheads for maintaining the data structure harge for up dating the data sets there is no c This setup reects manyenvironments for pro cessing massive data sets For example it reects most data warehousing environments suchasWalmarts multi terabyte warehouse of its sales transactions For most data sets there are far more insertions than deletions An imp ortant exception is a slidingwindow data set comprised of the most recent data from a data source such as the last months of sales transactions In such data sets batches of old data are p erio dically deleted to make ro om for new data making the number of insertions comparable to the numb er of deletions PHILLIP B GIBBONS AND YOSSI MATIAS To handle many data sets and many query classes a large numb er of synopsis data structures may be needed Thus we will assume that when considering any one data structure problem in isolation the amount of memory available to the data structure is a small fraction of the total amount

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    32 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us