Plan of the lecture. G53RDB: Theory of Relational Databases Lecture 2. More operations: renaming. Previous lecture. Renaming.
|
|
- Godwin Sharp
- 5 years ago
- Views:
Transcription
1 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 algebra operators Exercises Lecture 2 2 Previous lecture More operations: renaming Let R, be union compatible, that is R A 1... A n and A 1... A n. Then R = {a A 1... A n : a R or a } (union) R = {a A 1... A n : a R and a } (intersection) R = {a A 1... A n : a R and a } (difference) R = {< a 1,, a n, b 1,, b m >: < a 1,, a n > R and < b 1,, b m > } (product) π X (R) = {a(x): a R} (projection) σ α (R) = {<a 1,,a n > R: α (a 1,,a n )} (selection) Each attribute in a schema should be unique but this is not guaranteed when taking a product of two relations. R Name Age Joe 20 Jill 21 Name Address Tom Bill R NameAge NameAddress Joe 20 Tom Joe 20 Bill Jill 21 Tom Jill 21 Bill Lecture 2 3 Lecture 2 4 Renaming Equi-join An operation to rename a relation R to be and to rename attributes of R to be A 1,,A n (in order from left: first attribute of R is now called A 1, etc.): ρ (A1,,An ) (R). The resulting relation has exactly the same set of tuples, but a different name and a different schema. Note that if we only want to rename one of the attributes, we can do this with this operation. For example, let the old schema of R be {A,B,C} and the desired schema of {A,B,E}: ρ (A,B,E) (R). To just rename the relation R to, we will write ρ (R). We define this operation as an intermediate step to defining natural join. Equi-join is an operation which takes two relations R and and two equality-comparable attributes: Att i in the schema of R and Att j in the schema of, and produces a new relation which contains tuples {<a 1,,a n,b 1,,b m >: <a 1,,a n > R, <b 1,,b m >, and a i = b j } Lecture 2 5 Lecture 2 6 1
2 Equi-join: example Natural join R R equi-join NR = N NR Tel N Addr NR Tel N Addr Natural join >< is equi-join with the duplicate attribute removed (note that the values in two columns for Att i and Att j are always identical). Joe 1234 Joe Joe 1234 Joe Jill 1244 Jill Jill 1244 Jill Bill 2244 Bob NG1 Lecture 2 7 Lecture 2 8 Natural join: example Definition of natural join R R >< NR = N NR Tel N Addr NR Tel Joe 1234 Joe Joe 1234 Jill 1244 Jill Jill 1244 Addr Given a relation R over schema which contains attribute Att i and relation over schema which contains attribute Att j, so that Att i and Att j are =-comparable, R >< i = j = {<a 1,,a n,b 1,,b j-1, b j+1,, b m >: <a 1,,a n > R, <b 1,,b m >, and a i = b j } Bill 2244 Bob NG1 Lecture 2 9 Lecture 2 10 Natural join is definable Intersection is definable Natural join is a very useful operator, but it can be defined using, π and σ. To define equi-join of R and over attributes X and Y we take a Cartesian product of R and and then select tuples which satisfy X = Y. To obtain natural join, we project the resulting relation on the set of all attributes apart from Y. Let A be the set of all attributes in R and : R >< X =Y = π A - Y σ X = Y (R ) R = R (R ) R R Lecture 2 11 Lecture
3 Intersection is definable Intersection is definable R = R (R ) R R = R (R ) R R R (R ) Lecture 2 13 Lecture 2 14 Division Let R be a relation over schema {X 1,,X n, Y 1,,Y m }. We will denote {X 1,,X n } by X and {Y 1,,Y m } by Y. Let be a relation with schema Y. Then R ={a: a π X (R) and for all b, a ~b R} (if a = <a 1,,a k > and b= <b 1,,b m >, then a concatenated with b, a ~ b = < a 1,,a k, b 1,,b m >) R R Lecturer Module ubject Lecturer mith Lecture 2 15 Lecture 2 16 R R Lecturer Module ubject Lecturer R R Lecturer Module ubject Lecturer mith mith Lecture 2 17 Lecture
4 Defining R Defining R Consider the relation π X (R). It contains all tuples a~b starting with a tuple a from π X (R) and ending in a tuple from b from. Take any tuple a R. For all b, a~b is in R by definition of division. On the other hand, for any tuple a π X (R) which is not in R, there is a b, such that a~b is not in R but it is in π X (R). o let s look at (π X (R) ) R. It will contain only tuples a~b where a R. Hence, π X ((π X (R) ) R) is the set of a π X (R) which are not in R. Finally, to define R, we need to subtract the previous set from π X (R): R = π X (R) π X ((π X (R) ) R) Lecture 2 19 Lecture 2 20 Relational algebra operators We defined operations on relations which take relations as operands and return a relation. By relational algebra we will mean the following set of operators: (,,, π, σ, ρ) They are not functionally complete in the sense that boolean algebra operators are (e.g. AND and NOT are sufficient to express any boolean-valued function). ome operations on relations are not expressible in terms of the operations we have (e.g. transitive closure of a relation.) Next we look at the algebraic properties of our operations (we need them because we are going to use them in query rewriting). ome properties of Commutativity: R = R Associativity: R (P ) = (R P ) If R then R = Lecture 2 21 Lecture 2 22 ome properties of Commutativity: R = R Associativity: R (P ) = (R P ) If R then R = R ome properties of and Distributivity: R (P ) = (R P) (R ) R (P ) = (R P) (R ) Lecture 2 23 Lecture
5 ome properties of difference ome properties of R (P ) = (R P) (R ) R (P ) = (R P) (R ) R R = R = R Associativity: R (P ) = (R P) ) Distributivity: R (P ) = (R P) (R ) R (P ) = (R P) (R ) R = R = Lecture 2 25 Lecture 2 26 Exercises Recommended reading Prove distributivity of Cartesian product over union: R (P ) = (R P) (R ) using definitions of union and product. Does selection satisfy the following properties: σ α (σ α (R)) = σ α ( R) σ β (σ α (R)) = σ α&β ( R) σ β (σ α (R)) = σ α (σ β ( R)) Does projection satisfy the following properties: π X ( π X (R)) = π X (R) π X ( π Y (R)) = π Y ( π X (R)) Ullman, Widom: Chapter 5.1, 5.2. Lecture 2 27 Lecture
Databases 2011 The Relational Algebra
Databases 2011 Christian S. Jensen Computer Science, Aarhus University What is an Algebra? An algebra consists of values operators rules Closure: operations yield values Examples integers with +,, sets
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 informationPlan of the lecture. G53RDB: Theory of Relational Databases Lecture 10. Logical consequence (implication) Implication problem for fds
Plan of the lecture G53RDB: Theory of Relational Databases Lecture 10 Natasha Alechina School of Computer Science & IT nza@cs.nott.ac.uk Logical implication for functional dependencies Armstrong closure.
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 informationPlan of the lecture. G53RDB: Theory of Relational Databases Lecture 9. Informal exercise from last lecture. Example (from Stanczyk et al.
Plan of the lecture G53RDB: Theory of Relational Databases Lecture 9 Answers to informal coursework Multivalued dependencies 4NF Join dependencies 5NF Natasha Alechina School of Computer Science & IT nza@cs.nott.ac.uk
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 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 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 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 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 informationCS5300 Database Systems
CS5300 Database Systems Relational Algebra A.R. Hurson 323 CS Building hurson@mst.edu This module is intended to introduce: relational algebra as the backbone of relational model, and set of operations
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 informationDatabase Systems Relational Algebra. A.R. Hurson 323 CS Building
Relational Algebra A.R. Hurson 323 CS Building Relational Algebra Relational model is based on set theory. A relation is simply a set. The relational algebra is a set of high level operators that operate
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 informationInformation Systems for Engineers. Exercise 5. ETH Zurich, Fall Semester Hand-out Due
Information Systems for Engineers Exercise 5 ETH Zurich, Fall Semester 2017 Hand-out 27.10.2017 Due 03.11.2017 Reading material: Chapter 2.4 in [1]. Lecture slides 4. 1. Given the two tables below, write
More informationbc7f2306 Page 1 Name:
Name: Questions 1 through 4 refer to the following: Solve the given inequality and represent the solution set using set notation: 1) 3x 1 < 2(x + 4) or 7x 3 2(x + 1) Questions 5 and 6 refer to the following:
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 informationFactorizing Algebraic Expressions
1 of 60 Factorizing Algebraic Expressions 2 of 60 Factorizing expressions Factorizing an expression is the opposite of expanding it. Expanding or multiplying out a(b + c) ab + ac Factorizing Often: When
More informationInformation Systems for Engineers. Exercise 5. ETH Zurich, Fall Semester Hand-out Due
Information Systems for Engineers Exercise 5 ETH Zurich, Fall Semester 2017 Hand-out 27.10.2017 Due 03.11.2017 Reading material: Chapter 2.4 in [1]. Lecture slides 4. 1. Given the two tables below, write
More informationRelational 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 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 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 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 informationRelational Calculus. Dr Paolo Guagliardo. University of Edinburgh. Fall 2016
Relational Calculus Dr Paolo Guagliardo University of Edinburgh Fall 2016 First-order logic term t := x (variable) c (constant) f(t 1,..., t n ) (function application) formula ϕ := P (t 1,..., t n ) t
More informationBob Brown, CCBC Essex Math 163 College Algebra, Chapter 1 Section 7 COMPLETED 1 Linear, Compound, and Absolute Value Inequalities
Bob Brown, CCBC Essex Math 163 College Algebra, Chapter 1 Section 7 COMPLETED 1 What is the following symbol? < The inequality symbols < > are used to compare two real numbers. The meaning of anyone of
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 information2.5 Compound Inequalities
Section.5 Compound Inequalities 89.5 Compound Inequalities S 1 Find the Intersection of Two Sets. Solve Compound Inequalities Containing and. Find the Union of Two Sets. 4 Solve Compound Inequalities Containing
More informationIntroduction to Topology
Introduction to Topology Randall R. Holmes Auburn University Typeset by AMS-TEX Chapter 1. Metric Spaces 1. Definition and Examples. As the course progresses we will need to review some basic notions about
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 informationUnit 3 Vocabulary. An algebraic expression that can contains. variables, numbers and operators (like +, An equation is a math sentence stating
Hart Interactive Math Algebra 1 MODULE 2 An algebraic expression that can contains 1 Algebraic Expression variables, numbers and operators (like +,, x and ). 1 Equation An equation is a math sentence stating
More informationLecture 3 Linear Algebra Background
Lecture 3 Linear Algebra Background Dan Sheldon September 17, 2012 Motivation Preview of next class: y (1) w 0 + w 1 x (1) 1 + w 2 x (1) 2 +... + w d x (1) d y (2) w 0 + w 1 x (2) 1 + w 2 x (2) 2 +...
More informationPair of Linear Equations in Two Variables
Pair of Linear Equations in Two Variables Linear equation in two variables x and y is of the form ax + by + c= 0, where a, b, and c are real numbers, such that both a and b are not zero. Example: 6x +
More informationNCC Education Limited. Substitution Topic NCC Education Limited. Substitution Topic NCC Education Limited
Topic 3 - Lecture 2: Substitution Substitution Topic 3-2.2 Learning Objective To be able to substitute positive and negative values into algebraic expressions and formulae. Substitution Topic 3-2.3 Key
More informationKleene Algebra and Arden s Theorem. Anshul Kumar Inzemamul Haque
Kleene Algebra and Arden s Theorem Anshul Kumar Inzemamul Haque Motivation Regular Expression is a Kleene Algebra. We can use the properties and theorems of Kleene Algebra to simplify regular expressions
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 informationIntro to Algebra Today. We will learn names for the properties of real numbers. Homework Next Week. Due Tuesday 45-47/ 15-20, 32-35, 40-41, *28,29,38
Intro to Algebra Today We will learn names for the properties of real numbers. Homework Next Week Due Tuesday 45-47/ 15-20, 32-35, 40-41, *28,29,38 Due Thursday Pages 51-53/ 19-24, 29-36, *48-50, 60-65
More informationEquivalence Relations and Partitions, Normal Subgroups, Quotient Groups, and Homomorphisms
Equivalence Relations and Partitions, Normal Subgroups, Quotient Groups, and Homomorphisms Math 356 Abstract We sum up the main features of our last three class sessions, which list of topics are given
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 informationEuclidean Domains. Kevin James
Suppose that R is an integral domain. Any function N : R N {0} with N(0) = 0 is a norm. If N(a) > 0, a R \ {0 R }, then N is called a positive norm. Suppose that R is an integral domain. Any function N
More informationSection 1 - Introduction to Integers
Pre Algebra Unit 1 Unit 1 Integers Objective Overview The following is a small subset of possible problems that could represent each objective. Refer to notes, homework and reviews for a more complete
More informationYou are here! Query Processor. Recovery. Discussed here: DBMS. Task 3 is often called algebraic (or re-write) query optimization, while
Module 10: Query Optimization Module Outline 10.1 Outline of Query Optimization 10.2 Motivating Example 10.3 Equivalences in the relational algebra 10.4 Heuristic optimization 10.5 Explosion of search
More informationP1 Chapter 3 :: Equations and Inequalities
P1 Chapter 3 :: Equations and Inequalities jfrost@tiffin.kingston.sch.uk www.drfrostmaths.com @DrFrostMaths Last modified: 26 th August 2017 Use of DrFrostMaths for practice Register for free at: www.drfrostmaths.com/homework
More informationEconomics 204 Summer/Fall 2011 Lecture 2 Tuesday July 26, 2011 N Now, on the main diagonal, change all the 0s to 1s and vice versa:
Economics 04 Summer/Fall 011 Lecture Tuesday July 6, 011 Section 1.4. Cardinality (cont.) Theorem 1 (Cantor) N, the set of all subsets of N, is not countable. Proof: Suppose N is countable. Then there
More informationModule 10: Query Optimization
Module 10: Query Optimization Module Outline 10.1 Outline of Query Optimization 10.2 Motivating Example 10.3 Equivalences in the relational algebra 10.4 Heuristic optimization 10.5 Explosion of search
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 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 informationMovies Title Director Actor
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
More informationDatabase Applications (15-415)
Database Applications (15-415) Relational Calculus Lecture 6, January 26, 2016 Mohammad Hammoud Today Last Session: Relational Algebra Today s Session: Relational calculus Relational tuple calculus Announcements:
More informationMTH4103: Geometry I. Dr John N. Bray, Queen Mary, University of London
MTH4103: Geometry I Dr John N. Bray, Queen Mary, University of London January March 2014 Contents Preface iv 1 Vectors 1 1.1 Introduction.................................. 1 1.2 Vectors.....................................
More informationAutomata and Formal Languages - CM0081 Algebraic Laws for Regular Expressions
Automata and Formal Languages - CM0081 Algebraic Laws for Regular Expressions Andrés Sicard-Ramírez Universidad EAFIT Semester 2017-2 Algebraic Laws for Regular Expressions Definition (Equivalence of regular
More informationLecture 2: The Simplex method. 1. Repetition of the geometrical simplex method. 2. Linear programming problems on standard form.
Lecture 2: The Simplex method. Repetition of the geometrical simplex method. 2. Linear programming problems on standard form. 3. The Simplex algorithm. 4. How to find an initial basic solution. Lecture
More information3. Abstract Boolean Algebras
3. ABSTRACT BOOLEAN ALGEBRAS 123 3. Abstract Boolean Algebras 3.1. Abstract Boolean Algebra. Definition 3.1.1. An abstract Boolean algebra is defined as a set B containing two distinct elements 0 and 1,
More informationLAKOTA WEST HIGH SCHOOL HONORS ALGEBRA II EXPECTATIONS ( )
LAKOTA WEST HIGH SCHOOL HONORS ALGEBRA II EXPECTATIONS (07-08) Upon entering Honors Algebra II class at Lakota West HS it will be expected that you to have an excellent understanding of certain topics
More informationFields and Galois Theory
Fields and Galois Theory Rachel Epstein September 12, 2006 All proofs are omitted here. They may be found in Fraleigh s A First Course in Abstract Algebra as well as many other algebra and Galois theory
More informationWe have seen that for a function the partial derivatives whenever they exist, play an important role. This motivates the following definition.
\ Module 12 : Total differential, Tangent planes and normals Lecture 34 : Gradient of a scaler field [Section 34.1] Objectives In this section you will learn the following : The notions gradient vector
More informationMathematics Review for Business PhD Students Lecture Notes
Mathematics Review for Business PhD Students Lecture Notes Anthony M. Marino Department of Finance and Business Economics Marshall School of Business University of Southern California Los Angeles, CA 90089-0804
More informationRepresentations of Quivers
MINGLE 2012 Simon Peacock 4th October, 2012 Outline 1 Quivers Representations 2 Path Algebra Modules 3 Modules Representations Quiver A quiver, Q, is a directed graph. Quiver A quiver, Q, is a directed
More information2MA105 Algebraic Structures I
2MA105 Algebraic Structures I Per-Anders Svensson http://homepage.lnu.se/staff/psvmsi/2ma105.html Lecture 12 Partially Ordered Sets Lattices Bounded Lattices Distributive Lattices Complemented Lattices
More informationRELATIONS PROPERTIES COMPATIBILITY
RELATIONS PROPERTIES COMPATIBILITY Misha Mikhaylov E-mail address: misha59mikhaylov@gmail.com ABSTRACT. Thoughts expressed in previous paper [3] were developed. There was shown formally that collection
More informationData Dependencies in the Presence of Difference
Data Dependencies in the Presence of Difference Tsinghua University sxsong@tsinghua.edu.cn Outline Introduction Application Foundation Discovery Conclusion and Future Work Data Dependencies in the Presence
More informationEureka Math Module 4 Topic G Solving Equations
Eureka Math Module 4 Topic G Solving Equations Lessons 23-27 6.EE.B.5 Understand solving an equation or inequality as a process of answering a question: which values from a specified set, if any, make
More informationClosure Properties of Context-Free Languages. Foundations of Computer Science Theory
Closure Properties of Context-Free Languages Foundations of Computer Science Theory Closure Properties of CFLs CFLs are closed under: Union Concatenation Kleene closure Reversal CFLs are not closed under
More information2- Scalars and Vectors
2- Scalars and Vectors Scalars : have magnitude only : Length, time, mass, speed and volume is example of scalar. v Vectors : have magnitude and direction. v The magnitude of is written v v Position, displacement,
More informationMath Lecture 18 Notes
Math 1010 - Lecture 18 Notes Dylan Zwick Fall 2009 In our last lecture we talked about how we can add, subtract, and multiply polynomials, and we figured out that, basically, if you can add, subtract,
More informationLecture 4. Corollary 1.2. If the set of all nonunits is an ideal in A, then A is local and this ideal is the maximal one.
Lecture 4 1. General facts Proposition 1.1. Let A be a commutative ring, and m a maximal ideal. Then TFAE: (1) A has only one maximal ideal (i.e., A is local); (2) A \ m consists of units in A; (3) For
More informationSupplement. Algebraic Closure of a Field
Supplement: Algebraic Closure of a Field 1 Supplement. Algebraic Closure of a Field Note. In this supplement, we give some background material which is used in the proof of Fraleigh s Theorem 31.17/31.22
More informationVectors Coordinate frames 2D implicit curves 2D parametric curves. Graphics 2008/2009, period 1. Lecture 2: vectors, curves, and surfaces
Graphics 2008/2009, period 1 Lecture 2 Vectors, curves, and surfaces Computer graphics example: Pixar (source: http://www.pixar.com) Computer graphics example: Pixar (source: http://www.pixar.com) Computer
More information2 so Q[ 2] is closed under both additive and multiplicative inverses. a 2 2b 2 + b
. FINITE-DIMENSIONAL VECTOR SPACES.. Fields By now you ll have acquired a fair knowledge of matrices. These are a concrete embodiment of something rather more abstract. Sometimes it is easier to use matrices,
More informationSelected solutions to Discrete Mathematics and Functional Programming
Selected solutions to Discrete Mathematics and Functional Programming Thomas VanDrunen August 13, 2013 This document is to provide a resource for students studying Discrete Mathematics and Functional Programming
More informationOrder of Operations Practice: 1) =
Order of Operations Practice: 1) 24-12 3 + 6 = a) 6 b) 42 c) -6 d) 192 2) 36 + 3 3 (1/9) - 8 (12) = a) 130 b) 171 c) 183 d) 4,764 1 3) Evaluate: 12 2-4 2 ( - ½ ) + 2 (-3) 2 = 4) Evaluate 3y 2 + 8x =, when
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 information1 Predicates and Quantifiers
1 Predicates and Quantifiers We have seen how to represent properties of objects. For example, B(x) may represent that x is a student at Bryn Mawr College. Here B stands for is a student at Bryn Mawr College
More informationHomework 3/ Solutions
MTH 310-3 Abstract Algebra I and Number Theory S17 Homework 3/ Solutions Exercise 1. Prove the following Theorem: Theorem Let R and S be rings. Define an addition and multiplication on R S by for all r,
More informationInverse Functions. One-to-one. Horizontal line test. Onto
Inverse Functions One-to-one Suppose f : A B is a function. We call f one-to-one if every distinct pair of objects in A is assigned to a distinct pair of objects in B. In other words, each object of the
More informationAng aking kontrata: Ako, si, ay nangangakong magsisipag mag-aral hindi lang para sa aking sarili kundi para rin sa aking pamilya, para sa aking
Ang aking kontrata: Ako, si, ay nangangakong magsisipag mag-aral hindi lang para sa aking sarili kundi para rin sa aking pamilya, para sa aking bayang Pilipinas at para sa ikauunlad ng mundo. THEOREMS
More informationThe Distance Formula. The Midpoint Formula
Math 120 Intermediate Algebra Sec 9.1: Distance Midpoint Formulas The Distance Formula The distance between two points P 1 = (x 1, y 1 ) P 2 = (x 1, y 1 ), denoted by d(p 1, P 2 ), is d(p 1, P 2 ) = (x
More informationICS141: Discrete Mathematics for Computer Science I
ICS141: Discrete Mathematics for Computer Science I Dept. Information & Computer Sci., Jan Stelovsky based on slides by Dr. Baek and Dr. Still Originals by Dr. M. P. Frank and Dr. J.L. Gross Provided by
More informationPlan of the lecture. G53RDB: Theory of Relational Databases Lecture 13. Join dependencies. Multivalued dependencies. Decomposition (non-loss!
Plan of the lecture G53RDB: Theory of Relational Databases Lecture 13 Multivalued and join dependencies: example. Informal coursework: normalising a relation. Natasha Alechina School of Computer Science
More informationReview CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2.
CHAPTER 2 Review 2.1 Definitions in Chapter 2 2.1 Set; Element; Member; Universal Set 2.2 Subset 2.3 Proper Subset 2.4 The Empty Set, 2.5 Set Equality 2.6 Cardinality; Infinite Set 2.7 Complement 2.8 Intersection
More informationProperties of Real Numbers
Pre-Algebra Properties of Real Numbers Identity Properties Addition: Multiplication: Commutative Properties Addition: Multiplication: Associative Properties Inverse Properties Distributive Properties Properties
More informationMATH Solutions to Homework Set 1
MATH 463-523 Solutions to Homework Set 1 1. Let F be a field, and let F n denote the set of n-tuples of elements of F, with operations of scalar multiplication and vector addition defined by λ [α 1,...,
More informationProperties of Real Numbers. The properties allow you to manipulate expressions and compute mentally. ai(b ± c) = aib ± aic
Ch 2 Notes Solving Equations Notes Properties of Real Numbers Commutative Property Addition a + b = b + a Order Commutative Property Multiplication aib = bia 6 + 4 = 4 + 6 7i3 = 3i7 Associative Property
More informationSection 1.4. Meaning of Slope for Equations, Graphs, and Tables
Section 1.4 Meaning of Slope for Equations, Graphs, and Tables Finding Slope from a Linear Equation Finding Slope from a Linear Equation Example Find the slope of the line Solution Create a table using
More informationCS 186, Fall 2002, Lecture 6 R&G Chapter 15
Schema Refinement and Normalization CS 186, Fall 2002, Lecture 6 R&G Chapter 15 Nobody realizes that some people expend tremendous energy merely to be normal. Albert Camus Functional Dependencies (Review)
More informationWatch Your Step Proofs in Algebra
LESSON 9 Watch Your Step Proofs in Algebra LEARNING OBJECTIVES Today I am: explaining each step in a solution. So that I can: practice using the equality properties. I ll know I have it when I can: write
More information1. SET 10/9/2013. Discrete Mathematics Fajrian Nur Adnan, M.CS
1. SET 10/9/2013 Discrete Mathematics Fajrian Nur Adnan, M.CS 1 Discrete Mathematics 1. Set and Logic 2. Relation 3. Function 4. Induction 5. Boolean Algebra and Number Theory MID 6. Graf dan Tree/Pohon
More informationLecture 2: Connecting the Three Models
IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Advanced Course on Computational Complexity Lecture 2: Connecting the Three Models David Mix Barrington and Alexis Maciel July 18, 2000
More informationSample algebra qualifying exam
Sample algebra qualifying exam University of Hawai i at Mānoa Spring 2016 2 Part I 1. Group theory In this section, D n and C n denote, respectively, the symmetry group of the regular n-gon (of order 2n)
More informationCS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #3: SQL---Part 1
CS 4604: Introduc0on to Database Management Systems B. Aditya Prakash Lecture #3: SQL---Part 1 Announcements---Project Goal: design a database system applica=on with a web front-end Project Assignment
More informationNotes on Sets, Relations and Functions
PURE MTH 3002 Topology & Analysis III (3246) 2002 Notes on Sets, Relations and Functions These are some notes taken from Mathematical Applications (now Mathematics for Information Technology (MIT)). They
More informationCS100: DISCRETE STRUCTURES. Lecture 3 Matrices Ch 3 Pages:
CS100: DISCRETE STRUCTURES Lecture 3 Matrices Ch 3 Pages: 246-262 Matrices 2 Introduction DEFINITION 1: A matrix is a rectangular array of numbers. A matrix with m rows and n columns is called an m x n
More informationRelational Algebra as non-distributive Lattice
Relational Algebra as non-distributive Lattice VADIM TROPASHKO Vadim.Tropashko@orcl.com We reduce the set of classic relational algebra operators to two binary operations: natural join and generalized
More informationUnit 1: Equations & Inequalities in One Variable
Date Period Unit 1: Equations & Inequalities in One Variable Day Topic 1 Properties of Real Numbers Algebraic Expressions Solving Equations 3 Solving Inequalities 4 QUIZ 5 Absolute Value Equations 6 Double
More informationIntroduction to the Theory of Computation. Automata 1VO + 1PS. Lecturer: Dr. Ana Sokolova.
Introduction to the Theory of Computation Automata 1VO + 1PS Lecturer: Dr. Ana Sokolova http://cs.uni-salzburg.at/~anas/ Setup and Dates Lectures and Instructions 23.10. 3.11. 17.11. 24.11. 1.12. 11.12.
More informationER Modelling: Summary
ER Modelling: Summary ER describes the world (the set of possible worlds) what it is and the laws of this world ER is static: it does not describe (legal) transitions Useful for two purposes build software
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 informationCMPSCI 250: Introduction to Computation. Lecture #29: Proving Regular Language Identities David Mix Barrington 6 April 2012
CMPSCI 250: Introduction to Computation Lecture #29: Proving Regular Language Identities David Mix Barrington 6 April 2012 Proving Regular Language Identities Regular Language Identities The Semiring Axioms
More informationCollege Prep Algebra III Course #340. Course of Study. Findlay City School
College Prep Algebra III Course #340 Course of Study Findlay City School Algebra III Table of Contents 1. Findlay City Schools Mission Statement and Beliefs 2. Algebra III Curriculum Map 3. Algebra III
More information0.2 Vector spaces. J.A.Beachy 1
J.A.Beachy 1 0.2 Vector spaces I m going to begin this section at a rather basic level, giving the definitions of a field and of a vector space in much that same detail as you would have met them in a
More informationThe Euclidean Algorithm and Multiplicative Inverses
1 The Euclidean Algorithm and Multiplicative Inverses Lecture notes for Access 2009 The Euclidean Algorithm is a set of instructions for finding the greatest common divisor of any two positive integers.
More information