Oooo»O O O O ® Oo#Ooo O O O O M O * O O M M O O O M M M Witold Lipski, Ir

Total Page:16

File Type:pdf, Size:1020Kb

Oooo»O O O O ® Oo#Ooo O O O O M O * O O M M O O O M M M Witold Lipski, Ir C 3 O C 3 pRACE »PI PAN • ICS PAS REPORTS oooo»o o o o ® oo#ooo o o o o m o * o o m m o o o m m m Witold Lipski, Ir. o m o o o o m o o A note on decomposing O w O w O a query set into Q £ Q 0 0 subsets having the a a /-s consecutive retrieval o««oO property o##«o o### o o o o 3 21978 9 WARSZAWA ooo IRSTTTUT PODSTAW INFORMATYKI POLSKIE) AKADEMII NADK INSTITUTE IF COMPUTER SCIENCE POLISH ACADEMY OF SCIEHCES 00*901 W A R S A W , P. O. Box 22, POLAND Witold Lipski, Jr A NOTE ON DECOMPOSING A QUERY SET INTO SUBSETS HAVING THE CONSECUTIVE RETRIEVAL PROPERTY 3 20 Warsaw 1978 Witold Lipski, Jr. A NOTE ON DECOMPOSING A QUERY SET INTO SUBSETS HAVING THE CONSECUTIVE RETRIEVAL PROPERTY 3 20 Warsaw 1978 Bada Bedakeyjna A. Blikle (przewodniczący), S. Bylka, J. Lipski (sekretarz), Ł. Łukaszewicz, R. Marczyński, A. Mazurkiewicz, T. Uowicki, Z. Pawlak, D. Sikorski, Z. Szoda, li. Warmus (zastępca prze­ wodniczącego) Pracę zgłosił Zdzisław Pawlak Uailing addresst Witold Lipski, Jr. Instituto of Computar Science Polish Academy of Sciences P. 0. Boi 22 00-901 Warsaw PKil b ^ H / U O ¡AoíJí Frinted as a manuscript Ha prawach rękopisu Bakład 700 egz. Ark. fcyd. 1,00; ark. druk. 1,50. Papier offset, kl. III, 70 g, 70 x 100. Oddano do druku w kwietniu 1978 r. W.D.B.Zam.322/0/78 S-86 AIS CATEG0HI3S: 68A5O 05-00 05A99 Abstract • Streszczenie • ConepaaHHS A simple algorithm is presented which constructs a partition of the set of all non-trivial binary queries into subsets having the consecutive retrieval property. The algorithm, which has been implemented on a computer, is a modification of a method of Yamamoto et al. £j. Statist. Planning and inference 1(1977) 41-513- 0 dekompozycji zbioru pytań na podzbiory mające własność kolejnego wyszukiwania Przedstawiono prosty algorytm konstrukcji podziału zbioru wszystkich pytań binarnych na podzbiory mające własność kolejnego wyszukiwani a. Algorytm ten, zrealizowany na maszynie cyfrowej, jest modyfikacją metody Yamamoto et al. [j. Statist. Planning and Inference 1(1977) 41-513« EIoApa3fleaeHKe MHOxeciBa eonpocoB Ha noiWHoaecTBa, oSjiaflaBimie c b o Sc tb o m nocJie.noBaTeJihHoro noacKa HpHBOÆHTCH npocioS aaropHXM noApa3,neJ!eHHH MHOxecTBa Bcex SBomiHHX EonpocoB Ea noiUHO^ecTsa, ofiaa^aioinHe cboS- c t b o m nccaeAOBaTejibHoro noncica. ÆaHHbiil ajiropKTM, ocyneci- BJieHHKft Ha SaeKTpOHHO-BŁnHCSHTeJIbHOB IJH^POBOH MaaHHe, XB- JineTcx Bî«0H 3MeKeHHesi Mexoaa HwaMOTO h «çpyrsix fj. Statist. Planning and Inference 1 (1977) 41—513- .1IHTSODUCTian The coE-sec'rtive retrieval (GR) property has been introduced by Ghosh [1J in connection with the design of efficient file organizations minimizing both the access time and the storage space at a time. Subsequently, it has been extensively investigated by several authors (see e.g. Ghosh [2,3'], T.ip«Vi [6] , Lipski and Karek [8] and lamamoto et al. [93 )• Let us recall that a query set Q is said to have the CR property with respeet to a record set R if there exists a linear arrangement of the records (without any duplication") such that all pertinent records for every query in Q are stored in consecutive storage locations. It should be noted that the query setB and record sets of practical interest are usually too complex to admit such & special organization. However, several modifications of the CR property have been proposed, which extend the class of admissible query-record sets at a cost of seme increase of the acces time and/or the storage space. One such proposal is to decompose the query set into subsets having the OR property (see Ghosh [2} • Lipski and K a r e k f8]). Of course, such a decomposition always exists — it is sufficient to make the subsets small enough, e.g. each consisting of at most two queries. A non-trivial problem of practical interest is, however, to find a decomposition into the minimal possible number of subsets. In the general case, when a query set and a record set can be arbitrary, and a query - 6 - can specify any subset of records, this problem seems to be very difficult. In fact, it can be proved (see Lipski [?]) that for such a case even the following simple problem: Given a query set Q and a record set R, decide whether Q can be decomposed into two subsets having the CR property with respect to R, is KP-complete in the sense of Karp [5]* However, in this paper we shall deal exclusively with the special case where the record set consists of all 2^-1 non-trivial records characterized by 1 binary-valued attributes, i.e., r W = i x): ... € {0 ,13} \ {(0...0)}3 and the query set consists of all 2^-1 binary queries, i.e., £j): C 1 e (fl = 1 or 0 indicates the presence or absence of ith attribute in a record, respectively; ^ » 1 or i indicates whether to specify or not the presence of ith attribute in the pertinent records, respectively.') A subset of having the OH property with respect to will be called a CR subset. The number of 1*s in a query q is called the order of q and is depoted by w(q'). ‘The cardinality of a set S is denoted by IS\ , [_yj is the maximal integer not greater than (a real number) y, and fyl is the minimal integer not less than y. - 7 - *1516 problem of decomposing into the ml n1 mal number of subsets having the CE. property with respect to E ^ was recently treated by Yamamoto et al. [9] . They noticed that — by a result of Ghosh ([2] — no CE subset can contain more than two queries of order ll/2j, and consequently the number of CE subsets in any partition of is at least ) • T( \l/2j) fc\ • Psing an ingenious method they also prove that for 1 even there exists a partition of into this number of CE subsets. Their proof gives also some indication how such a mininal partition can be constructed. It is the main purpose of the present note to give a very simple algorithm which constructs such a minimal partition if 1 is even and a partition close to minimal if 1 is odd. Our method has been implemented on a computer (see Appendix). 2. THE ALGORITHM As noted by Tamamoto et al. [9] . the set consisting of the following 21-1 queries: ✓ - 8 - (1 z X . X x) (1 1 I ... X X) (1 1 1 • •» z X) • • (1 1 1 ... 1 X) (2) (1 1 1 ... 1 <0 (x 1 ... 1 1) 1 1 ... 1 x ) <x I <x 1 1 ... X X) — r • . i • i • i« ( i 1 X . X X) — t- i is a CB subset of (on the right hand side we schematically depicted the required arrangement of records). Notice that any query q = (... Sj) can be identified with the set (?) i.e., with the set of attributes specified in q. This set is nonempty, since we consider only non-trivial queries. ITow let us denote X = £2,5,...,l], n = |X] = 1 - 1. We shell need a method of decomposing tP(X), the set of all subsets of X, into chains is called a chain if A c B or B g. A for all A,B 6 ^ . Below we shall briefly describe such a method (see e.g. Greene and ELeitman [VJ ). A chain is called symmetric if it has the form C C °Ln/2J-j C C (n/2j-d+1C (V21+3 - 9 - 1 • where 0 ln/2J and ICJ = i for |n/2J -3 ^ i ^ Tn/2l+j. Since every symmetric chain contains exactly one ln/2J -subset (i.e. a subset of cardinality L°/2j} of X, it follows that any partition of i P ( X) into symmetric chains is composed of exactly ([_n/2J^ chains. We construct such a partition by induction on n = |X|. For n = 0, TPlX) = {0} is itself a symmetric chain. Now assume that we have a partition of 2P C x) into symmetric chains, and lpt a ^ X. Replace every chain C A j C C A ^ in our partition by the following two chaims: C ¿2 C ... C A<l u{a] C ^ ^ Of course, we obtained a partition of 7P(l.u{b.}) into chains- These chains are not symmetric, we can, however, make them symmetric by shifting the top subset of the second chain to th»e top of the first one: 1 ... C A ^ c ^ f a J , C. A^ u | a] C ... C u {a] (if k = 1, then the second chain vanishes). By applying this procedure recursively, we may easily produce a partition of TPCX) into symmetric chains, for any X. This construction is directly implemented by the recursive function PARTITION in the PASCAL program included into Appendix. For technical reasons, attributed are labelled 0,1,...,1-1 in this program. Any symmetric chain ^ is represented by an array PERI! and two integers FIRST, LAST* -10- in the following way: = ^{PERM[l],PSBH[23,...,PESIl[i]} : FIRST ¿i < LAST- With any symmetric chain A^CAgC,.. Ci^ of subsets of X = {2,3,...,1} we may associate the set of queries { 9^ »^2 ’' * ’ * ^k’ ^k ’ ®k—1 ’ * * * ’ 3 such that S(q^) = {l}uAi , S ^ ) = for 1 £ i £ k , and S(qj) is defined by (3) (since we consider only non-trivial queries, we should delete ^ if i] = (?). This set of queries is easily seen to be a CR subset, since it is a subset of B ' ^ (see (2)) , up to some permutation of attributes.
Recommended publications
  • Probabilistic Databases
    Series ISSN: 2153-5418 SUCIU • OLTEANU •RÉ •KOCH M SYNTHESIS LECTURES ON DATA MANAGEMENT &C Morgan & Claypool Publishers Series Editor: M. Tamer Özsu, University of Waterloo Probabilistic Databases Probabilistic Databases Dan Suciu, University of Washington, Dan Olteanu, University of Oxford Christopher Ré,University of Wisconsin-Madison and Christoph Koch, EPFL Probabilistic databases are databases where the value of some attributes or the presence of some records are uncertain and known only with some probability. Applications in many areas such as information extraction, RFID and scientific data management, data cleaning, data integration, and financial risk DATABASES PROBABILISTIC assessment produce large volumes of uncertain data, which are best modeled and processed by a probabilistic database. This book presents the state of the art in representation formalisms and query processing techniques for probabilistic data. It starts by discussing the basic principles for representing large probabilistic databases, by decomposing them into tuple-independent tables, block-independent-disjoint tables, or U-databases. Then it discusses two classes of techniques for query evaluation on probabilistic databases. In extensional query evaluation, the entire probabilistic inference can be pushed into the database engine and, therefore, processed as effectively as the evaluation of standard SQL queries. The relational queries that can be evaluated this way are called safe queries. In intensional query evaluation, the probabilistic Dan Suciu inference is performed over a propositional formula called lineage expression: every relational query can be evaluated this way, but the data complexity dramatically depends on the query being evaluated, and Dan Olteanu can be #P-hard. The book also discusses some advanced topics in probabilistic data management such as top-kquery processing, sequential probabilistic databases, indexing and materialized views, and Monte Carlo databases.
    [Show full text]
  • Download a Copy of the 264-Page Publication
    2020 Department of Neurological Surgery Annual Report Reporting period July 1, 2019 through June 30, 2020 Table of Contents: Introduction .................................................................3 Faculty and Residents ...................................................5 Faculty ...................................................................6 Residents ...............................................................8 Stuart Rowe Lecturers .........................................10 Peter J. Jannetta Lecturers ................................... 11 Department Overview ............................................... 13 History ............................................................... 14 Goals/Mission .................................................... 16 Organization ...................................................... 16 Accomplishments of Note ................................ 29 Education Programs .................................................. 35 Faculty Biographies ................................................... 47 Resident Biographies ................................................171 Research ....................................................................213 Overview ...........................................................214 Investigator Research Summaries ................... 228 Research Grant Summary ................................ 242 Alumni: Past Residents ........................................... 249 Donations ................................................................ 259 Statistics
    [Show full text]
  • Best Answers Over Incomplete Data : Complexity and First-Order Rewritings
    Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence (IJCAI-19) Best Answers over Incomplete Data : Complexity and First-Order Rewritings Amelie´ Gheerbrant and Cristina Sirangelo Universite´ de Paris, IRIF, CNRS, F-75013 Paris, France famelie, [email protected] Abstract as if nulls were usual data values, thus merely using the stan- dard database query engine to compute certain answers. Answering queries over incomplete data is ubiqui- In general though it is a common occurrence that few if tous in data management and in many AI applica- any certain answers can be found. If there are no certain an- tions that use query rewriting to take advantage of swers, it is still useful to provide a user with some answers, relational database technology. In these scenarios with suitable guarantees. To address this need, a framework one lacks full information on the data but queries to measure how close an answer is to certainty has recently still need to be answered with certainty. The cer- been proposed [Libkin, 2018b], setting the foundations to tainty aspect often makes query answering unfeasi- both a quantitative and a qualitative approach. We focus on ble except for restricted classes, such as unions of the qualitative notion of best answers. Those are a refinement conjunctive queries. In addition often there are no, of certain answers based on comparing query answers; one or very few, certain answers, thus expensive com- that is supported by a larger set of complete interpretations is putation is in vain. Therefore we study a relax- better. Best answers are those answers for which there is no ation of certain answers called best answers.
    [Show full text]
  • 1 Tarski's Influence on Computer Science
    Tarski’s influence on computer science Solomon Feferman The following is the text of an invited lecture for the LICS 2005 meeting held in Chicago June 26-29, 2005.1 Except for the addition of references, footnotes, corrections of a few points and stylistic changes, the text is essentially as delivered. Subsequent to the lecture I received interesting comments from several colleagues that would have led me to expand on some of the topics as well as the list of references, had I had the time to do so. *********** Almost exactly eight years ago today, Anita Feferman gave a lecture for LICS 1997 at the University of Warsaw with the title, “The saga of Alfred Tarski: From Warsaw to Berkeley.” Anita used the opportunity to tell various things we had learned about Tarski while working on our biography of him. We had no idea then how long it would take to finish that work; it was finally completed in 2004 and appeared in the fall of that year under the title, Alfred Tarski: Life and Logic. The saga that Anita recounted took Tarski from the beginning of the 20th century with his birth to a middle-class Jewish family and upringing in Warsaw, through his university studies and Ph.D. at the ripe young age of 23 and on to his rise as the premier logician in Poland in the 1930s and increasing visibility on the international scene-- despite which he never succeeded in obtaining a chair as professor to match his achievements. The saga continued with Tarski coming to Harvard for a meeting in early September, 1939 when the Nazis invaded Poland on September 1st, at which point he was, in effect, stranded.
    [Show full text]
  • Nonapplicable Nulls
    Theoretical Computer Science 46 (1986) 67-82 67 North-Holland NONAPPLICABLE NULLS Nadine LERAT and Witold LIPSKI, Jr. Laboratoire de Recherche en Informatique, E.R.A. 452 du C.N.R.S. "AI Khowarizmi", Universit~ de Paris-Sud, Centre d'Orsay, 91405 Orsay Cedex, France Communicated by M. Nivat Received December 1985 Abstract. A nonapplicable null appears in a relation whenever the value of the corresponding attribute does not exist. In order to evaluate a query on a relation r involving such null values, the information contained in r is represented by a set of null-free instances, then the query on r--expressed in a user-friendly query language (Generalized Relational Calculus)---is translated into a set of queries on the null-free instances. Conversely, we define the operations on relations with nulls (Generalized Relational Algebra) and we proved an extension of Codd's completeness theorem. Introduction It often happens in database practice that we are not able to provide the value of an attdbutennot just because we do not know this value, but rather because (we know that) the attribute does not apply, i.e., this value simply does not exist. Typically, a special symbol, called a nonexistent null or nonapplicable null, is inserted in such a situation into the appropriate field in the database. One should make a clear distinction between nonapplicable nulls and the usual 'existential nulls' denoting 'value exists but is not known'. Indeed, these two cases of nulls have a completely different flavor and it should be stressed that a situation necessitating the use of a nonapplicable null has nothing to do with information incompleteness.
    [Show full text]
  • My Six Encounters with Victor Marek — a Personal Account
    My Six Encounters with Victor Marek — a Personal Account Mirosław Truszczynski´ Department of Computer Science, University of Kentucky, Lexington, KY 40506, USA [email protected] 1 Introduction Co-editing the volume dedicated to Victor Marek in honor of his 65th birthday turned into an occasion to reflect on the influence Victor has had on my life. Since 1985, we have worked together day in and day out, and over the years we have grown to be friends (I hope he sees it the same way). However, the story starts about 10 years earlier, and whenever I think about it, it invariably boils down to what I call six encounters. In 1973, I entered the Warsaw University of Technology and had to attend lectures on the foundations of mathematics. While in high school, I had never heard about the subject but was soon under its spell. There was clarity and elegance in it and, to my (pleasant) surprise, also questions that went beyond mathematics into the realm of phi- losophy. To be sure, it was not easy, and for a while I feared I could fail to master the subject. Fortunately, I learned that there was an excellent problem book. Owing to the color of its cover, it was known as the ”black book” among my fellow students. It helped me a lot. In fact, for a while it was indispensable! The authors were Victor Marek and Janusz Onyszkiewicz [1]. Such was my first, albeit indirect, encounter with Victor. It quite possibly saved a young aspiring mathematician. (By the way, there is also an English edition of the book [2].
    [Show full text]
  • Ooo Ooto •Oooo
    PRACE IPI PAN • ICS PAS REPORTS o o oO . 1 Q Tomasz Imielinski, Witold Lipski, jr ooto O O O f O A systematic approach 0 0 0 O O *° relational O # # database theory 90900 00900 OOO ----------------------------------------------------------------------------- 457 •oooo0#000 INSTYTUT PODSTAW INFORMATYKI POLSKIEI AKADEMII NAUK INSTITUTE OF COMPUTER SCIENCE POLISH ACADEMY OF SCIENCES ooooo 00-901 W A R SA W , P. O. Box 22, P O L A N D Tomasz Imieliński, Witold Lipski, A SYSTEMATIC APPROACH TO RELATIONAL DATABASE THEORY. 457 Warsaw, January 1982 Rada Redakcyjna A. Blikle (przewodniczący), S. Bylka, J. Lipski (sekretarz), W. Lipski, L. Łukaszewicz, R. Marczyński, A. Mazurkiewicz, T. Nowicki, Z. Szoda, M. Warsrus (zastępca przewodniczącego) Pracę zgłosił Andrzej Blikle Mailing addresses: Tomasz Imieliński Witold Lipski Institute of Computer Science Polish Academy of Sciences P.O. Box 22 00-901 Warszawa PKiH iss : : 0138 - 0648 J? X. f ' r , \ ! D 4 ? z \ ’ L1»• o , • *<w PB Printed as a manucsript Ha prawach rękopisu Nakład 700 egz. Ark. Wyd. 1,25; ark. druk. 1,75, Papier offset, kl. III, 70 g, 70 x 100. Oddano do druku w atyczniu 1982 r. W. D. H. Zaa. nr Sygn. J d k 2 ć |.k 5 ł nr inw. Abstract • COJ(0P*®HM , streszczenie In an attempt to eliminate motivational inconsistencies, we propose a new approach to relational database theory. Basically, a database schema is treated as a relational view defined over certain atomic, selfexplainable relations, constituting wnat we call a conceptual schema. In this new framework, we revisit some basic notions of the relational database theory, such as dependencies and schema equivalence.
    [Show full text]
  • Oooo Oo#Oo Oteoo
    h 14P6/175 f i ' PRACE co PAN • cc PAS REPORTS Oooo2 1 5 5 b ^ “ " o o o « o OOOM oo#oo 00* 0« 00990 00999 Witold Lipski omooo 09009 Variaits of file organization for a family 09099 of threo sets oteoo 09909 09990 _______ t75 1974 OOOO WARSZAWA O O O w CENTRUM OBLICZENIOWE POLSKIEJ AKADEMII NAUK COMPUTATION CENTRE POLISH ACADEMY OF SCIENCES 00*0 WARSAW PKIN, P. O. Box 2 2, POLAND Witold Lipski VARIANTS OP PILE ORGANIZATION POR A PA1CELY OP THREE SETS 175 Warsaw 1575 Komitat Redakcyjny A. Blikle (przewodniczący), J. Lipski (sekretarz), L. Łukaszewicz, R. Marczyński, Ł. Mardoń, A. Mazurkiewicz, Z. Pawlak, Z. Szoda (zastępca przewodniczącego), M. Warmia Pracę zgłosił Zdzisław Pawlak Mailing adirees« Witold Lipski, Jr ul. Afrykańska 14P 14, 03-946 Warszawa Ob)ic o PA. b Ina. Printed as a nanuscript Ba prawach rękopisu Bakład 700 egz. Ark. wyd. 0,75 ark. druk. 1,00. Papier offset. kl. XH, 70 g, 70 x 100. Oddano do druku w październiku 1974 r. W. D. B. Zam. nr 733/O 1 Abstract . CojepxaHHe • Streszczenie In the paper the following combinatorial problem related to file organization is considered: given three sets find an arranging of X such that each is a segment (cf.t3l). Certain theorems concerning a file organization introduced by Ghosh [21, which are connected with the above problem, are also proved. BapHaHTH opraHH3anHH MHOsceciBa Aawmtx b ciyqae ceMeRciBa Tpex u b o z s c t b B paCoie paccuaipHBaeTca npoójtewa KOMÓHHaiopHKH, cbs- 3aHHaa c opraHH3anne$ MHOxeciBa flammx, a mieHHo: no AaHiaai ipeii MBoxecTBau M ^ Mg, Mg » 1 BaflTH TaKoe ynopaflO^ieHHe MHoatecTBa X, ^to6bi Ka^woe mbokoctbo M npe,ncTaBJiajio codofi 0ipe3OK /cpaBBH c [3J /.
    [Show full text]
  • Best Answers Over Incomplete Data: Complexity and First-Order Rewritings
    Best Answers over Incomplete Data : Complexity and First-Order Rewritings Amélie Gheerbrant, Cristina Sirangelo To cite this version: Amélie Gheerbrant, Cristina Sirangelo. Best Answers over Incomplete Data : Complexity and First- Order Rewritings. the Twenty-Eighth International Joint Conference on Artificial Intelligence (IJCAI 2019), Aug 2019, Macao, China. hal-02971723 HAL Id: hal-02971723 https://hal.archives-ouvertes.fr/hal-02971723 Submitted on 19 Oct 2020 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Best Answers over Incomplete Data : Complexity and First-Order Rewritings Amelie´ Gheerbrant and Cristina Sirangelo Universite´ de Paris, IRIF, CNRS, F-75013 Paris, France famelie, [email protected] Abstract as if nulls were usual data values, thus merely using the stan- dard database query engine to compute certain answers. Answering queries over incomplete data is ubiqui- In general though it is a common occurrence that few if tous in data management and in many AI applica- any certain answers can be found. If there are no certain an- tions that use query rewriting to take advantage of swers, it is still useful to provide a user with some answers, relational database technology.
    [Show full text]
  • FINDING a MANHATTAN PATH and RELATED PROBLEMS by Witold
    FINDING A MANHATTAN PATH AND RELATED PROBLEMS by Witold Lipski, Jr. This work was supported in part by the University of Illinois. FINDING A MANHATTAN PATH AND RELATED PROBLEMS Witold Lipski, Jr. Coordinated Science Laboratory University of Illinois at Urbana-Champaign Urbana, IL 61801, USA Abstract. Let S be a set of n horizontal and vertical segments on the plane, and let s, t € S. A Manhattan path (of length k) from s to t is an alternating sequence of horizontal and vertical segments s = r^,r.,...,r^ = t where r^ 2 intersects r^+ p 0 < i < k. We give an 0 (nlog n) algorithm to find, for a given t, a tree of shortest Manhattan paths from all s € S to t. We also determine a maximum set of crossings (intersections of segments) with no two on the same segment, as well as a maximum set of nonintersecting segments, 3/2 2 both in 0(n log n) time. The latter algorithm is applied to decomposing, 3/2 2 in 0(n log n) time, a hole-free union of n rectangles with sides parallel to the coordinate axes into the minimal number of disjoint rectangles. All 2 the algorithms require O(nlogn) space, and for all of them the factor log n can be improved to lognloglogn, at the cost of some complication of the basic data structure used. Keywords and phrases: computational geometry, horizontal and vertical segments, segment tree, Manhattan path, minimal decomposition into disjoint rectangles. On leave from the Institute of Computer Science, Polish Academy of Sciences, P.
    [Show full text]
  • The Relational Model of Data and Cylindric Algebras
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES 28,8&102 (1984) The Relational Model of Data and Cylindric Algebras TOMASZ IMIELI~KI AND WITOLD LIPSKI, JR. Institute of Computer Science, Polish Academy of Sciences P.O. Box 22, 00-901 Warsaw PKiN, Poland Received August 24, 1982; revised April 25, 1983 It is shown how the theory of cylindric algebras (a notion introduced by Tarski and others as a tool in the algebraization of the first order predicate calculus) can give a new insight into Codd’s relational model of data. The relational algebra of Codd can be embedded in a natural way into a cylindric algebra where the join operation becomes the usual set-theoretical inter- section. It is shown, by using known facts from the theory of cylindric algebras, that a version of the relational algebra is not finitely axiomatizable and that the equivalence problem for certain relational expressions is undecidable. A duality between the project-join and select- union operator pairs is also briefly discussed. 1. INTRODUCTION A general classification of query languages which turned out to be convenient in database theory and practice is that into nonprocedural and procedural languages. A query in a nonprocedural language expresses what we want without necessarily saying how to obtain it. A query in a procedural language explicitly specifies the actions that should be taken, or procedures to be invoked, to obtain the response. While no practical query language is either purely procedural or purely nonprocedural, it is clear that nonprocedural languages are more convenient for the user, whereas procedural languages are easier to implement.
    [Show full text]
  • Query Processing on Probabilistic Data: a Survey
    Foundations and Trends R in Databases Vol. 7, No. 3-4 (2015) 197–341 c 2017 G. Van den Broeck and D. Suciu DOI: 10.1561/1900000052 Query Processing on Probabilistic Data: A Survey Guy Van den Broeck Dan Suciu University of California University of Washington Los Angeles Seattle Contents 1 Introduction 198 2 Probabilistic Data Model 203 2.1 Possible Worlds Semantics . 204 2.2 Independence Assumptions . 205 2.3 Query Semantics . 212 2.4 Beyond Independence: Hard Constraints . 215 2.5 Beyond Independence: Soft Constraints . 218 2.6 From Soft Constraints to Independence . 225 2.7 Related Data Models . 229 3 Weighted Model Counting 236 3.1 Three Variants of Model Counting . 236 3.2 Relationships Between the Three Problems . 241 3.3 First-Order Model Counting . 243 3.4 Algorithms and Complexity for Exact Model Counting . 249 3.5 Algorithms for Approximate Model Counting . 252 4 Lifted Query Processing 258 4.1 Extensional Operators and Safe Plans . 260 4.2 Lifted Inference Rules . 265 4.3 Hierarchical Queries . 269 ii iii 4.4 The Dichotomy Theorem . 271 4.5 Negation . 278 4.6 Symmetric Databases . 281 4.7 Extensions . 284 5 Query Compilation 292 5.1 Compilation Targets . 293 5.2 Compiling UCQ . 300 5.3 Compilation Beyond UCQ . 311 6 Data, Systems, and Applications 313 6.1 Probabilistic Data . 313 6.2 Probabilistic Database Systems . 315 6.3 Applications . 318 7 Conclusions and Open Problems 321 Acknowledgements 323 References 324 Abstract Probabilistic data is motivated by the need to model uncertainty in large databases. Over the last twenty years or so, both the Database community and the AI community have studied various aspects of probabilistic relational data.
    [Show full text]