Foundations of Databases

Size: px
Start display at page:

Download "Foundations of Databases"

Transcription

1 Foundations of Databases Free Universit of Bozen Bolzano, 2009 Werner Nutt (Most slides adapted from Thomas Eiter and Leonid Libkin) Foundations of Databases 1 Quer optimization: finding a good wa to evaluate a quer Queries are declarative, and can be translated into procedural languages in more than one wa Hence one has to choose the best (or at least good) procedural quer This happens in the contet of quer processing A quer processor turns queries and updates into sequences of operations on the database

2 Foundations of Databases 2 Stages Queries are translated into an etended relational algebra (operator + eecution method): Which algebra epressions will allow for an efficient eecution? Algebraic operators can be implemented b different methods (Eamples?): Which algorithm should be used for each operator? How do operators pass data (write into main memor, write on disk, pipeline into other operators)? Issues: Translate the quer into etended relational algebra ( quer plans ) Esimate the eecution of the plans: We need to know how data is stored, how it accessed, how large are intermediate results, etc. Decisions are based on general guidelines and statistical information Foundations of Databases 3 Overview of Quer Processing Start with a declarative quer: SELECT R.A, S.B, T.E FROM R,S,T WHERE R.C=S.C AND S.D=T.D AND R.A>5 AND S.B<3 AND T.D=T.E Translate into an algebra epression: π R.A,S.B,T.E (σ R.A>5 S.B<3 T.D=T.E (R S T)) Optimization step: rewrite to an equivalent but more efficient epression: π R.A,S.B,T.E (σ A>5 (R) σ B<3 (S) σ D=E (T))) Wh ma this be more efficient? Is there a still more efficient plan?

3 Foundations of Databases 4 Overview of Quer Processing (contd) When evaluating an epression with pushed selections, the main choice to make is the order of joins (ma influence selections). First quer plan (out of two): A,B A>5 B<3 D=E R S T first join S and T, and then join the result with R. Foundations of Databases 5 Overview of quer processing (contd) Alternative quer plan: A,B A>5 B<3 D=E R S T First join R and S, then join the result with T. Both quer plans produce the same result (wh?).

4 Foundations of Databases 6 Wh choose one and not the other? Foundations of Databases 7 Optimization b Algebraic Equivalences Given a relational algebra epression E, find another epression E equivalent to E that is easier (faster) to evaluate. Basic question: Given two relational algebra epressions E 1, E 2, are the equivalent? If there were a method to decide equivalence, we could turn it into one to decide whether an epression E is empt, i.e., whether E(I) = for ever instance I. How does one show this? Problem: Testing whether E is undecidable for epressions of full relational algebra i.e., including union and difference. (An idea wh?) Good news: We can still list some useful equalities. Equivalence is decidable for important classes of queries (SPJR, SPC)

5 Foundations of Databases 8 Optimization b Algebraic Equivalences (cntd) Sstematic wa of quer optimization: Appl equivalences and are commutative and associative, hence applicable in an order Cascaded projections can be simplified: If the attributes A 1,...,A n are among B 1,...,B m, then Cascaded selections might be merged: π A1,...,A n (π B1,...,B m (E)) = π A1,...,A n (E) σ C1 (σ C2 (E)) = σ C1 C 2 (E) Commuting selection with join. If c onl involves attributes from E 1, then etc We will not treat this here. σ C (E 1 E 2 ) = σ C (E 1 ) E 2 Foundations of Databases 9 Optimization b Algebraic Equivalences (contd) Rules combining σ,π with and \ Commuting selection and union: σ C (E 1 E 2 ) = σ C (E 1 ) σ C (E 2 ) Commuting selection and difference: σ C (E 1 \ E 2 ) = σ C (E 1 ) \ σ C (E 2 ) Commuting projection and union: π A1,...,A n (E 1 E 2 ) = π A1,...,A n (E 1 ) π A1,...,A n (E 2 ) Question: what about projection and difference? Is π A (E 1 \ E 2 ) equal to π A (E 1 ) \ π A (E 2 )?

6 Foundations of Databases 10 Optimization of Conjunctive Queries Reminder: Conjunctive queries = SPJR queries = simple SELECT-FROM-WHERE SQL queries (onl AND and (in)equalit in the WHERE clause) Etremel common, and thus special optimization techniques have been developed Reminder: for two relational algebra epressions E 1,E 2, E 1 = E 2 is undecidable. But for conjunctive queries, even E 1 E 2 is decidable. Main goal of optimizing conjunctive queries: reduce the number of joins. Foundations of Databases 11 Optimization of Conjunctive Queries: An Eample Given a relation R with two attributes A,B Two SQL queries: Q1 Q2 SELECT DISTINCT R1.B, R1.A SELECT DISTINCT R3.A, R1.A FROM R R1, R R2 FROM R R1, R R2, R R3 WHERE R2.A=R1.B WHERE R1.B=R2.B AND R2.B=R3.A Are the equivalent? If the are, we can save one join operation. In relational algebra: Q 1 = π 2,1 (σ 2=3 (R R)) Q 2 = π 5,1 (σ 2=4 4=5 (R R R))

7 Foundations of Databases 12 Optimization of Conjunctive Queries (contd) We will show that Q 1 and Q 2 are equivalent! We cannot do this b using our equivalences for relational algebra epression. (Wh?) Alternative idea: CQs are like patterns that have to be matched b a database. If a CQ returns an answer over a db, a part of the db must look like the quer. Use rule based notation to find a representation of part of the db: Q 1 (,) : Q 2 (,) : R(,),R(,z) R(,),R(w,),R(,u) Foundations of Databases 13 Containment is a Ke Propert Definition. (Quer containment) A quer Q is contained in a quer Q (written Q Q ) if Q(I) Q (I) for ever database instance I. Translations: If we can decide containment for a class of queries, then we can also decide equivalence. If Q is a class of queries that is closed under intersection, then the containment problem for Q can be reduced to the equivalence problem for Q.

8 Foundations of Databases 14 Checking Containment of Conjunctive Queries: Ideas We want to check containment of two CQs Q, Q We consider CQs without equalities and inequalities (How serious is this restriction?) We also assume that Q and Q have the same arit and identical vectors of head variables, that is, the are defined as Q( ) : B, Q ( ) : B Intuition: a conjunctive quer Q( ) : B returns an answer over instance I if I matches the pattern B Instead of checking containment over all instances, we consider onl finitel man test instances (or better, one!) Foundations of Databases 15 Tableau Notation of Conjunctive Queries Tableau notation blurs the distinction between quer and database instance We first consider queries over a single relation Q 1 (, ) : R(, ), R(, z) Q 2 (, ) : R(, ), R(w, ), R(, u) Tableau: A B A B z w answer line u Variables in the answer line are called distinguished answer line

9 Foundations of Databases 16 Tableau Homomorphisms Tableau (as well as database instances or first order structures) are compared b homomorphisms Idea: T is more general than T if there is a homomorphism from T to T Reminder: Terms are variables or constants A homomorphism δ from Tableau T 1 to tableau T 2 is a mapping such that δ: {variables of T 1 } {terms of T 2 } δ() = for ever distinguished if (t 1,...,t k ) is a row in T 1, then (δ(t 1 ),...,δ(t k )) is a row in T 2, where δ is etended to constants such that δ(a) = a for ever constant a Foundations of Databases 17 Tableau for Queries with Multiple Relations So far we assumed that there is onl one relation R, but what if there are man? Construct a tableau for the quer: Q(,): S(,),R(,z),R(,w),R(w, ) We create rows for each relation: A B S: A B R: z w w Formall, a tableau is just a database where variables can appear in tuples, plus a set of distinguished variables.

