Movies Title Director Actor
|
|
- Frank Shepherd
- 6 years ago
- Views:
Transcription
1 Movies Title Director Actor The Trouble with Harry Hitchcock Gwenn The Trouble with Harry Hitchcock Forsythe The Trouble with Harry Hitchcock MacLaine The Trouble with Harry Hitchcock Hitchcock Cries and Whispers Bergman Andersson Cries and Whispers Bergman Sylwan Cries and Whispers Bergman Thulin Cries and Whispers Bergman Ullman Location Theater Address Phone Number Gaumont Opéra 31 bd. des Italiens Saint André des Arts 30 rue Saint André des Arts Le Champo 51 rue des Ecoles Georges V 144 av. des Champs-Elysées Les 7 Montparnassiens 98 bd. du Montparnasse Pariscope Theater Title Schedule Gaumont Opéra Cries and Whispers 20:30 Saint André des Arts The Trouble with Harry 20:15 Georges V Cries and Whispers 22:15 Les 7 Montparnassiens Cries and Whispers 20:45 Figure 3.1: The CINEMA database
2 (4.1) Who is the director of Cries and Whispers? (4.2) Which theaters feature Cries and Whispers? (4.3) What are the address and phone number of the Le Champo? (4.4) List the names and addresses of theaters featuring a Bergman film. (4.5) Is a film directed by Bergman playing in Paris? (4.6) List the pairs of persons such that the first directed the second in a movie, and vice versa. (4.7) List the names of directors who have acted in a movie they directed. (4.8) List pairs of actors that acted in the same movie. (4.9) On any input produce Apocalypse Now, Coppola as the answer. (4.10) Where can I see Annie Hall or Manhattan? (4.11) What are the films with Allen as actor or director? (4.12) What films with Allen as actor or director are currently featured at the Concorde? (4.13) List all movies that were directed by Hitchcock or that are currently playing at the Rex. (4.14) List all actors and director of the movie Apocalypse Now. Figure 4.1: Examples of conjunctive queries, some of which require union
3 Relational Model [AHV, Ch. 3] (p.30) - Infinite set att of attributes: A, B,... (sets of attributes are denoted by U, U 1,U 2,...). - For convenience, attributes are totally ordered by att. - Countably infinite set dom of constants: a, b, c,... - Countably infinite set relname of relation names: R 1,R 2,... - sort is a function that associates a finite set of attributes with each relation name R. - For each finite subset U of att there are infinitely many R with sort(r) =U. 5
4 - A relation schema is a relation name R, sometimes written R[U] when sort(r) =U or R[n], when U = {A 1,A 2,...,A n }. - arity(r) = n, when sort(r) = n. - A database schema R is a finite non-empty set of relation names. Sometimes written R = {R 1 [U 1 ],...,R m [U m ]}. Example: CINEMA = {Movies, Location, Pariscope} sort(movies) ={Title, Director, Actor} sort(location)={theater, Address, Phone Number} sort(pariscope) ={Theater, Title, Schedule} 6
5 Named vs. Unnamed Perspective (Section 3.2, p.31) Named: attribute names can be explicitly referred to. A tuple over a relation schema R[U] is a function from U to dom. R A B C u a b c u(a) = a u(b) = b u(c) = c Tuples are written A : a, B : b, C : c. For a tuple over R[U] and V U: u[v ]=u V (restriction). u[ab] = A : a, B : b. 7
6 Unnamed Version (p.32) dom n = dom dom... dom If arity(r) =n, then a tuple over R is an element of dom n. u = a, b, c u(i): i thelementofu u(2) = b Because of att, there is a one-to-one correspondence between the named and unnamed versions: A : a, B : b, C : c a, b, c att 1 :a, 2:b, 3:c 8
7 Conventional vs. Logic Programming Perspective (Section 3.3, p.32) Conventional: a relation (relation instance) I of R is a finite set of tuples over R. A database instance I over schema R is a mapping I(R) that associates an instance I with each R in R. Logic programming: Let arity(r) =n. A fact over R is an expression of the form R(a 1,a 2,...,a n ) with a i dom for 1 i n. If u = a 1,...,a n we can also write R(u). A relation instance of R is a finite set of facts over R. A database instance of R = {R 1,...,R m } is the union of relation instances over R 1,R 2,...,R m. 9
8 Example (p.33) Schema = {R,S}, sort(r) =AB, sort(s) =B R A B a b c b a a Named conventional S A d I(R) ={f 1,f 2,f 3 }, I(S) ={g} f 1 (A) =a, f 1 (B) =b, f 2 (A) =c, f 2 (B) =b f 3 (A) =a, f 3 (B) =a, g(a) =d Unnamed conventional I(R) ={ a, b, c, b, a, a }, I(S) ={ d } Named logic programming I = {R(A : a, B : b), R(A : c, B : b), R(A : a, B : a), S(A : d)} 10
9 Unnamed logic programming I = {R(a, b), R(c, b), R(a, a), S(d)} We shall move freely between the different perspectives. One more concept: Let var be a countably infinite set of variables x, y, z, x 1,y 1,... ranging over dom. A free tuple over R[U] is a function from U to dom var. Free tuples can have variables. An atom over R is an expression R(e 1,e 2,...,e n ), where each e i is a variable or constant. If all e i are constants, R(e 1,e 2,...,e n ) is called a ground atom (a.k.a. fact). 11
10 Algebraic Languages (Section 4.4, p.52) Two versions: one for the unnamed model and one for the named model Unnamed model: SPC-algebra List the names and addresses of theatres featuring a Bergman film. Step-by-step: I 1 := σ 2= Bergman (Movies) I 2 := I 1 Pariscope I 3 := σ 1=5 (I 2 ) I 4 := π 4 (I 3 ) I 5 := π 2,3 ( σ1=2 (I 4 Location) ) 32
11 As one expression: π 2,3 (σ 1=2 (π 4 (σ 1=5 (σ 2= Bergman (Movies) Pariscope)) Location)) Another equivalent query: π 4,8 (σ 4=7 (σ 1=5 (σ 2= Bergman (Movies Pariscope Location)))) Is algebra a procedural language? 33
12 The SPC operators, formally (p.53) Selection (atomic selection): σ j=a (I) = {t I t(j) =a} σ j=k (I) = {t I t(j) =t(k)} Projection: π j1,j 2,...,j n (I) ={ t(j 1 ),t(j 2 ),...,t(j n ) t I} Cartesian product: If arity(i) =n and arity(j) =m, then I J = { t(1),...,t(n),s(1),...,s(m) t I, s J} and arity(i J) =n + m. 34
13 SPC queries (p.54) The set of SPC-queries (Select, Project, Cartesian Product) consists of: Input relation: Expression R, with arity equal to arity(r). Unary singleton constant: Expression { a }, where a dom, witharity equal to 1. Furthermore, if q 1 and q 2 are SPC-queries, then: Selection: σ j=a (q 1 ) is a SPC query where j arity(q 1 ), with arity = arity(q 1 ). σ j=k (q 1 ) is a SPC query where j, k arity(q 1 ), with arity = arity(q 1 ). Projection: π j1,...,j n (q 1 ) is a SPC query where j 1,...,j n arity(q 1 ),witharity = n. Cartesian product: q 1 q 2 is a SPC query with arity = arity(q 1 )+arity(q 2 ). 35
14 Define the semantics of SPC queries (exercise). Unsatisfiable queries, e.g. σ 1=a (σ 1=b (R)). Derived Operators: Intersection I J = {t I t J}. I J = def π 1,...,n (σ 1=n+1 (...(σ n=2n (I J))...)), where arity(i) =arity(j) =n. Positive conjunctive selection σ F G (I) = def σ F (σ G (I)) Equijoin Let F = j 1 = k 1 j 2 = k 2... j n = k n. I F J = def σ j1 =m+k 1... j n =m+k n (I J), where arity(i) =m. 36
15 Named Perspective: SPJR algebra (p.56) Natural join: sort(r) = {A, B, C} sort(s) = {C, D} R S = {t over {A, B, C, D} for some u R and v S t[abc] =u and t[cd]=v} List the names and addresses of theatres featuring a Bergman film π Theater,Address ((σ Director= Bergman (Movies) Pariscope) Location) List pairs of actors that acted in the same movie We need to join Movies with itself (autojoin). We need renaming. 38
16 The operators of SPJR-algebra (p.57) Selection σ A=a (I) ={t I t(a) =a}, A sort(i) σ A=B (I) ={t I t(a) =t(b)}, A,B sort(i) Projection π A1,A 2,...,A n (I) ={t[a 1,...,A n ] t I}, {A 1,...,A n } sort(i) Natural join I J = {t sort(t) =sort(i) sort(j) and for some u I and v J t[sort(i)] = u and t[sort(j)] = v} Special cases: intersection and cross-product. Renaming (example) R A B C a b c c d e δ AC EF (R) E B F a b c c d e 39
17 Formally: renaming function f : U att If U = {A, B, C} and f(a) =A,f(B) =B, f(c) =C, we write AC A C.Now: δ f (I) = {t sort(t) =f(sort(i)) and for some s I, t(f(a)) = s(a), for each A sort(i)} Normal form for SPJR-algebra: π B1,...,Bn ({ A 1 : a 1 }... { A m : a m } σ F (δ f1 (R 1 )... δ fk (R k ))) Every SPJR-query can be rewritten into normal form, while preserving equivalence. 40
18 Lemma (p.60) The SPC and SPJR algebras are equivalent. Idea of proof: use normal forms: π j1,...,j n ({ a 1 }... { a m }) σ F (R 1... R k ) and π Aj1,...,A j n ({ A 1 : a 1 }... { A m : a m } σ G (δ f1 (R 1 )... δ fk (R k ))) Theorem 4.4.8: The following classes of queries are equivalent: 1. Rule-based conjunctive queries. 2. Tableau queries. 3. Conjunctive calculus queries. 4. Satisfiable SPC-algebra. 5. Satisfiable SPJR-algebra. 41
4 Conjunctive Queries
4 Conjunctive Queries Alice: Sergio: Riccardo: Vittorio: Shall we start asking queries? Very simple ones for the time being. But the system will answer them fast. And there is some nice theory. In this
More informationExercise Sheet 1: Relational Algebra David Carral, Markus Krötzsch Database Theory, 17 April, Summer Term 2018
Exercise Sheet 1: Relational Algebra David Carral, Markus Krötzsch Database Theory, 17 April, Summer Term 2018 Exercise 1.1. Consider a cinema database with tables of the following form (adapted from a
More informationQuery Processing. 3 steps: Parsing & Translation Optimization Evaluation
rela%onal algebra Query Processing 3 steps: Parsing & Translation Optimization Evaluation 30 Simple set of algebraic operations on relations Journey of a query SQL select from where Rela%onal algebra π
More informationComputational Logic. Relational Query Languages with Negation. Free University of Bozen-Bolzano, Werner Nutt
Computational Logic Free University of Bozen-Bolzano, 2010 Werner Nutt (Slides adapted from Thomas Eiter and Leonid Libkin) Computational Logic 1 Queries with All Who are the directors whose movies are
More informationAs indicated in the previous chapter, the conjunctive queries, even if extended by union,
5 Adding Alice: Vittorio: Sergio: Riccardo: Negation: Algebra and Calculus Conjunctive queries are great. But what if I want to see a movie that doesn t feature Woody Allen? We have to introduce negation.
More information7 RC Simulates RA. Lemma: For every RA expression E(A 1... A k ) there exists a DRC formula F with F V (F ) = {A 1,..., A k } and
7 RC Simulates RA. We now show that DRC (and hence TRC) is at least as expressive as RA. That is, given an RA expression E that mentions at most C, there is an equivalent DRC expression E that mentions
More informationRelational Database: Identities of Relational Algebra; Example of Query Optimization
Relational Database: Identities of Relational Algebra; Example of Query Optimization Greg Plaxton Theory in Programming Practice, Fall 2005 Department of Computer Science University of Texas at Austin
More informationRelational Algebra SPJRUD
Relational Algebra SPJRUD Jef Wijsen Université de Mons (UMONS) May 14, 2018 Jef Wijsen (Université de Mons (UMONS)) SPJRUD May 14, 2018 1 / 1 Tabular Representation The table A B C 1 3 2 1 4 1 2 4 2 2
More informationProvenance Semirings. Todd Green Grigoris Karvounarakis Val Tannen. presented by Clemens Ley
Provenance Semirings Todd Green Grigoris Karvounarakis Val Tannen presented by Clemens Ley place of origin Provenance Semirings Todd Green Grigoris Karvounarakis Val Tannen presented by Clemens Ley place
More informationRelational Algebra and Calculus
Topics Relational Algebra and Calculus Linda Wu Formal query languages Preliminaries Relational algebra Relational calculus Expressive power of algebra and calculus (CMPT 354 2004-2) Chapter 4 CMPT 354
More informationα-acyclic Joins Jef Wijsen May 4, 2017
α-acyclic Joins Jef Wijsen May 4, 2017 1 Motivation Joins in a Distributed Environment Assume the following relations. 1 M[NN, Field of Study, Year] stores data about students of UMONS. For example, (19950423158,
More informationRelational Algebra Part 1. Definitions.
.. Cal Poly pring 2016 CPE/CC 365 Introduction to Database ystems Alexander Dekhtyar Eriq Augustine.. elational Algebra Notation, T,,... relations. t, t 1, t 2,... tuples of relations. t (n tuple with
More informationRelational completeness of query languages for annotated databases
Relational completeness of query languages for annotated databases Floris Geerts 1,2 and Jan Van den Bussche 1 1 Hasselt University/Transnational University Limburg 2 University of Edinburgh Abstract.
More informationPropositional and Predicate Logic - V
Propositional and Predicate Logic - V Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - V WS 2016/2017 1 / 21 Formal proof systems Hilbert s calculus
More informationFundamentos lógicos de bases de datos (Logical foundations of databases)
20/7/2015 ECI 2015 Buenos Aires Fundamentos lógicos de bases de datos (Logical foundations of databases) Diego Figueira Gabriele Puppis CNRS LaBRI About the speakers Gabriele Puppis PhD from Udine (Italy)
More informationCSE 562 Database Systems
Outline Query Optimization CSE 562 Database Systems Query Processing: Algebraic Optimization Some slides are based or modified from originals by Database Systems: The Complete Book, Pearson Prentice Hall
More informationCS632 Notes on Relational Query Languages I
CS632 Notes on Relational Query Languages I A. Demers 6 Feb 2003 1 Introduction Here we define relations, and introduce our notational conventions, which are taken almost directly from [AD93]. We begin
More informationINTRODUCTION TO RELATIONAL DATABASE SYSTEMS
INTRODUCTION TO RELATIONAL DATABASE SYSTEMS DATENBANKSYSTEME 1 (INF 3131) Torsten Grust Universität Tübingen Winter 2017/18 1 THE RELATIONAL ALGEBRA The Relational Algebra (RA) is a query language for
More information6 The Relational Data Model: Algebraic operations on tabular data
6 The Relational Data Model: Algebraic operations on tabular data 6.1 Basic idea of relational languages 6.2 Relational Algebra operations 6.3 Relational Algebra: Syntax and Semantics 6.4. More Operators
More informationPlan of the lecture. G53RDB: Theory of Relational Databases Lecture 2. More operations: renaming. Previous lecture. Renaming.
Plan of the lecture G53RDB: Theory of Relational Lecture 2 Natasha Alechina chool of Computer cience & IT nza@cs.nott.ac.uk Renaming Joins Definability of intersection Division ome properties of relational
More informationQuery answering using views
Query answering using views General setting: database relations R 1,...,R n. Several views V 1,...,V k are defined as results of queries over the R i s. We have a query Q over R 1,...,R n. Question: Can
More informationGAV-sound with conjunctive queries
GAV-sound with conjunctive queries Source and global schema as before: source R 1 (A, B),R 2 (B,C) Global schema: T 1 (A, C), T 2 (B,C) GAV mappings become sound: T 1 {x, y, z R 1 (x,y) R 2 (y,z)} T 2
More informationObtaining More Answers From Information Integration Systems
Obtaining More Answers From Information Integration Systems Gösta Grahne and Victoria Kiricenko Department of Computer Science, Concordia University Montreal, Quebec, Canada H3G 1M8 {grahne,kiricen}@cs.concordia.ca
More information3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.
1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is
More informationAutomata and Languages
Automata and Languages Prof. Mohamed Hamada Software Engineering Lab. The University of Aizu Japan Mathematical Background Mathematical Background Sets Relations Functions Graphs Proof techniques Sets
More informationCS54100: Database Systems
CS54100: Database Systems Relational Algebra 3 February 2012 Prof. Walid Aref Core Relational Algebra A small set of operators that allow us to manipulate relations in limited but useful ways. The operators
More informationChapter 0 Introduction. Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin
Chapter 0 Introduction Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin October 2014 Automata Theory 2 of 22 Automata theory deals
More informationCS 347 Parallel and Distributed Data Processing
CS 347 Parallel and Distributed Data Processing Spring 2016 Notes 3: Query Processing Query Processing Decomposition Localization Optimization CS 347 Notes 3 2 Decomposition Same as in centralized system
More informationSection 2: Classes of Sets
Section 2: Classes of Sets Notation: If A, B are subsets of X, then A \ B denotes the set difference, A \ B = {x A : x B}. A B denotes the symmetric difference. A B = (A \ B) (B \ A) = (A B) \ (A B). Remarks
More informationGuaranteeing No Interaction Between Functional Dependencies and Tree-Like Inclusion Dependencies
Guaranteeing No Interaction Between Functional Dependencies and Tree-Like Inclusion Dependencies Mark Levene Department of Computer Science University College London Gower Street London WC1E 6BT, U.K.
More informationSchedule. Today: Jan. 17 (TH) Jan. 24 (TH) Jan. 29 (T) Jan. 22 (T) Read Sections Assignment 2 due. Read Sections Assignment 3 due.
Schedule Today: Jan. 17 (TH) Relational Algebra. Read Chapter 5. Project Part 1 due. Jan. 22 (T) SQL Queries. Read Sections 6.1-6.2. Assignment 2 due. Jan. 24 (TH) Subqueries, Grouping and Aggregation.
More informationChapter 3 Relational Model
Chapter 3 Relational Model Table of Contents 1. Structure of Relational Databases 2. Relational Algebra 3. Tuple Relational Calculus 4. Domain Relational Calculus Chapter 3-1 1 1. Structure of Relational
More information1. Propositional Calculus
1. Propositional Calculus Some notes for Math 601, Fall 2010 based on Elliott Mendelson, Introduction to Mathematical Logic, Fifth edition, 2010, Chapman & Hall. 2. Syntax ( grammar ). 1.1, p. 1. Given:
More informationForcing in Lukasiewicz logic
Forcing in Lukasiewicz logic a joint work with Antonio Di Nola and George Georgescu Luca Spada lspada@unisa.it Department of Mathematics University of Salerno 3 rd MATHLOGAPS Workshop Aussois, 24 th 30
More informationTuple Relational Calculus
Tuple Relational Calculus Université de Mons (UMONS) May 14, 2018 Motivation S[S#, SNAME, STATUS, CITY] P[P#, PNAME, COLOR, WEIGHT, CITY] SP[S#, P#, QTY)] Get all pairs of city names such that a supplier
More informationarxiv: v1 [cs.db] 1 Sep 2015
Decidability of Equivalence of Aggregate Count-Distinct Queries Babak Bagheri Harari Val Tannen Computer & Information Science Department University of Pennsylvania arxiv:1509.00100v1 [cs.db] 1 Sep 2015
More informationPROBABILITY LOGICS WITH VECTOR VALUED MEASURES. Vladimir Ristić
47 Kragujevac J. Math. 32 2009) 47-60. PROBABILITY LOGICS WITH VECTOR VALUED MEASURES Vladimir Ristić Faculty of Teacher Education, Milana Mijalkovića 14, 35000 Jagodina, Serbia e-mail: vladimir.ristic@pefja.kg.ac.yu)
More informationFuzzy and Rough Sets Part I
Fuzzy and Rough Sets Part I Decision Systems Group Brigham and Women s Hospital, Harvard Medical School Harvard-MIT Division of Health Sciences and Technology Aim Present aspects of fuzzy and rough sets.
More informationUniversal Algebra for Logics
Universal Algebra for Logics Joanna GRYGIEL University of Czestochowa Poland j.grygiel@ajd.czest.pl 2005 These notes form Lecture Notes of a short course which I will give at 1st School on Universal Logic
More information9/19/2018. Cartesian Product. Cartesian Product. Partitions
Cartesian Product The ordered n-tuple (a 1, a 2, a 3,, a n ) is an ordered collection of objects. Two ordered n-tuples (a 1, a 2, a 3,, a n ) and (b 1, b 2, b 3,, b n ) are equal if and only if they contain
More informationChapter 4. Measure Theory. 1. Measure Spaces
Chapter 4. Measure Theory 1. Measure Spaces Let X be a nonempty set. A collection S of subsets of X is said to be an algebra on X if S has the following properties: 1. X S; 2. if A S, then A c S; 3. if
More informationProving simple set properties...
Proving simple set properties... Part 1: Some examples of proofs over sets Fall 2013 Proving simple set properties... Fall 2013 1 / 17 Introduction Overview: Learning outcomes In this session we will...
More informationLanguages. Theory I: Database Foundations. Relational Algebra. Paradigms. Projection. Basic Operators. Jan-Georg Smaus (Georg Lausen)
Languages Theory I: Database Foundations Jan-Georg Smaus (Georg Lausen) Paradigms 1. Languages: Relational Algebra Projection Union and Difference Summary 26.7.2011 Relational algebra Relational calculus
More informationEfficient Query Evaluation on Probabilistic Databases
Efficient Query Evaluation on Probabilistic Databases Nilesh Dalvi and Dan Suciu April 4, 2004 Abstract We describe a system that supports arbitrarily complex SQL queries with uncertain predicates. The
More informationEquational Logic. Chapter Syntax Terms and Term Algebras
Chapter 2 Equational Logic 2.1 Syntax 2.1.1 Terms and Term Algebras The natural logic of algebra is equational logic, whose propositions are universally quantified identities between terms built up from
More informationRelational-Database Design
C H A P T E R 7 Relational-Database Design Exercises 7.2 Answer: A decomposition {R 1, R 2 } is a lossless-join decomposition if R 1 R 2 R 1 or R 1 R 2 R 2. Let R 1 =(A, B, C), R 2 =(A, D, E), and R 1
More informationTABLEAU SYSTEM FOR LOGIC OF CATEGORIAL PROPOSITIONS AND DECIDABILITY
Bulletin of the Section of Logic Volume 37:3/4 (2008), pp. 223 231 Tomasz Jarmużek TABLEAU SYSTEM FOR LOGIC OF CATEGORIAL PROPOSITIONS AND DECIDABILITY Abstract In the article we present an application
More informationFoundations of Databases
Foundations of Databases (Slides adapted from Thomas Eiter, Leonid Libkin and Werner Nutt) Foundations of Databases 1 Quer optimization: finding a good wa to evaluate a quer Queries are declarative, and
More informationEECS-3421a: Test #2 Electrical Engineering & Computer Science York University
18 November 2015 EECS-3421a: Test #2 1 of 16 EECS-3421a: Test #2 Electrical Engineering & Computer Science York University Family Name: Given Name: Student#: CSE Account: Instructor: Parke Godfrey Exam
More informationRELATION ALGEBRAS. Roger D. MADDUX. Department of Mathematics Iowa State University Ames, Iowa USA ELSEVIER
RELATION ALGEBRAS Roger D. MADDUX Department of Mathematics Iowa State University Ames, Iowa 50011 USA ELSEVIER AMSTERDAM. BOSTON HEIDELBERG LONDON NEW YORK. OXFORD PARIS SAN DIEGO. SAN FRANCISCO. SINGAPORE.
More informationComplexity of Reasoning in Entity Relationship Models
Complexity of Reasoning in Entity Relationship Models A. Artale 1, D. Calvanese 1, R. Kontchakov 2, V. Ryzhikov 1, M. Zakharyaschev 2 1 Faculty of Computer Science Free University of Bozen-Bolzano I-39100
More informationThe Structure of Inverses in Schema Mappings
To appear: J. ACM The Structure of Inverses in Schema Mappings Ronald Fagin and Alan Nash IBM Almaden Research Center 650 Harry Road San Jose, CA 95120 Contact email: fagin@almaden.ibm.com Abstract A schema
More informationGeneral Overview - rel. model. Carnegie Mellon Univ. Dept. of Computer Science /615 DB Applications. Motivation. Overview - detailed
Carnegie Mellon Univ. Dep of Computer Science 15-415/615 DB Applications C. Faloutsos & A. Pavlo Lecture#5: Relational calculus General Overview - rel. model history concepts Formal query languages relational
More informationCOSC 430 Advanced Database Topics. Lecture 2: Relational Theory Haibo Zhang Computer Science, University of Otago
COSC 430 Advanced Database Topics Lecture 2: Relational Theory Haibo Zhang Computer Science, University of Otago Learning objectives and references You should be able to: define the elements of the relational
More informationcse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska
cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 1 Course Web Page www3.cs.stonybrook.edu/ cse303 The webpage contains: lectures notes slides; very detailed solutions to
More informationSchema Refinement & Normalization Theory: Functional Dependencies INFS-614 INFS614, GMU 1
Schema Refinement & Normalization Theory: Functional Dependencies INFS-614 INFS614, GMU 1 Background We started with schema design ER model translation into a relational schema Then we studied relational
More informationAxiomatic set theory. Chapter Why axiomatic set theory?
Chapter 1 Axiomatic set theory 1.1 Why axiomatic set theory? Essentially all mathematical theories deal with sets in one way or another. In most cases, however, the use of set theory is limited to its
More informationMulti-Tuple Deletion Propagation: Approximations and Complexity
Multi-Tuple Deletion Propagation: Approximations and Complexity Benny Kimelfeld IBM Research Almaden San Jose, CA 95120, USA kimelfeld@us.ibm.com Jan Vondrák IBM Research Almaden San Jose, CA 95120, USA
More informationInformation Systems for Engineers. Exercise 8. ETH Zurich, Fall Semester Hand-out Due
Information Systems for Engineers Exercise 8 ETH Zurich, Fall Semester 2017 Hand-out 24.11.2017 Due 01.12.2017 1. (Exercise 3.3.1 in [1]) For each of the following relation schemas and sets of FD s, i)
More informationMid-Semester Quiz Second Semester, 2012
THE AUSTRALIAN NATIONAL UNIVERSITY Mid-Semester Quiz Second Semester, 2012 COMP2600 (Formal Methods for Software Engineering) Writing Period: 1 hour duration Study Period: 10 minutes duration Permitted
More informationClC (X ) : X ω X } C. (11)
With each closed-set system we associate a closure operation. Definition 1.20. Let A, C be a closed-set system. Define Cl C : : P(A) P(A) as follows. For every X A, Cl C (X) = { C C : X C }. Cl C (X) is
More informationRelational Algebra & Calculus
Relational Algebra & Calculus Yanlei Diao UMass Amherst Slides Courtesy of R. Ramakrishnan and J. Gehrke 1 Outline v Conceptual Design: ER model v Logical Design: ER to relational model v Querying and
More informationSemantic Metatheory of SL: Mathematical Induction
Semantic Metatheory of SL: Mathematical Induction Preliminary matters: why and when do we need Mathematical Induction? We need it when we want prove that a certain claim (n) holds for all n N (0, 1, 2,
More informationFrom Constructibility and Absoluteness to Computability and Domain Independence
From Constructibility and Absoluteness to Computability and Domain Independence Arnon Avron School of Computer Science Tel Aviv University, Tel Aviv 69978, Israel aa@math.tau.ac.il Abstract. Gödel s main
More informationCMPS 277 Principles of Database Systems. Lecture #9
CMPS 277 Principles of Database Systems http://www.soe.classes.edu/cmps277/winter10 Lecture #9 1 Summary The Query Evaluation Problem for Relational Calculus is PSPACEcomplete. The Query Equivalence Problem
More informationCompleteness in the Monadic Predicate Calculus. We have a system of eight rules of proof. Let's list them:
Completeness in the Monadic Predicate Calculus We have a system of eight rules of proof. Let's list them: PI At any stage of a derivation, you may write down a sentence φ with {φ} as its premiss set. TC
More informationPropagating Functional Dependencies with Conditions
Propagating Functional Dependencies with Conditions Wenfei Fan 1,2,3 Shuai Ma 1 Yanli Hu 1,5 Jie Liu 4 Yinghui Wu 1 1 University of Edinburgh 2 Bell Laboratories 3 Harbin Institute of Technologies 4 Chinese
More informationBOOLEAN ALGEBRA INTRODUCTION SUBSETS
BOOLEAN ALGEBRA M. Ragheb 1/294/2018 INTRODUCTION Modern algebra is centered around the concept of an algebraic system: A, consisting of a set of elements: ai, i=1, 2,, which are combined by a set of operations
More informationBASIC MATHEMATICAL TECHNIQUES
CHAPTER 1 ASIC MATHEMATICAL TECHNIQUES 1.1 Introduction To understand automata theory, one must have a strong foundation about discrete mathematics. Discrete mathematics is a branch of mathematics dealing
More informationACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes)
ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) Steve Vickers CS Theory Group Birmingham 2. Theories and models Categorical approach to many-sorted
More informationLogic and Databases. Phokion G. Kolaitis. UC Santa Cruz & IBM Research Almaden. Lecture 4 Part 1
Logic and Databases Phokion G. Kolaitis UC Santa Cruz & IBM Research Almaden Lecture 4 Part 1 1 Thematic Roadmap Logic and Database Query Languages Relational Algebra and Relational Calculus Conjunctive
More informationOn the complexity of division and set joins in the relational algebra
On the complexity of division and set joins in the relational algebra Dirk Leinders a,, Jan Van den Bussche a a Hasselt University and transnational University of Limburg, Agoralaan, gebouw D, 3590 Diepenbeek,
More informationLocally Consistent Transformations and Query Answering in Data Exchange
Locally Consistent Transformations and Query Answering in Data Exchange Marcelo Arenas University of Toronto marenas@cs.toronto.edu Pablo Barceló University of Toronto pablo@cs.toronto.edu Ronald Fagin
More information1. Propositional Calculus
1. Propositional Calculus Some notes for Math 601, Fall 2010 based on Elliott Mendelson, Introduction to Mathematical Logic, Fifth edition, 2010, Chapman & Hall. 2. Syntax ( grammar ). 1.1, p. 1. Given:
More informationTHE problem of updating a database through a set
FULL VERSION WITH COMPLETE PROOFS 1 Lossless Selection Views under Conditional Domain Constraints Ingo Feinerer, Enrico Franconi and Paolo Guagliardo name suggests, prescribes how a database relation can
More informationParallel-Correctness and Transferability for Conjunctive Queries
Parallel-Correctness and Transferability for Conjunctive Queries Tom J. Ameloot1 Gaetano Geck2 Bas Ketsman1 Frank Neven1 Thomas Schwentick2 1 Hasselt University 2 Dortmund University Big Data Too large
More informationThe non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω
1 Preliminaries In this chapter we first give a summary of the basic notations, terminology and results which will be used in this thesis. The treatment here is reduced to a list of definitions. For the
More informationLifted Inference: Exact Search Based Algorithms
Lifted Inference: Exact Search Based Algorithms Vibhav Gogate The University of Texas at Dallas Overview Background and Notation Probabilistic Knowledge Bases Exact Inference in Propositional Models First-order
More informationDatabase Theory VU , SS Ehrenfeucht-Fraïssé Games. Reinhard Pichler
Database Theory Database Theory VU 181.140, SS 2018 7. Ehrenfeucht-Fraïssé Games Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 15 May, 2018 Pichler 15
More informationLINDSTRÖM S THEOREM SALMAN SIDDIQI
LINDSTRÖM S THEOREM SALMAN SIDDIQI Abstract. This paper attempts to serve as an introduction to abstract model theory. We introduce the notion of abstract logics, explore first-order logic as an instance
More informationTrichotomy Results on the Complexity of Reasoning with Disjunctive Logic Programs
Trichotomy Results on the Complexity of Reasoning with Disjunctive Logic Programs Mirosław Truszczyński Department of Computer Science, University of Kentucky, Lexington, KY 40506, USA Abstract. We present
More informationA Dichotomy. in in Probabilistic Databases. Joint work with Robert Fink. for Non-Repeating Queries with Negation Queries with Negation
Dichotomy for Non-Repeating Queries with Negation Queries with Negation in in Probabilistic Databases Robert Dan Olteanu Fink and Dan Olteanu Joint work with Robert Fink Uncertainty in Computation Simons
More informationData Cleaning and Query Answering with Matching Dependencies and Matching Functions
Data Cleaning and Query Answering with Matching Dependencies and Matching Functions Leopoldo Bertossi Carleton University Ottawa, Canada bertossi@scs.carleton.ca Solmaz Kolahi University of British Columbia
More informationEnumeration Complexity of Conjunctive Queries with Functional Dependencies
Enumeration Complexity of Conjunctive Queries with Functional Dependencies Nofar Carmeli Technion, Haifa, Israel snofca@cs.technion.ac.il Markus Kröll TU Wien, Vienna, Austria kroell@dbai.tuwien.ac.at
More informationIntroduction to Data Management. Lecture #12 (Relational Algebra II)
Introduction to Data Management Lecture #12 (Relational Algebra II) Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Announcements v HW and exams:
More informationMATH1050 Greatest/least element, upper/lower bound
MATH1050 Greatest/ element, upper/lower bound 1 Definition Let S be a subset of R x λ (a) Let λ S λ is said to be a element of S if, for any x S, x λ (b) S is said to have a element if there exists some
More informationData Cleaning and Query Answering with Matching Dependencies and Matching Functions
Data Cleaning and Query Answering with Matching Dependencies and Matching Functions Leopoldo Bertossi 1, Solmaz Kolahi 2, and Laks V. S. Lakshmanan 2 1 Carleton University, Ottawa, Canada. bertossi@scs.carleton.ca
More information1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation
Knowledge Bases and Databases Part 1: First-Order Queries Diego Calvanese Faculty of Computer Science Master of Science in Computer Science A.Y. 2007/2008 Overview of Part 1: First-order queries 1 First-order
More informationarxiv: v1 [cs.db] 21 Sep 2016
Ladan Golshanara 1, Jan Chomicki 1, and Wang-Chiew Tan 2 1 State University of New York at Buffalo, NY, USA ladangol@buffalo.edu, chomicki@buffalo.edu 2 Recruit Institute of Technology and UC Santa Cruz,
More informationComplete Partial Orders, PCF, and Control
Complete Partial Orders, PCF, and Control Andrew R. Plummer TIE Report Draft January 2010 Abstract We develop the theory of directed complete partial orders and complete partial orders. We review the syntax
More informationPřednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1
Přednáška 12 Důkazové kalkuly Kalkul Hilbertova typu 11/29/2006 Hilbertův kalkul 1 Formal systems, Proof calculi A proof calculus (of a theory) is given by: A. a language B. a set of axioms C. a set of
More informationA Worst-Case Optimal Multi-Round Algorithm for Parallel Computation of Conjunctive Queries
A Worst-Case Optimal Multi-Round Algorithm for Parallel Computation of Conjunctive Queries Bas Ketsman Dan Suciu Abstract We study the optimal communication cost for computing a full conjunctive query
More information{x : P (x)} P (x) = x is a cat
1. Sets, relations and functions. 1.1. Set theory. We assume the reader is familiar with elementary set theory as it is used in mathematics today. Nonetheless, we shall now give a careful treatment of
More informationCLASSIFYING THE COMPLEXITY OF CONSTRAINTS USING FINITE ALGEBRAS
CLASSIFYING THE COMPLEXITY OF CONSTRAINTS USING FINITE ALGEBRAS ANDREI BULATOV, PETER JEAVONS, AND ANDREI KROKHIN Abstract. Many natural combinatorial problems can be expressed as constraint satisfaction
More informationA Little Logic. Propositional Logic. Satisfiability Problems. Solving Sudokus. First Order Logic. Logic Programming
A Little Logic International Center for Computational Logic Technische Universität Dresden Germany Propositional Logic Satisfiability Problems Solving Sudokus First Order Logic Logic Programming A Little
More informationA Tableau Calculus for Minimal Modal Model Generation
M4M 2011 A Tableau Calculus for Minimal Modal Model Generation Fabio Papacchini 1 and Renate A. Schmidt 2 School of Computer Science, University of Manchester Abstract Model generation and minimal model
More informationDatabase Applications (15-415)
Database Applications (15-415) Relational Calculus Lecture 5, January 27, 2014 Mohammad Hammoud Today Last Session: Relational Algebra Today s Session: Relational algebra The division operator and summary
More informationDesign of abstract domains using first-order logic
Centrum voor Wiskunde en Informatica REPORTRAPPORT Design of abstract domains using first-order logic E. Marchiori Computer Science/Department of Interactive Systems CS-R9633 1996 Report CS-R9633 ISSN
More informationmat.haus project Zurab Janelidze s Lectures on UNIVERSE OF SETS last updated 18 May 2017 Stellenbosch University 2017
Zurab Janelidze s Lectures on UNIVERSE OF SETS last updated 18 May 2017 Stellenbosch University 2017 Contents 1. Axiom-free universe of sets 1 2. Equality of sets and the empty set 2 3. Comprehension and
More informationComp 5311 Database Management Systems. 5. Functional Dependencies Exercises
Comp 5311 Database Management Systems 5. Functional Dependencies Exercises 1 Assume the following table contains the only set of tuples that may appear in a table R. Which of the following FDs hold in
More information