10 Foundations of Databases 18 Tableau Homomorphisms: General Case Let T 1, T 2 be tableau with the same distinguished variables A homomorphism δ from T 1 to T 2 is a mapping δ: {variables of T 1 } {terms of T 2 } such that δ(a) = a for ever constant δ() = for ever distinguished variable if t is a row of R in T 1, then δ( t) is a row of R in T 2, for ever relation R Foundations of Databases 19 The Homomorphism Theorem for Tableau Homomorphism Theorem: Let Q, Q be two conjunctive queries without equalities and inequalities that have the same distinguished variables and let T, T be their tableau. Then Q Q there eists a homomorphism from T to T

11 Foundations of Databases 20 Proof: Necessit Assume that Q Q Note that T, ignoring the declaration of distinguished variables, can be seen as a database instance (if we view variables as constants) Note also that Q(T) Since Q Q, it follows that Q (T) Since Q (T), there is a valuation ν such ν satisfies Q over T ν ( ) = Thus, we obtain a homomorphism δ from T to T b defining δ () = ν () for ever variable in Q Foundations of Databases 21 Proof: Sufficienc Assume there is a hom δ from T to T. We will show that Q Q We denote the bod of Q as B and the bod of Q as B Let I be a db instance. We show that Q(I) Q (I) Let a Q(I). We show that a Q (I) Since a Q(I), there is a valuation ν : var(q) dom(i) such that ν satisfies B, the bod of Q (that is, ν(b) I in logic programming perspective) ν( ) = a

12 Foundations of Databases 22 Proof: Sufficienc (cntd.) Let ν := ν δ. Then ν is a valuation for Q Moreover, if R( t) is an atom of B, then δ(r( t)) = R(δ( t)) is an atom of B, since δ is a homomorphism, and ν (R( t)) = ν(r(δ( t))) is an atom in I, since ν satisfies B over I, that is, ν (R( t)) is an atom in I In summar, since R( t) was arbitrar, we have that ν (B ) I, that is, ν satisfies B over I Also ν ( ) = ν(δ( )) = ν( ) = a Hence, a Q (I) Foundations of Databases 23 Appling the Homomorphism Theorem: Q 1 Q 2 T1 T2 A B A B f()=, f()= z w f(u)=z, f(w)= u Hence Q1 Q2 T1 T2 A B z A w B f()=, f()= f(z)=u u Hence Q2 Q1

13 Foundations of Databases 24 Quer Containment: Eercise Find all containments and equivalences among the following conjunctive queries: q 1 (,) : r(,), r(,z), r(z,w) q 2 (,) : r(,), r(,z), r(z,u), r(u,w) q 3 (,) : r(,), r(z,u), r(v,w), r(,z), r(,u), r(u,w) q 4 (,) : r(,), r(,3), r(3,z), r(z,w) Foundations of Databases 25 Quer Containment: Compleit Given two conjunctive queries, how hard is it to test whether Q Q? It is eas to transform them into tableau, from either SPJ relational algebra queries, or SQL queries, or rule-based queries. However, a polnomial algorithm for deciding equivalence is unlikel to eist: Theorem. Given two tableau, deciding the eistence of a homomorphism between them is NP-complete. Proof Ideas: Reductions of graph problems like Hamiltonian Path or Clique. Also, reduction of 3SAT. (This one is interesting, because it can be modified to prove that containment is harder for generalisations of conjunctive queries, such as CQs with comparisons or CQs over databases with nulls.) In practice, quer epressions are small, and thus conjunctive quer optimization is nonetheless feasible in polnomial time

14 Foundations of Databases 26 The 3-Colorabilit Problem Instance: A graph G = (V,E) Question: Can G be colored with the three colours {r, g, b } in such a wa that two adjacent vertices have a distinct colour? The 3-colorabilit problem is NP-hard Observation: A graph G is 3-colourable if and onl if there is a graph homomorphism from G to the simple S 3, which consists of of three vertices that are connected to each other. Foundations of Databases 27 Reduction of 3-Colorabilit to Containment Given graph G = (V,E), where V = {v 1,...,v n } and E = {(v il,v jl ) i l < j l, 1 l m } We construct queries Q, Q as follows Q() : e(r,b), e(b,r), e(r,g), e(g,r), e(b,g), e(g,b) Q () : e( i1, j1 ),...,e( im, jm ) where 1,..., n are new variables and there is one atom e( il, jl ) for each edge (v il,v jl ) E Clearl, Q Q if and onl if there is a graph homomorphism from G to S 3

15 Foundations of Databases 28 Minimizing Conjunctive Queries Goal: Given a conjunctive quer Q, find an equivalent conjunctive quer Q with the minimum number of joins. Questions: How man such queries can eist? How different are the? Assumption: We consider onl CQs without equalities and inequalities. We call these queries simple conjunctive queries (SCQs). If nothing else is said in this chapter, CQs are simple CQs Terminolog: If Q( ) : R 1 ( u 1 ),...,R k ( u k ) is a CQ, then Q is a subquer of Q if Q is of the form where 1 i 1 < i 2 <... < i l k. Q ( ) : R i1 ( u i1 ),...,R il ( u il ) Foundations of Databases 29 Minimization: Background Theor Proposition 1. Let q be a SCQ with n atoms and q be an equivalent SCQ with m atoms where m < n. Then there eists a subquer q 0 of q such that q 0 has at most m atoms in the bod and q 0 is equivalent to q. Proposition 2. Let q and q be two equivalent minimal SCQs. Then q and q are identical up to renaming of variables. Conclusions: There is essentiall one minimal version of each SCQ Q. We can obtain it b dropping atoms from Q s bod.

16 Foundations of Databases 30 An Algorithm for Minimizing SCQs Given a conjunctive quer Q, transform it into a tableau T. Minimization algorithm: T := T ; repeat until no change choose a row t in T ; end if there is a homomorphism δ: T T \ { t} then T := T \ { t} Output: The quer Q corresponding to the tableau T Foundations of Databases 31 Questions about the Algorithm Does it terminate? Is Q equivalent to Q? Is Q of minimal length among the queries equivalent to Q?

17 Foundations of Databases 32 Minimizing SPJ/Conjunctive Queries: Eample R with three attributes A,B,C SPJ quer Q = π AB (σ B=4 (R)) π BC (π AB (R) π AC (σ B=4 (R))) Translate into relational calculus (instead of normalizing): ` z1 R(,, z 1 ) = 4 1 ` z2 R( 1,, z 2 ) ` 1 R( 1, 1, z) 1 = 4 Simplif, b substituting the constant, and putting quantifiers forward: 1,z 1,z 2 (R(,4,z 1 ) R( 1,4,z 2 ) R( 1,4,z) = 4) Conjunctive quer: Q(,,z) : R(,4,z 1 ),R( 1,4,z 2 ),R( 1,4,z), = 4 Foundations of Databases 33 Minimizing SPJ/Conjunctive Queries (contd) Tableau T : 4 z z z 4 z Minimization, step 1: Is there a homomorphism from T to 1 4 z z 4 z? Answer: No. For an homomorphism δ, we have δ() = (wh?), thus the image of the first row is not in the smaller tableau.

18 Foundations of Databases 34 Minimizing SPJ/Conjunctive Queries (contd) Step 2: Is T equivalent to 4 z z 4 z? Answer: Yes. Homomorphism δ: δ(z 2 ) = z, all other variables sta the same. The new tableau is not equivalent to 4 z 1 4 z or 1 4 z 4 z Because δ() =, δ(z) = z, and the image of one of the rows is not present. Foundations of Databases 35 Minimizing SPJ/Conjunctive Queries (contd) Minimal tableau: 4 z z 4 z Back to conjunctive quer: Q (,,z) : R(,,z 1 ),R( 1,,z), = 4 An SPJ quer: σ B=4 (π AB (R) π BC (R)) Pushing selections: π AB (σ B=4 (R)) π BC (σ B=4 (R))

19 Foundations of Databases 36 Review of the Journe We started with π AB (σ B=4 (R)) π BC (π AB (R) π AC (σ B=4 (R))) Translated into a conjunctive quer Built a tableau and minimized it Translated back into conjunctive quer and SPJ quer Applied algebraic equivalences and obtained π AB (σ B=4 (R)) π BC (σ B=4 (R)) Savings: one join. Foundations of Databases 37 Minimization of Conjunctive Queries: Multiple Relations We consider again the quer: Q(,): B(,),R(,z),R(,w),R(w, ) The tableau was: A B B: A B R: z w w

20 Foundations of Databases 38 Minimization with Multiple Relations The algorithm is the same as before, but one has to tr rows in different relations. Consider the homomorphism where δ(z) = w, and δ is the identit for all other variables. Appling this to the tableau for Q ields B: A B R: A w B w This can t be further reduced, as for an homomorphism δ, δ()=, δ()=. Thus Q is equivalent to Q (, ) : B(, ), R(, w), R(w, ) One join is eliminated. Foundations of Databases 39 Conjunctive Queries with Equalities and Disequalities Equalit/Disequalit atoms =, = a, z, etc Let T, T be the tableau of the parts of conjunctive queries Q and Q with ordinar relations Sufficienc: Q Q if there eists a homomorphism δ: T T such that for each (dis)equalit atom t 1 θt 2 in Q, we have that δ(t 1 )θδ(t 2 ) is logicall implied b the equalit and disequalit atoms in Q However, eistence of a homomorphims is no more a necessar condition for containment. It holds under certain conditions, though. Note: Deciding whether a set of equalit/disequalit atoms A logicall implies an equalit/disequalit atom is (relativel) eas.

21 Foundations of Databases 40 Queries with Comparisons For queries with comparison atoms s t we have to refine our semantics An ordered domain is a nonempt set D with a linear order (written D ) Let D be fied. Wlog, dom = D. That is, from now on, database instances have constants from D. Real database languages support man domains, ordered and not ordered, b tping relation smbols and admitting onl queries that are well-tped. Foundations of Databases 41 Queries with Comparisons (ctnd) We consider conjunctive queries Q( s) : R,C with tuples of terms in the head whose bodies consist of a set of relational atoms R and a set of comparisons C whose constants are elements of D whose comparisons are interpreted over D The semantics of such queries is defined in a straightforward manner

22 Foundations of Databases 42 Queries with Comparisons: Eamples Q() : P(,w), P(,), R(,u), w 5, 2 Q () : P(,), R(,z), 3 How can we determine containment? Foundations of Databases 43 Quer Homomorphism: Definition Instead of tableau homomorphims, one often defines quer homomorphisms. An homomorphism from Q ( ) : R, C to Q( ) : R, C is a substitution δ such that δ( ) = δ(r ) R C = δ(c ). Here, δ( ), δ(r ) and δ(c ) are the etensions of δ to comple sntactic entities. Note that we view R, R, C, and C as sets of atoms. How should we have to define =?

23 Foundations of Databases 44 Quer Homomorphism: Eample Q () : P(,), R(,z), 3 Q() : P(,w), P(,), R(,u), w 5, 2 An homomorphism from Q to Q is δ() =, δ() =, δ(z) = u. Foundations of Databases 45 Homomorphisms: The General Case Eistence of a homomorphism is not a necessar, but a sufficient condition for containment. Theorem: Let Q, Q be two conjunctive queries, possibl with comparisons and inequalities, such that Q and Q have the same distinguished variables. Then Q Q if there eists a homomorphism from Q to Q.

24 Foundations of Databases 46 Containment of Queries with Comparisons Classical eample: Q () : P(u,v), u v Q() : P(,z), P(z,) Q is contained in Q, but there is no homomorphism from Q to Q. Foundations of Databases 47 Checking Containment of Queries with Comparisons: Idea Q () : P(u,v), u v Q() : P(,z), P(z,) Replace Q with an equivalent union of queries: Q { <z } () : P(,z), P(z,), < z Q { =z } () : P(,z), P(z,), = z Q { >z } () : P(,z), P(z,), > z Check whether Q i Q for all Q i (Case Analsis)

25 Foundations of Databases 48 Linearizations We now make this idea formal. Let D be an ordered domain, D be a set of constants from D, W be a set of variables, and let T := D W denote their union. A linearization of T over D is a set of comparisons L over the terms in T such that for an s, t T eactl one of the following holds: L = D s < t L = D s = t L = D s > t. L partitions the terms into classes such that (i) the terms in each class are equal and (ii) the classes are arranged in a strict linear order Foundations of Databases 49 Linearizations (cntd) Remark: A class of the induced partition contains at most one constant Remark: Whether or not L is a linearization ma depend on the domain. Consider e.g., {1 <, < 2 } A linearization L of T over D is compatible with a set of comparisons C if L C is satisfiable over D

26 Foundations of Databases 50 Linearizations of Conjunctive Queries When checking containment of two queries, we have to consider linearizations that contains the constants of both queries Let Q( s) : R, C be a quer with set of comparisons C ranging over I W be the set of variables occurring in q D be a set of constants from I that comprise the constants of q Then we denote with L D (Q) the set of all linearizations of D W that are compatible with the comparisons C of Q Foundations of Databases 51 Linearizations of Conjunctive Queries (cntd) Let Q be as above. Let L be a linearization of T = D W compatible with C. Note: L defines an equivalence relation on T, where each equivalence class contains at most one constant A substitution φ is canonical for L if it maps all elements in an equivalence class of L to one term of that class if a class contains a constant, then it maps the class to that constant. Then Q L is obtained from Q b means of a canonical substitution φ for L as Q L (φ( s)) : φr, φl, that is, we first replace C with L and then eliminate all equalities b appling φ

27 Foundations of Databases 52 Linearizations of Conjunctive Queries (cntd) Consider Q L (φ( s)) : φr, φl, We call Q L a linearization of q w.r.t. L There ma be more than one linearization of q w.r.t. L, but all linearizations are identical up to renaming of variables Note that φ is a homomorphism from q to Q L Foundations of Databases 53 Linear Epansions A linear epansion of q over D is a famil of queries (Q L ) L LD (Q), where each Q L is a linearization of q w.r.t. L. If Q and D are clear from the contet, or do not matter, we write simpl (Q L ) L.

28 Foundations of Databases 54 Containment of Queries with Comparisons Theorem (Klug 88): If Q, Q are conjunctive queries with comparisons over D with set of constants D (Q L ) L is a linear epansion of Q over D, then: Q Q for ever Q L in (Q L ) L, there is an homomorphism from Q to Q L Theorem (van der Meden 92): Containment with comparisons is Π P 2 -complete. Foundations of Databases 55 Quer Optimization and Functional Dependencies Additional equivalences hold if db instances satisf integrit constraints We consider here functional dependencies Eample: Let R have attributes A,B,C. Assume that I(R) satisfies A B. Then it holds that (π AB (R) π AC (R))(I) = R(I) (We have considered the epressions π AB (R) π AC (R) and R as queries.) Tableau can help with these optimizations! π AB (R) π AC (R) as a conjunctive quer: Q(,,z) : R(,,z 1 ),R(, 1,z)

29 Foundations of Databases 56 Quer Optimization and Functional Dependencies (contd) Tableau: z 1 1 z z Using the FD A B infer = 1 Net, minimize the resulting tableau: z 1 z z z z And this sas that the quer is equivalent to Q (,,z): R(,,z), that is, R This is known as the chase technique Foundations of Databases 57 Quer Optimization and Functional Dependencies (contd) General idea: simplif the tableau using functional dependencies and then minimize. Given: a conjunctive quer Q, and a set of FDs F Algorithm: Step 1. Construct the tableau T for Q Step 2. Appl algorithm CHASE(T,F) Step 3. Minimize output of CHASE(T,F) Step 4. Construct a quer from the tableau produced in Step 3

30 Foundations of Databases 58 The CHASE We assume that all FDs are of the form X A, where A is a single attribute. For simplicit, we also assume that the tableau has onl a single relation. The generalisation is straightforward. for each X A in F do for each t 1, t 2 in T such that t 1.X = t 2.X and t 1.A t 2.A do case t 1.A, t 2.A of one nondistinguished variable replace the nondistinguished variable b the other term one distinguished variable, one distinguished variable or constant replace the distinguished variable b the other term two constants output and STOP end end. Foundations of Databases 59 Quer Optimization and Functional Dependencies: Eample 2 R is over A,B,C; F = {B A } Q = π BC (σ A=4 (R)) π AB (R) Q as a conjunctive quer: Q(,,z) : R(4,,z),R(,,z 1 ) Tableau: 4 z CHASE 4 z minimize 4 z z 1 z 4 z 1 4 z 4 z Final result: Q(,,z) : R(,,z), = 4, that is, σ A=4 (R).

31 Foundations of Databases 60 Quer Optimization and Functional Dependencies: Eample 3 Same R and F ; the quer is: Q = π BC (σ A=4 (R)) π AB (σ A=5 (R)) As a conjunctive quer: Q(,,z) : R(4,,z),R(,, z 1 ), = 5 Tableau: 4 z 5 z 1 CHASE 5 z Final result: (the empt quer) This equivalence does not hold without the FD B A Foundations of Databases 61 Quer Optimization and Functional Dependencies: Eample 4 Sometimes simplifications are quite dramatic Same R, FD is A B, the quer is Q = π AB (R) π A (σ B=4 (R)) π AB (π AC (R) π BC (R)) Convert into conjunctive quer: Q(,) : R(,,z 1 ),R(, 1,z),R( 1,,z),R(,4,z 2 )

32 Foundations of Databases 62 Quer Optimization and Functional Dependencies: Eample 4 (contd) Tableau: z 1 1 z 1 z 4 z 2 CHASE 4 z 1 4 z 1 4 z 4 z 2 minimize 4 z 4 4 Foundations of Databases 63 Quer Optimization and Functional Dependencies: Eample 4 (contd) 4 z is translated into Q(, ) : R(,, z), = 4 4 or, equivalentl π AB (σ B=4 (R)). Thus, π AB (R) π A (σ B=4 (R)) π AB (π AC (R) π BC (R)) = π AB (σ B=4 (R)) in the presence of FD A B. Savings: 3 joins! This cannot be derived b algebraic manipulations, nor conjunctive quer minimization without using CHASE.

33 Foundations of Databases 64 Questions about the CHASE Does the CHASE algorithm terminate? What is the run time? What is the relation between a tableau and its CHASE d version? Quer containment wrt a set of FD s: How can we define this problem? Can we decide this problem? Quer minimsation wrt to a set of FDs Consider SCQs: we know from previous eercises that all such queries are satisfiable. Is the same true if we assume onl database instances that satisf a given set of FDs F?

Foundations of Databases

Foundations 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 information

Query answering using views

Query 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 information

GAV-sound with conjunctive queries

GAV-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 information

8. BOOLEAN ALGEBRAS x x

8. BOOLEAN ALGEBRAS x x 8. BOOLEAN ALGEBRAS 8.1. Definition of a Boolean Algebra There are man sstems of interest to computing scientists that have a common underling structure. It makes sense to describe such a mathematical

More information

Computational Logic. Relational Query Languages with Negation. Free University of Bozen-Bolzano, Werner Nutt

Computational 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 information

You don't have to be a mathematician to have a feel for numbers. John Forbes Nash, Jr.

You don't have to be a mathematician to have a feel for numbers. John Forbes Nash, Jr. Course Title: Real Analsis Course Code: MTH3 Course instructor: Dr. Atiq ur Rehman Class: MSc-II Course URL: www.mathcit.org/atiq/fa5-mth3 You don't have to be a mathematician to have a feel for numbers.

More information

Section 1.5 Formal definitions of limits

Section 1.5 Formal definitions of limits Section.5 Formal definitions of limits (3/908) Overview: The definitions of the various tpes of limits in previous sections involve phrases such as arbitraril close, sufficientl close, arbitraril large,

More information

UNCORRECTED SAMPLE PAGES. 3Quadratics. Chapter 3. Objectives

UNCORRECTED SAMPLE PAGES. 3Quadratics. Chapter 3. Objectives Chapter 3 3Quadratics Objectives To recognise and sketch the graphs of quadratic polnomials. To find the ke features of the graph of a quadratic polnomial: ais intercepts, turning point and ais of smmetr.

More information

Mathematics 309 Conic sections and their applicationsn. Chapter 2. Quadric figures. ai,j x i x j + b i x i + c =0. 1. Coordinate changes

Mathematics 309 Conic sections and their applicationsn. Chapter 2. Quadric figures. ai,j x i x j + b i x i + c =0. 1. Coordinate changes Mathematics 309 Conic sections and their applicationsn Chapter 2. Quadric figures In this chapter want to outline quickl how to decide what figure associated in 2D and 3D to quadratic equations look like.

More information

Course information. Winter ATFD

Course information. Winter ATFD Course information More information next week This is a challenging course that will put you at the forefront of current data management research Lots of work done by you: extra reading: at least 4 research

More information

MAT389 Fall 2016, Problem Set 2

MAT389 Fall 2016, Problem Set 2 MAT389 Fall 2016, Problem Set 2 Circles in the Riemann sphere Recall that the Riemann sphere is defined as the set Let P be the plane defined b Σ = { (a, b, c) R 3 a 2 + b 2 + c 2 = 1 } P = { (a, b, c)

More information

Section 3.1. ; X = (0, 1]. (i) f : R R R, f (x, y) = x y

Section 3.1. ; X = (0, 1]. (i) f : R R R, f (x, y) = x y Paul J. Bruillard MATH 0.970 Problem Set 6 An Introduction to Abstract Mathematics R. Bond and W. Keane Section 3.1: 3b,c,e,i, 4bd, 6, 9, 15, 16, 18c,e, 19a, 0, 1b Section 3.: 1f,i, e, 6, 1e,f,h, 13e,

More information

11.4 Polar Coordinates

11.4 Polar Coordinates 11. Polar Coordinates 917 11. Polar Coordinates In Section 1.1, we introduced the Cartesian coordinates of a point in the plane as a means of assigning ordered pairs of numbers to points in the plane.

More information

Eigenvectors and Eigenvalues 1

Eigenvectors and Eigenvalues 1 Ma 2015 page 1 Eigenvectors and Eigenvalues 1 In this handout, we will eplore eigenvectors and eigenvalues. We will begin with an eploration, then provide some direct eplanation and worked eamples, and

More information

LESSON 35: EIGENVALUES AND EIGENVECTORS APRIL 21, (1) We might also write v as v. Both notations refer to a vector.

LESSON 35: EIGENVALUES AND EIGENVECTORS APRIL 21, (1) We might also write v as v. Both notations refer to a vector. LESSON 5: EIGENVALUES AND EIGENVECTORS APRIL 2, 27 In this contet, a vector is a column matri E Note 2 v 2, v 4 5 6 () We might also write v as v Both notations refer to a vector (2) A vector can be man

More information

Design and Analysis of Algorithms

Design and Analysis of Algorithms CSE 101, Winter 2018 Design and Analsis of Algorithms Lecture 15: NP-Completeness Class URL: http://vlsicad.ucsd.edu/courses/cse101-w18/ From Application to Algorithm Design Find all maimal regularl-spaced,

More information

P Q1 Q2 Q3 Q4 Q5 Tot (60) (20) (20) (20) (60) (20) (200) You are allotted a maximum of 4 hours to complete this exam.

P Q1 Q2 Q3 Q4 Q5 Tot (60) (20) (20) (20) (60) (20) (200) You are allotted a maximum of 4 hours to complete this exam. Exam INFO-H-417 Database System Architecture 13 January 2014 Name: ULB Student ID: P Q1 Q2 Q3 Q4 Q5 Tot (60 (20 (20 (20 (60 (20 (200 Exam modalities You are allotted a maximum of 4 hours to complete this

More information

5. Zeros. We deduce that the graph crosses the x-axis at the points x = 0, 1, 2 and 4, and nowhere else. And that s exactly what we see in the graph.

5. Zeros. We deduce that the graph crosses the x-axis at the points x = 0, 1, 2 and 4, and nowhere else. And that s exactly what we see in the graph. . Zeros Eample 1. At the right we have drawn the graph of the polnomial = ( 1) ( 2) ( 4). Argue that the form of the algebraic formula allows ou to see right awa where the graph is above the -ais, where

More information

Tensor products in Riesz space theory

Tensor products in Riesz space theory Tensor products in Riesz space theor Jan van Waaij Master thesis defended on Jul 16, 2013 Thesis advisors dr. O.W. van Gaans dr. M.F.E. de Jeu Mathematical Institute, Universit of Leiden CONTENTS 2 Contents

More information

CONQUERING CALCULUS POST-SECONDARY PREPARATION SOLUTIONS TO ALL EXERCISES. Andrijana Burazin and Miroslav Lovrić

CONQUERING CALCULUS POST-SECONDARY PREPARATION SOLUTIONS TO ALL EXERCISES. Andrijana Burazin and Miroslav Lovrić CONQUERING CALCULUS POST-SECONDARY PREPARATION SOLUTIONS TO ALL EXERCISES Andrijana Burazin and Miroslav Lovrić c 7 Miroslav Lovrić. This is an open-access document. You are allowed to download, print

More information

CMPS 277 Principles of Database Systems. Lecture #9

CMPS 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 information

Review of Essential Skills and Knowledge

Review of Essential Skills and Knowledge Review of Essential Skills and Knowledge R Eponent Laws...50 R Epanding and Simplifing Polnomial Epressions...5 R 3 Factoring Polnomial Epressions...5 R Working with Rational Epressions...55 R 5 Slope

More information

Section 1.2: A Catalog of Functions

Section 1.2: A Catalog of Functions Section 1.: A Catalog of Functions As we discussed in the last section, in the sciences, we often tr to find an equation which models some given phenomenon in the real world - for eample, temperature as

More information

4Cubic. polynomials UNCORRECTED PAGE PROOFS

4Cubic. polynomials UNCORRECTED PAGE PROOFS 4Cubic polnomials 4.1 Kick off with CAS 4. Polnomials 4.3 The remainder and factor theorems 4.4 Graphs of cubic polnomials 4.5 Equations of cubic polnomials 4.6 Cubic models and applications 4.7 Review

More information

Course 15 Numbers and Their Properties

Course 15 Numbers and Their Properties Course Numbers and Their Properties KEY Module: Objective: Rules for Eponents and Radicals To practice appling rules for eponents when the eponents are rational numbers Name: Date: Fill in the blanks.

More information

Chapter 6. Self-Adjusting Data Structures

Chapter 6. Self-Adjusting Data Structures Chapter 6 Self-Adjusting Data Structures Chapter 5 describes a data structure that is able to achieve an epected quer time that is proportional to the entrop of the quer distribution. The most interesting

More information

Design and Analysis of Algorithms

Design and Analysis of Algorithms CSE 0, Winter 208 Design and Analsis of Algorithms Lecture 6: NP-Completeness, Part 2 Class URL: http://vlsicad.ucsd.edu/courses/cse0-w8/ The Classes P and NP Classes of Decision Problems P: Problems for

More information

5.4 dividing POlynOmIAlS

5.4 dividing POlynOmIAlS SECTION 5.4 dividing PolNomiAls 3 9 3 learning ObjeCTIveS In this section, ou will: Use long division to divide polnomials. Use snthetic division to divide polnomials. 5.4 dividing POlnOmIAlS Figure 1

More information

or just I if the set A is clear. Hence we have for all x in A the identity function I ( )

or just I if the set A is clear. Hence we have for all x in A the identity function I ( ) 3 Functions 46 SECTON E Properties of Composite Functions the end of this section ou will be able to understand what is meant b the identit function prove properties of inverse function prove properties

More information

MATH Line integrals III Fall The fundamental theorem of line integrals. In general C

MATH Line integrals III Fall The fundamental theorem of line integrals. In general C MATH 255 Line integrals III Fall 216 In general 1. The fundamental theorem of line integrals v T ds depends on the curve between the starting point and the ending point. onsider two was to get from (1,

More information

Flows and Connectivity

Flows and Connectivity Chapter 4 Flows and Connectivit 4. Network Flows Capacit Networks A network N is a connected weighted loopless graph (G,w) with two specified vertices and, called the source and the sink, respectivel,

More information

Decimal Operations No Calculators!!! Directions: Perform the indicated operation. Show all work. Use extra paper if necessary.

Decimal Operations No Calculators!!! Directions: Perform the indicated operation. Show all work. Use extra paper if necessary. Decimal Operations No Calculators!!! Directions: Perform the indicated operation. Show all work. Use etra paper if necessar. Find.8 +.9...09 +. + 0.06 =. 6.08 + 6.8 + 00. =. 8. 6.09 =. 00.908. = Find.

More information

f(x) = 2x 2 + 2x - 4

f(x) = 2x 2 + 2x - 4 4-1 Graphing Quadratic Functions What You ll Learn Scan the tet under the Now heading. List two things ou will learn about in the lesson. 1. Active Vocabular 2. New Vocabular Label each bo with the terms

More information

CIRCUIT COMPLEXITY AND PROBLEM STRUCTURE IN HAMMING SPACE

CIRCUIT COMPLEXITY AND PROBLEM STRUCTURE IN HAMMING SPACE CIRCUIT COMPLEXITY AND PROBLEM STRUCTURE IN HAMMING SPACE KOJI KOBAYASHI Abstract. This paper describes about relation between circuit compleit and accept inputs structure in Hamming space b using almost

More information

10.2 The Unit Circle: Cosine and Sine

10.2 The Unit Circle: Cosine and Sine 0. The Unit Circle: Cosine and Sine 77 0. The Unit Circle: Cosine and Sine In Section 0.., we introduced circular motion and derived a formula which describes the linear velocit of an object moving on

More information

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler Database Theory Database Theory VU 181.140, SS 2018 5. Complexity of Query Evaluation Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 17 April, 2018 Pichler

More information

Chapter 4 Analytic Trigonometry

Chapter 4 Analytic Trigonometry Analtic Trigonometr Chapter Analtic Trigonometr Inverse Trigonometric Functions The trigonometric functions act as an operator on the variable (angle, resulting in an output value Suppose this process

More information

General Vector Spaces

General Vector Spaces CHAPTER 4 General Vector Spaces CHAPTER CONTENTS 4. Real Vector Spaces 83 4. Subspaces 9 4.3 Linear Independence 4.4 Coordinates and Basis 4.5 Dimension 4.6 Change of Basis 9 4.7 Row Space, Column Space,

More information

Properties of Limits

Properties of Limits 33460_003qd //04 :3 PM Page 59 SECTION 3 Evaluating Limits Analticall 59 Section 3 Evaluating Limits Analticall Evaluate a it using properties of its Develop and use a strateg for finding its Evaluate

More information

Review Topics for MATH 1400 Elements of Calculus Table of Contents

Review Topics for MATH 1400 Elements of Calculus Table of Contents Math 1400 - Mano Table of Contents - Review - page 1 of 2 Review Topics for MATH 1400 Elements of Calculus Table of Contents MATH 1400 Elements of Calculus is one of the Marquette Core Courses for Mathematical

More information

SAT Modulo ODE: A Direct SAT Approach to Hybrid Systems

SAT Modulo ODE: A Direct SAT Approach to Hybrid Systems Welcome ATVA 2008 SAT Modulo ODE: A Direct SAT Approach to Hbrid Sstems Andreas Eggers, Martin Fränzle, and Christian Herde DFG Transregional Collaborative Research Center AVACS Outline Motivation Bounded

More information

Parallel-Correctness and Transferability for Conjunctive Queries

Parallel-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 information

Simplification of State Machines

Simplification of State Machines T3 Lecture Notes State Reduction hapter 9 - of Simplification of State Machines This semester has been spent developing the techniques needed to design digital circuits. Now we can compile a list of just

More information

Introduction to Vector Spaces Linear Algebra, Spring 2011

Introduction to Vector Spaces Linear Algebra, Spring 2011 Introduction to Vector Spaces Linear Algebra, Spring 2011 You probabl have heard the word vector before, perhaps in the contet of Calculus III or phsics. You probabl think of a vector like this: 5 3 or

More information

CHAPTER 2: Partial Derivatives. 2.2 Increments and Differential

CHAPTER 2: Partial Derivatives. 2.2 Increments and Differential CHAPTER : Partial Derivatives.1 Definition of a Partial Derivative. Increments and Differential.3 Chain Rules.4 Local Etrema.5 Absolute Etrema 1 Chapter : Partial Derivatives.1 Definition of a Partial

More information

Chapter R REVIEW OF BASIC CONCEPTS. Section R.1: Sets

Chapter R REVIEW OF BASIC CONCEPTS. Section R.1: Sets Chapter R REVIEW OF BASIC CONCEPTS Section R.: Sets. The elements of the set {,,,, 0} are all the natural numbers from to 0 inclusive. There are 9 elements in the set, {,,,,, 7,, 9, 0}.. Each element of

More information

Toda s Theorem: PH P #P

Toda s Theorem: PH P #P CS254: Computational Compleit Theor Prof. Luca Trevisan Final Project Ananth Raghunathan 1 Introduction Toda s Theorem: PH P #P The class NP captures the difficult of finding certificates. However, in

More information

Binary Decision Diagrams

Binary Decision Diagrams Binar Decision Diagrams Ma 3, 2004 1 Overview Boolean functions Possible representations Binar decision trees Binar decision diagrams Ordered binar decision diagrams Reduced ordered binar decision diagrams

More information

Relational Algebra on Bags. Why Bags? Operations on Bags. Example: Bag Selection. σ A+B < 5 (R) = A B

Relational Algebra on Bags. Why Bags? Operations on Bags. Example: Bag Selection. σ A+B < 5 (R) = A B Relational Algebra on Bags Why Bags? 13 14 A bag (or multiset ) is like a set, but an element may appear more than once. Example: {1,2,1,3} is a bag. Example: {1,2,3} is also a bag that happens to be a

More information

INTRODUCTION TO DIFFERENTIAL EQUATIONS

INTRODUCTION TO DIFFERENTIAL EQUATIONS INTRODUCTION TO DIFFERENTIAL EQUATIONS. Definitions and Terminolog. Initial-Value Problems.3 Differential Equations as Mathematical Models CHAPTER IN REVIEW The words differential and equations certainl

More information

Polynomial and Rational Functions

Polynomial and Rational Functions Polnomial and Rational Functions Figure -mm film, once the standard for capturing photographic images, has been made largel obsolete b digital photograph. (credit film : modification of work b Horia Varlan;

More information

CCSSM Algebra: Equations

CCSSM Algebra: Equations CCSSM Algebra: Equations. Reasoning with Equations and Inequalities (A-REI) Eplain each step in solving a simple equation as following from the equalit of numbers asserted at the previous step, starting

More information

1.7 Inverse Functions

1.7 Inverse Functions 71_0107.qd 1/7/0 10: AM Page 17 Section 1.7 Inverse Functions 17 1.7 Inverse Functions Inverse Functions Recall from Section 1. that a function can be represented b a set of ordered pairs. For instance,

More information

Patterns, Functions, & Relations Long-Term Memory Review Review 1

Patterns, Functions, & Relations Long-Term Memory Review Review 1 Long-Term Memor Review Review 1 1. What are the net three terms in the pattern? 9, 5, 1, 3,. Fill in the Blank: A function is a relation that has eactl one for ever. 3. True or False: If the statement

More information

Polynomial and Rational Functions

Polynomial and Rational Functions Polnomial and Rational Functions 5 Figure 1 35-mm film, once the standard for capturing photographic images, has been made largel obsolete b digital photograph. (credit film : modification of work b Horia

More information

Introduction to Differential Equations. National Chiao Tung University Chun-Jen Tsai 9/14/2011

Introduction to Differential Equations. National Chiao Tung University Chun-Jen Tsai 9/14/2011 Introduction to Differential Equations National Chiao Tung Universit Chun-Jen Tsai 9/14/011 Differential Equations Definition: An equation containing the derivatives of one or more dependent variables,

More information

LESSON #1 - BASIC ALGEBRAIC PROPERTIES COMMON CORE ALGEBRA II

LESSON #1 - BASIC ALGEBRAIC PROPERTIES COMMON CORE ALGEBRA II 1 LESSON #1 - BASIC ALGEBRAIC PROPERTIES COMMON CORE ALGEBRA II Mathematics has developed a language all to itself in order to clarif concepts and remove ambiguit from the analsis of problems. To achieve

More information

CS 347 Parallel and Distributed Data Processing

CS 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 information

Mark Redekopp, All rights reserved. Lecture 4 Slides. Boolean Algebra Logic Functions Canonical Sums/Products

Mark Redekopp, All rights reserved. Lecture 4 Slides. Boolean Algebra Logic Functions Canonical Sums/Products Lecture 4 Slides Boolean Algebra Logic Functions Canonical Sums/Products LOGIC FUNCTION REPRESENTATION Logic Functions A logic function maps input combinations to an output value ( 1 or ) 3 possible representations

More information

8.7 Systems of Non-Linear Equations and Inequalities

8.7 Systems of Non-Linear Equations and Inequalities 8.7 Sstems of Non-Linear Equations and Inequalities 67 8.7 Sstems of Non-Linear Equations and Inequalities In this section, we stud sstems of non-linear equations and inequalities. Unlike the sstems of

More information

Section B. Ordinary Differential Equations & its Applications Maths II

Section B. Ordinary Differential Equations & its Applications Maths II Section B Ordinar Differential Equations & its Applications Maths II Basic Concepts and Ideas: A differential equation (D.E.) is an equation involving an unknown function (or dependent variable) of one

More information

The Maze Generation Problem is NP-complete

The Maze Generation Problem is NP-complete The Mae Generation Problem is NP-complete Mario Alviano Department of Mathematics, Universit of Calabria, 87030 Rende (CS), Ital alviano@mat.unical.it Abstract. The Mae Generation problem has been presented

More information

4 Inverse function theorem

4 Inverse function theorem Tel Aviv Universit, 2013/14 Analsis-III,IV 53 4 Inverse function theorem 4a What is the problem................ 53 4b Simple observations before the theorem..... 54 4c The theorem.....................

More information

SEPARABLE EQUATIONS 2.2

SEPARABLE EQUATIONS 2.2 46 CHAPTER FIRST-ORDER DIFFERENTIAL EQUATIONS 4. Chemical Reactions When certain kinds of chemicals are combined, the rate at which the new compound is formed is modeled b the autonomous differential equation

More information

Ch 5 Alg 2 L2 Note Sheet Key Do Activity 1 on your Ch 5 Activity Sheet.

Ch 5 Alg 2 L2 Note Sheet Key Do Activity 1 on your Ch 5 Activity Sheet. Ch Alg L Note Sheet Ke Do Activit 1 on our Ch Activit Sheet. Chapter : Quadratic Equations and Functions.1 Modeling Data With Quadratic Functions You had three forms for linear equations, ou will have

More information

First Steps in Relational Lattice

First Steps in Relational Lattice First Steps in Relational Lattice MARSHALL SPIGHT Marshall.Spight@gmai1.com VADIM TROPASHKO Vadim.Tropashko@orcl.com Relational lattice reduces the set of si classic relational algebra operators to two

More information

1.5. Analyzing Graphs of Functions. The Graph of a Function. What you should learn. Why you should learn it. 54 Chapter 1 Functions and Their Graphs

1.5. Analyzing Graphs of Functions. The Graph of a Function. What you should learn. Why you should learn it. 54 Chapter 1 Functions and Their Graphs 0_005.qd /7/05 8: AM Page 5 5 Chapter Functions and Their Graphs.5 Analzing Graphs of Functions What ou should learn Use the Vertical Line Test for functions. Find the zeros of functions. Determine intervals

More information

CS 347 Distributed Databases and Transaction Processing Notes03: Query Processing

CS 347 Distributed Databases and Transaction Processing Notes03: Query Processing CS 347 Distributed Databases and Transaction Processing Notes03: Query Processing Hector Garcia-Molina Zoltan Gyongyi CS 347 Notes 03 1 Query Processing! Decomposition! Localization! Optimization CS 347

More information

(2.5) 1. Solve the following compound inequality and graph the solution set.

(2.5) 1. Solve the following compound inequality and graph the solution set. Intermediate Algebra Practice Final Math 0 (7 th ed.) (Ch. -) (.5). Solve the following compound inequalit and graph the solution set. 0 and and > or or (.7). Solve the following absolute value inequalities.

More information

Systems of Linear Equations: Solving by Graphing

Systems of Linear Equations: Solving by Graphing 8.1 Sstems of Linear Equations: Solving b Graphing 8.1 OBJECTIVE 1. Find the solution(s) for a set of linear equations b graphing NOTE There is no other ordered pair that satisfies both equations. From

More information

2.2 SEPARABLE VARIABLES

2.2 SEPARABLE VARIABLES 44 CHAPTER FIRST-ORDER DIFFERENTIAL EQUATIONS 6 Consider the autonomous DE 6 Use our ideas from Problem 5 to find intervals on the -ais for which solution curves are concave up and intervals for which

More information

STATIC LECTURE 4: CONSTRAINED OPTIMIZATION II - KUHN TUCKER THEORY

STATIC LECTURE 4: CONSTRAINED OPTIMIZATION II - KUHN TUCKER THEORY STATIC LECTURE 4: CONSTRAINED OPTIMIZATION II - KUHN TUCKER THEORY UNIVERSITY OF MARYLAND: ECON 600 1. Some Eamples 1 A general problem that arises countless times in economics takes the form: (Verbally):

More information

FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING. Lectures AB = BA = I,

FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING. Lectures AB = BA = I, FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING Lectures MODULE 7 MATRICES II Inverse of a matri Sstems of linear equations Solution of sets of linear equations elimination methods 4

More information

Polynomial and Rational Functions

Polynomial and Rational Functions Name Date Chapter Polnomial and Rational Functions Section.1 Quadratic Functions Objective: In this lesson ou learned how to sketch and analze graphs of quadratic functions. Important Vocabular Define

More information

CpE358/CS381. Switching Theory and Logical Design. Class 2

CpE358/CS381. Switching Theory and Logical Design. Class 2 CpE358/CS38 Switching Theor and Logical Design Class 2 CpE358/CS38 Switching Theor and Logical Design Summer- 24 Copright 24 Stevens Institute of Technolog -45 Toda s Material Fundamental concepts of digital

More information

INTRODUCTION TO DIOPHANTINE EQUATIONS

INTRODUCTION TO DIOPHANTINE EQUATIONS INTRODUCTION TO DIOPHANTINE EQUATIONS In the earl 20th centur, Thue made an important breakthrough in the stud of diophantine equations. His proof is one of the first eamples of the polnomial method. His

More information

Logic 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 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 information

Glossary. Also available at BigIdeasMath.com: multi-language glossary vocabulary flash cards. An equation that contains an absolute value expression

Glossary. Also available at BigIdeasMath.com: multi-language glossary vocabulary flash cards. An equation that contains an absolute value expression Glossar This student friendl glossar is designed to be a reference for ke vocabular, properties, and mathematical terms. Several of the entries include a short eample to aid our understanding of important

More information

Higher. Integration 1

Higher. Integration 1 Higher Mathematics Contents Indefinite Integrals RC Preparing to Integrate RC Differential Equations A Definite Integrals RC 7 Geometric Interpretation of A 8 Areas between Curves A 7 Integrating along

More information

Ready To Go On? Skills Intervention 5-1 Using Transformations to Graph Quadratic Functions

Ready To Go On? Skills Intervention 5-1 Using Transformations to Graph Quadratic Functions Read To Go On? Skills Intervention 5-1 Using Transformations to Graph Quadratic Functions Find these vocabular words in Lesson 5-1 and the Multilingual Glossar. Vocabular quadratic function parabola verte

More information

Algebra II Notes Unit Five: Quadratic Functions. Syllabus Objectives: 5.1 The student will graph quadratic functions with and without technology.

Algebra II Notes Unit Five: Quadratic Functions. Syllabus Objectives: 5.1 The student will graph quadratic functions with and without technology. Sllabus Objectives:.1 The student will graph quadratic functions with and without technolog. Quadratic Function: a function that can be written in the form are real numbers Parabola: the U-shaped graph

More information

Analytic Trigonometry

Analytic Trigonometry CHAPTER 5 Analtic Trigonometr 5. Fundamental Identities 5. Proving Trigonometric Identities 5.3 Sum and Difference Identities 5.4 Multiple-Angle Identities 5.5 The Law of Sines 5.6 The Law of Cosines It

More information

y = f(x + 4) a) Example: A repeating X by using two linear equations y = ±x. b) Example: y = f(x - 3). The translation is

y = f(x + 4) a) Example: A repeating X by using two linear equations y = ±x. b) Example: y = f(x - 3). The translation is Answers Chapter Function Transformations. Horizontal and Vertical Translations, pages to. a h, k h, k - c h -, k d h 7, k - e h -, k. a A (-,, B (-,, C (-,, D (,, E (, A (-, -, B (-,, C (,, D (, -, E (,

More information

Higher. Integration 89

Higher. Integration 89 hsn.uk.net Higher Mathematics UNIT UTCME Integration Contents Integration 89 Indefinite Integrals 89 Preparing to Integrate 9 Differential Equations 9 Definite Integrals 9 Geometric Interpretation of Integration

More information

7 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. 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 information

Gauss and Gauss Jordan Elimination

Gauss and Gauss Jordan Elimination Gauss and Gauss Jordan Elimination Row-echelon form: (,, ) A matri is said to be in row echelon form if it has the following three properties. () All row consisting entirel of zeros occur at the bottom

More information

2.1 Rates of Change and Limits AP Calculus

2.1 Rates of Change and Limits AP Calculus .1 Rates of Change and Limits AP Calculus.1 RATES OF CHANGE AND LIMITS Limits Limits are what separate Calculus from pre calculus. Using a it is also the foundational principle behind the two most important

More information

1 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

1 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 information

MAT 1275: Introduction to Mathematical Analysis. Graphs and Simplest Equations for Basic Trigonometric Functions. y=sin( x) Function

MAT 1275: Introduction to Mathematical Analysis. Graphs and Simplest Equations for Basic Trigonometric Functions. y=sin( x) Function MAT 275: Introduction to Mathematical Analsis Dr. A. Rozenblum Graphs and Simplest Equations for Basic Trigonometric Functions We consider here three basic functions: sine, cosine and tangent. For them,

More information

Chapter 0: Algebraic Concepts

Chapter 0: Algebraic Concepts Chapter 0: Algebraic Concepts Eercise 0.. {,, z, a}. {,,,,...}. {,,,, } 7. {, 7,,,,, } 9. {: is a natural number greater than and less than 8}. Yes. Ever element of A is an element of B.. No. c A but c

More information

UNIVERSIDAD CARLOS III DE MADRID MATHEMATICS II EXERCISES (SOLUTIONS )

UNIVERSIDAD CARLOS III DE MADRID MATHEMATICS II EXERCISES (SOLUTIONS ) UNIVERSIDAD CARLOS III DE MADRID MATHEMATICS II EXERCISES (SOLUTIONS ) CHAPTER : Limits and continuit of functions in R n. -. Sketch the following subsets of R. Sketch their boundar and the interior. Stud

More information

Chapter 5: Systems of Equations

Chapter 5: Systems of Equations Chapter : Sstems of Equations Section.: Sstems in Two Variables... 0 Section. Eercises... 9 Section.: Sstems in Three Variables... Section. Eercises... Section.: Linear Inequalities... Section.: Eercises.

More information

Algebra II Notes Unit Six: Polynomials Syllabus Objectives: 6.2 The student will simplify polynomial expressions.

Algebra II Notes Unit Six: Polynomials Syllabus Objectives: 6.2 The student will simplify polynomial expressions. Algebra II Notes Unit Si: Polnomials Sllabus Objectives: 6. The student will simplif polnomial epressions. Review: Properties of Eponents (Allow students to come up with these on their own.) Let a and

More information

MATRIX TRANSFORMATIONS

MATRIX TRANSFORMATIONS CHAPTER 5. MATRIX TRANSFORMATIONS INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW MATRIX TRANSFORMATIONS Matri Transformations Definition Let A and B be sets. A function f : A B

More information

Single-Round Multi-Join Evaluation. Bas Ketsman

Single-Round Multi-Join Evaluation. Bas Ketsman Single-Round Multi-Join Evaluation Bas Ketsman Outline 1. Introduction 2. Parallel-Correctness 3. Transferability 4. Special Cases 2 Motivation Single-round Multi-joins Less rounds / barriers Formal framework

More information

Power Functions. A polynomial expression is an expression of the form a n. x n 2... a 3. ,..., a n. , a 1. A polynomial function has the form f(x) a n

Power Functions. A polynomial expression is an expression of the form a n. x n 2... a 3. ,..., a n. , a 1. A polynomial function has the form f(x) a n 1.1 Power Functions A rock that is tossed into the water of a calm lake creates ripples that move outward in a circular pattern. The area, A, spanned b the ripples can be modelled b the function A(r) πr,

More information

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system): Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building

More information

Module 3, Section 4 Analytic Geometry II

Module 3, Section 4 Analytic Geometry II Principles of Mathematics 11 Section, Introduction 01 Introduction, Section Analtic Geometr II As the lesson titles show, this section etends what ou have learned about Analtic Geometr to several related

More information

TABLE OF CONTENTS - UNIT 1 CHARACTERISTICS OF FUNCTIONS

TABLE OF CONTENTS - UNIT 1 CHARACTERISTICS OF FUNCTIONS TABLE OF CONTENTS - UNIT CHARACTERISTICS OF FUNCTIONS TABLE OF CONTENTS - UNIT CHARACTERISTICS OF FUNCTIONS INTRODUCTION TO FUNCTIONS RELATIONS AND FUNCTIONS EXAMPLES OF FUNCTIONS 4 VIEWING RELATIONS AND

More information

APPENDIXES. B Coordinate Geometry and Lines C. D Trigonometry E F. G The Logarithm Defined as an Integral H Complex Numbers I

APPENDIXES. B Coordinate Geometry and Lines C. D Trigonometry E F. G The Logarithm Defined as an Integral H Complex Numbers I APPENDIXES A Numbers, Inequalities, and Absolute Values B Coordinate Geometr and Lines C Graphs of Second-Degree Equations D Trigonometr E F Sigma Notation Proofs of Theorems G The Logarithm Defined as

More information