Relational Composition
|
|
- Lillian Stokes
- 5 years ago
- Views:
Transcription
1 Relations 4 Joseph Spring 1COM Formal Systems Relations 1 & 2 We reviewed Set concepts and considered: The concept of a relation Pairs and arrow diagram Homogeneous v Heterogeneous Source, Target, Domain and Range Total and Onto Relations 4 1 Relations 4 2 Relations 2 We continued with: Signatures Infix form Null and Full Relations The Inverse of a Relation Relations 4 3 Relations 3 We Considered: Classifying Relations» 1 - many, many - 1, 1-1, many - many Maplets Specifying Sets Database Example Company Hierarchy Set Like Things The Office Relation and its inverse The Company Switchboard Relations 4 4 This Week - Relations 4 Directed Graphs (Digraphs) Classifying Homogeneous Relations by their special properties Equivalence Relations Relations 4 5 Relations 4 6 1
2 It is often desirable to combine relations in order to form new ones. This is not a new idea. 1. We have seen this with Sets: Given sets A and B we have formed A B, A B, A\ B, A B, With predicates we have used and, or, and not Relations 4 7 The most common operation for combining relations is called We write the relational composition operator as and define it formally: R S!{ a : A ; c : C ( b : B ( a" b R) ( b" c S)) a" Relations 4 8 R S!{ a : A ; c : C ( b : B ( a" b R) ( b" c S)) a" This may be read as follows: form all pairs with a from A and c from C check each of these against the predicate - so we only keep those pairs where! (there exists) some b from B which is pointed at by a maplet in R and pointed from in a maplet in S Relations 4 R S!{ a : A ; c : C ( b : B ( a" b R) ( b" c S)) a" Question What condition needs to be satisfied in order that R and S may be composed? Relations 4 1 R S!{ a : A ; c : C ( b : B ( a" b R) ( b" c S)) a" Answer The target of R must be the source of S Can we refine this further to say ran R = dom S (No - See composition of Office and Extension) Relations 4 11 Switchboard Example The switchboard are informed that when a call comes in for an employee it is to be forwarded to any phone in that employees office To construct a record of the phone numbers on which each employee can be reached we need to compose two relations Office and Extension in that order Relations
3 We can compose the two relations since the target of the first relation Office is the source of the second relation Extension _ Office _ : Employees OfficeNumbers _ Extension _: OfficeNumbers PhoneNumbers Relations 4 13 We denote the composition of these relations as Office Extension Note that we use the relation Office first followed by the relation Extension 1. What is the signature of this new relation? 2. How do we work out what the pairs are? Relations What is the signature of this new relation? _ Office Extension _: Employees PhoneNumbers 2. How do we work out what the pairs are? Trace each possible route through Relations How do we work out what the pairs are? Office!{ John " 3, John " 5, Anne " 5, Peter " 6, Naresh " 4, Paul " 1, Darren " 6, Jim " 2, Jill " 2, Mita " 1, Mark " 8, Jane " 8} Extension!{ 1" 555, 1" 556, 2 " 5511, 2 " 5512, 3" 55, 4 " 554, 5 " 553, 6 " 552, 1 " 5515} Anne is only in office 5 which has one phone 553 so Anne " 553 Office Extension Relations 4 16 Office!{ John " 3, John " 5, Anne " 5, Peter " 6, Naresh " 4, Paul " 1, Darren " 6, Jim " 2, Jill " 2, Mita " 1, Mark " 8, Jane " 8} Extension!{ 1" 555, 1" 556, 2 " 5511, 2 " 5512, 3" 55, 4 " 554, 5 " 553, 6 " 552, 1 " 5515} Jill is in office 2 with two phones 5511 and 5512 Jill " 5511 Office Extension Jill " 5512 Office Extension Combining these gives { Jill " 5511, Jill " 5512} Office Extension Relations 4 17 Office!{ John " 3, John " 5, Anne " 5, Peter " 6, Naresh " 4, Paul " 1, Darren " 6, Jim " 2, Jill " 2, Mita " 1, Mark " 8, Jane " 8} Extension!{ 1" 555, 1" 556, 2 " 5511, 2 " 5512, 3 " 55, 4 " 554, 5 " 553, 6 " 552, 1 " 5515} Mark is in office 8 with no phone So there will be no pair involving Mark in this composition Can we refine this further to say ran R = dom S Relations
4 Can we refine this further to say ran R = dom S Answer: No! { M ark " 8} O ffice so 8 ran O ffice However 8 dom Extension so ran O ffice dom Extension Relations 4 1 ran Office = { 1, 2, 3, 4, 5, 6, 8 } dom Extension = { 1, 2, 3, 4, 5, 6, 1 } Hence ran Office dom Extension Relations 4 2 Directed Graphs (Digraphs) Used widely in Computer Science Directed Graphs (Digraphs) Relations 4 21 can be used to capture aspects of relations only suitable for homogeneous relations R: A A Basically just arrow diagrams with the source and target superimposed The circles in a digraph are called vertices Relations 4 22 Directed Graphs (Example) Consider the relation with R : A A Directed Graphs (Example) Digraph for R : A A R = { a " e, e " o, o " a, u " u, i " a, u " i } A = { a, e, i, o, u } and R = { a " e, e " o, o " a, u " u, i " a, u " i } Relations 4 23 Relations
5 Classifying Homogeneous Relations by their special properties Relations 4 25 Classifying Homogeneous Relations by their Special Properties Heterogeneous Relation we talk of a relation between sets there are two distinct sets involved Homogeneous Relation we talk of a relation on a set only one set involved Some Homogeneous relations have special properties Relations 4 26 Reflexive Property Definition A relation ~ on a set S is said to be reflexive if and only if every element of the set S is related to itself. So ~ is reflexive if and only if x ~ x for all x For the relation Same_age_as on a set of people each person will be related to his/herself For a digraph the relation is reflexive if every vertex has a loop back to itself Relations 4 27 Irreflexive Property A relation is said to be irreflexive if there is no element related to itself For a digraph a relation would be irreflexive if no vertex had a loop back to itself > is an irreflexive relation no number is greater than itself! is a reflexive relation all numbers are greater than or equal to themselves Relations 4 28 Symmetric Property A relation ~ is said to be symmetric if and only if whenever an element x is related to an element y then y is related to x We may write this as x ~ y if and only if y ~ x For a digraph a relation would be symmetric if whenever there is a line going from x to y there is also a line going from y to x Relations 4 2 Transitive Property A relation ~ is said to be transitive if and only if whenever x is related to y and y is related to z then x is also related to z We may write this as ~ is transitive if and only if whenever x ~ y and y ~ z then x ~ z For a digraph a relation would be transitive if whenever there is a line going from x to y and another going from y to z then there is a line going from x to z Relations 4 3 5
6 Transitive Property Let ~ denote the relation older_than defined on a set of people. If x is older than y and y is older than z then x is older than z So the relation older_than is a transitive relation Relations 4 31 Equivalence Relations Definition An equivalence relation ~ is a homogeneous relation that is: ~ reflexive ~ symmetric and ~ transitive Example Equality on the set of real numbers = : # # Relations 4 32 Summary Specifying Sets Database Example Directed Graphs (Digraphs) Classifying Homogeneous Relations by their special properties Equivalence Relations Relations
Predicate Logic 1. The Need for Predicate Logic. The Need for Predicate Logic. The Need for Predicate Logic. The Need for Predicate Logic
Predicate Logic 1 Background to Logic Paradigm Joseph Spring School of Computer Science This Lecture We consider the following topics: The Closed World Assumption Predicates in Extension The Universal
More informationLECTURE 15: RELATIONS. Software Engineering Mike Wooldridge
LECTURE 15: RELATIONS Mike Wooldridge 1 Introduction We saw in earlier lectures that a function is just a set of maplets, for example: tel == {mikew 1531, eric 1489}. A maplet is just an ordered pair,
More informationNotes. Relations. Introduction. Notes. Relations. Notes. Definition. Example. Slides by Christopher M. Bourke Instructor: Berthe Y.
Relations Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Spring 2006 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 7.1, 7.3 7.5 of Rosen cse235@cse.unl.edu
More informationRelations Graphical View
Introduction Relations Computer Science & Engineering 235: Discrete Mathematics Christopher M. Bourke cbourke@cse.unl.edu Recall that a relation between elements of two sets is a subset of their Cartesian
More informationReading 11 : Relations and Functions
CS/Math 240: Introduction to Discrete Mathematics Fall 2015 Reading 11 : Relations and Functions Instructor: Beck Hasti and Gautam Prakriya In reading 3, we described a correspondence between predicates
More informationChapter 9: Relations Relations
Chapter 9: Relations 9.1 - Relations Definition 1 (Relation). Let A and B be sets. A binary relation from A to B is a subset R A B, i.e., R is a set of ordered pairs where the first element from each pair
More informationToday s topics. Binary Relations. Inverse Relations. Complementary Relations. Let R:A,B be any binary relation.
Today s topics Binary Relations Relations Kinds of relations n-ary relations Representations of relations Reading: Sections 7.-7.3 Upcoming Upcoming Minesweeper Let A, B be any sets. A binary relation
More informationMathematical Foundations of Social Network Analysis
Mathematical Foundations of Social Network Analysis Steve Borgatti Revised Jan 2008 for MGT 780 Three Representations Network/relational data typically represented in one of three ways Graphs Graphs vs
More informationRelationships between elements of sets occur in many contexts. Every day we deal with
C H A P T E R 9 Relations 9.1 Relations and Their Properties 9.2 n-ary Relations and Their Applications 9.3 Representing Relations 9.4 Closures of Relations 9.5 Equivalence Relations 9.6 Partial Orderings
More informationRelations. We have seen several types of abstract, mathematical objects, including propositions, predicates, sets, and ordered pairs and tuples.
Relations We have seen several types of abstract, mathematical objects, including propositions, predicates, sets, and ordered pairs and tuples. Relations use ordered tuples to represent relationships among
More informationSection 7.1 Relations and Their Properties. Definition: A binary relation R from a set A to a set B is a subset R A B.
Section 7.1 Relations and Their Properties Definition: A binary relation R from a set A to a set B is a subset R A B. Note: there are no constraints on relations as there are on functions. We have a common
More informationReview of Functions. Functions. Philippe B. Laval. Current Semester KSU. Philippe B. Laval (KSU) Functions Current Semester 1 / 12
Review of Functions Functions Philippe B. Laval KSU Current Semester Philippe B. Laval (KSU) Functions Current Semester 1 / 12 Introduction Students are expected to know the following concepts about functions:
More informationWhat are relations? f: A B
What are relations? Ch 9.1 What are relations? Notation Informally, a relation is a set of pairs of objects (or in general, set of n-tuples) that are related to each other by some rule. We will focus first
More informationOutline Inverse of a Relation Properties of Relations. Relations. Alice E. Fischer. April, 2018
Relations Alice E. Fischer April, 2018 1 Inverse of a Relation 2 Properties of Relations The Inverse of a Relation Let R be a relation from A to B. Define the inverse relation, R 1 from B to A as follows.
More informationMore on Event-B: Relations
More on Event-B: Relations c Michael Butler University of Southampton May 22, 2010 Ordered Pairs and Cartesian Products An ordered pair is an element consisting of two parts: a first part and a second
More informationRelations. Relations of Sets N-ary Relations Relational Databases Binary Relation Properties Equivalence Relations. Reading (Epp s textbook)
Relations Relations of Sets N-ary Relations Relational Databases Binary Relation Properties Equivalence Relations Reading (Epp s textbook) 8.-8.3. Cartesian Products The symbol (a, b) denotes the ordered
More informationRelations MATH Relations. Benjamin V.C. Collins, James A. Swenson MATH 2730
MATH 2730 Benjamin V.C. Collins James A. Swenson among integers equals a = b is true for some pairs (a, b) Z Z, but not for all pairs. is less than a < b is true for some pairs (a, b) Z Z, but not for
More informationFINITE IRREFLEXIVE HOMOMORPHISM-HOMOGENEOUS BINARY RELATIONAL SYSTEMS 1
Novi Sad J. Math. Vol. 40, No. 3, 2010, 83 87 Proc. 3rd Novi Sad Algebraic Conf. (eds. I. Dolinka, P. Marković) FINITE IRREFLEXIVE HOMOMORPHISM-HOMOGENEOUS BINARY RELATIONAL SYSTEMS 1 Dragan Mašulović
More informationJust the Factors, Ma am HAROLD B. REITER.
Just the Factors, Ma am HAROLD B REITER UNIVERSITY OF NORTH CAROLINA CHARLOTTE http://wwwmathunccedu/~hbreiter The purpose of this note is to find and study a method for determining and counting all the
More informationDiscrete Mathematics. 2. Relations
Discrete Mathematics 2. Relations Binary Relations Let A, B be any two sets. A binary relation R from A to B is a subset of A B. E.g., Let < : N N : {(n,m) n < m} The notation a R b or arb means (a,b)îr.
More informationCOMP2111 Glossary. Kai Engelhardt. Contents. 1 Symbols. 1 Symbols 1. 2 Hoare Logic 3. 3 Refinement Calculus 5. rational numbers Q, real numbers R.
COMP2111 Glossary Kai Engelhardt Revision: 1.3, May 18, 2018 Contents 1 Symbols 1 2 Hoare Logic 3 3 Refinement Calculus 5 1 Symbols Booleans B = {false, true}, natural numbers N = {0, 1, 2,...}, integers
More informationMath 230 Final Exam, Spring 2008
c IIT Dept. Applied Mathematics, May 15, 2008 1 PRINT Last name: Signature: First name: Student ID: Math 230 Final Exam, Spring 2008 Conditions. 2 hours. No book, notes, calculator, cell phones, etc. Part
More informationMITOCW watch?v=fkfsmwatddy
MITOCW watch?v=fkfsmwatddy PROFESSOR: We've seen a lot of functions in introductory calculus-- trig functions, rational functions, exponentials, logs and so on. I don't know whether your calculus course
More informationWeek 4-5: Generating Permutations and Combinations
Week 4-5: Generating Permutations and Combinations February 27, 2017 1 Generating Permutations We have learned that there are n! permutations of {1, 2,...,n}. It is important in many instances to generate
More informationDivisor Problems HAROLD B. REITER.
Divisor Problems HAROLD B REITER UNIVERSITY OF NORTH CAROLINA CHARLOTTE http://wwwmathunccedu/~hbreiter The purpose of this note is to find and study a method for determining and counting all the positive
More information1. Analyze the numerical expressions below. Which of these expressions are equivalent to? (Circle the expressions that are equivalent.) 8.EE.
1. Analyze the numerical expressions below. Which of these expressions are equivalent to? (Circle the expressions that are equivalent.) 8.EE.1 A. B. C. D. E. F. 2. Use the correct mathematical notation
More informationThe power graph of a finite group, II
The power graph of a finite group, II Peter J. Cameron School of Mathematical Sciences Queen Mary, University of London Mile End Road London E1 4NS, U.K. Abstract The directed power graph of a group G
More informationPacket #5: Binary Relations. Applied Discrete Mathematics
Packet #5: Binary Relations Applied Discrete Mathematics Table of Contents Binary Relations Summary Page 1 Binary Relations Examples Page 2 Properties of Relations Page 3 Examples Pages 4-5 Representations
More informationMath 230 Final Exam, Spring 2009
IIT Dept. Applied Mathematics, May 13, 2009 1 PRINT Last name: Signature: First name: Student ID: Math 230 Final Exam, Spring 2009 Conditions. 2 hours. No book, notes, calculator, cell phones, etc. Part
More informationSocial Network Analysis. Mrigesh Kshatriya, CIFOR Sentinel Landscape Data Analysis workshop (3rd-7th March 2014) Venue: CATIE, Costa Rica.
Social Network Analysis Mrigesh Kshatriya, CIFOR Sentinel Landscape Data Analysis workshop (3rd-7th March 2014) Venue: CATIE, Costa Rica. Talk outline What is a Social Network? Data collection Visualizing
More informationChapter 6. Relations. 6.1 Relations
Chapter 6 Relations Mathematical relations are an extremely general framework for specifying relationships between pairs of objects. This chapter surveys the types of relations that can be constructed
More informationSCHEMA NORMALIZATION. CS 564- Fall 2015
SCHEMA NORMALIZATION CS 564- Fall 2015 HOW TO BUILD A DB APPLICATION Pick an application Figure out what to model (ER model) Output: ER diagram Transform the ER diagram to a relational schema Refine the
More informationPiecewise Functions In the toolkit functions we introduced the absolute value function f( x)
8 Chapter 1 Piecewise Functions In the toolkit functions we introduced the absolute value function f( x) x. With a domain of all real numbers and a range of values greater than or equal to 0, the absolute
More informationNotes 6-1. Solving Inequalities: Addition and Subtraction. y 2x 3
Notes 6-1 Solving Inequalities: Addition and Subtraction y 2x 3 I. Review: Inequalities A. An inequality is a statement that two quantities are not equal. The quantities are compared by using the following
More informationMITOCW Lec 11 MIT 6.042J Mathematics for Computer Science, Fall 2010
MITOCW Lec 11 MIT 6.042J Mathematics for Computer Science, Fall 2010 The following content is provided under a Creative Commons license. Your support will help MIT OpenCourseWare continue to offer high
More informationPreliminary Matters. Semantics vs syntax (informally):
Preliminary Matters Semantics vs syntax (informally): Yuri Balashov, PHIL/LING 4510/6510 o Syntax is a (complete and systematic) description of the expressions of a language (e.g. French, PYTHON, or SL),
More informationDefinition: A binary relation R from a set A to a set B is a subset R A B. Example:
Section 9.1 Rela%onships Relationships between elements of sets occur in many contexts. Every day we deal with relationships such as those between a business and its telephone number, an employee and his
More informationDiscrete Mathematics
Discrete Mathematics Yi Li Software School Fudan University June 12, 2017 Yi Li (Fudan University) Discrete Mathematics June 12, 2017 1 / 16 Review Soundness and Completeness Theorem Compactness Theorem
More informationRelations & Functions
Mathematics for Computer Science MIT J/18.062J elations & Functions inary relations binary relation associates elements of one set called the domain, with elements of another set called the codomain lec
More informationWritten by Rachel Singh, last updated Oct 1, Functions
Written by Rachel Singh, last updated Oct 1, 2018 Functions About In algebra, we think of functions as something like f(x), where x is the input, it s plugged into an equation, and we get some output,
More information9/21/2018. Properties of Functions. Properties of Functions. Properties of Functions. Properties of Functions. Properties of Functions
How can we prove that a function f is one-to-one? Whenever you want to prove something, first take a look at the relevant definition(s): x, y A (f(x) = f(y) x = y) f:r R f(x) = x 2 Disproof by counterexample:
More informationMath.3336: Discrete Mathematics. Chapter 9 Relations
Math.3336: Discrete Mathematics Chapter 9 Relations Instructor: Dr. Blerina Xhabli Department of Mathematics, University of Houston https://www.math.uh.edu/ blerina Email: blerina@math.uh.edu Fall 2018
More informationDefinition: A binary relation R from a set A to a set B is a subset R A B. Example:
Chapter 9 1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R A B. Example: Let A = {0,1,2} and B = {a,b} {(0, a), (0, b), (1,a), (2, b)} is a relation from A to B.
More information.. Discrete Mathematics. Yi Li. June 9, Software School Fudan University. Yi Li (Fudan University) Discrete Mathematics June 9, / 15
Discrete Mathematics Yi Li Software School Fudan University June 9, 2013 Yi Li (Fudan University) Discrete Mathematics June 9, 2013 1 / 15 Review Soundness and Completeness Theorem Compactness Theorem
More informationCHAPTER 1. Relations. 1. Relations and Their Properties. Discussion
CHAPTER 1 Relations 1. Relations and Their Properties 1.1. Definition of a Relation. Definition 1.1.1. A binary relation from a set A to a set B is a subset R A B. If (a, b) R we say a is Related to b
More informationGenerating Permutations and Combinations
Generating Permutations and Combinations March 0, 005 Generating Permutations We have learned that there are n! permutations of {,,, n} It is important in many instances to generate a list of such permutations
More informationLecture 7. Logic III. Axiomatic description of properties of relations.
V. Borschev and B. Partee, October 11, 2001 p. 1 Lecture 7. Logic III. Axiomatic description of properties of relations. CONTENTS 1. Axiomatic description of properties and classes of relations... 1 1.1.
More informationSets. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing Spring, Outline Sets An Algebra on Sets Summary
An Algebra on Alice E. Fischer CSCI 1166 Discrete Mathematics for Computing Spring, 2018 Alice E. Fischer... 1/37 An Algebra on 1 Definitions and Notation Venn Diagrams 2 An Algebra on 3 Alice E. Fischer...
More informationChapter 3: Examining Relationships
Chapter 3: Examining Relationships Most statistical studies involve more than one variable. Often in the AP Statistics exam, you will be asked to compare two data sets by using side by side boxplots or
More informationProblem Points Score Total 100
Exam 2 A. Miller Spring 2002 Math 240 0 Show all work. Circle your answer. No notes, no books, no calculator, no cell phones, no pagers, no electronic devices at all. Solutions will be posted shortly after
More informationP versus NP. Math 40210, Spring April 8, Math (Spring 2012) P versus NP April 8, / 9
P versus NP Math 40210, Spring 2014 April 8, 2014 Math 40210 (Spring 2012) P versus NP April 8, 2014 1 / 9 Properties of graphs A property of a graph is anything that can be described without referring
More informationPermutations and Combinations
Permutations and Combinations Permutations Definition: Let S be a set with n elements A permutation of S is an ordered list (arrangement) of its elements For r = 1,..., n an r-permutation of S is an ordered
More information(c) Give a proof of or a counterexample to the following statement: (3n 2)= n(3n 1) 2
Question 1 (a) Suppose A is the set of distinct letters in the word elephant, B is the set of distinct letters in the word sycophant, C is the set of distinct letters in the word fantastic, and D is the
More information5. Partitions and Relations Ch.22 of PJE.
5. Partitions and Relations Ch. of PJE. We now generalize the ideas of congruence classes of Z to classes of any set X. The properties of congruence classes that we start with here are that they are disjoint
More informationPrimitive recursive functions
Primitive recursive functions Decidability problems Only pages: 1, 2, 3, 5, 23, 30, 43, 49 Armando Matos LIACC, UP 2014 Abstract Although every primitive recursive (PR) function is total, many problems
More informationSPEAKING MATHEMATICALLY. Prepared by Engr. John Paul Timola
SPEAKING MATHEMATICALLY Prepared by Engr. John Paul Timola VARIABLE used as a placeholder when you want to talk about something but either (1) has one or more values but you don t know what they are, or
More informationChapter 2 Sets, Relations and Functions
Chapter 2 Sets, Relations and Functions Key Topics Sets Set Operations Russell s Paradox Relations Composition of Relations Reflexive, Symmetric and Transitive Relations Functions Partial and Total Functions
More informationCMPSCI 250: Introduction to Computation. Lecture #11: Equivalence Relations David Mix Barrington 27 September 2013
CMPSCI 250: Introduction to Computation Lecture #11: Equivalence Relations David Mix Barrington 27 September 2013 Equivalence Relations Definition of Equivalence Relations Two More Examples: Universal
More information1. (12 points) Give a table-driven parse table for the following grammar: 1) X ax 2) X P 3) P DT 4) T P 5) T ε 7) D 1
1. (12 points) Give a table-driven parse table for the following grammar: 1) X ax 2) X P 3) P DT 4) T P 5) T ε 6) D 0 7) D 1 4. Recall that our class database has the following schemas: SNAP(StudentID,
More informationSocial Network Notation
Social Network Notation Wasserman & Faust (1994) Chapters 3 & 4 [pp. 67 166] Marsden (1987) Core Discussion Networks of Americans Junesoo, Xiaohui & Stephen Monday, February 8th, 2010 Wasserman & Faust
More informationLogic: Propositional Logic Truth Tables
Logic: Propositional Logic Truth Tables Raffaella Bernardi bernardi@inf.unibz.it P.zza Domenicani 3, Room 2.28 Faculty of Computer Science, Free University of Bolzano-Bozen http://www.inf.unibz.it/~bernardi/courses/logic06
More informationIs g one-to-one? Is g onto? Why? Solution: g is not one-to-one, since for c A, g(b) = g(c) = c. g is not onto, since a / g(a).
Discrete Structures: Exam 2 Solutions to Sample Questions, 1. Let A = B = {a, b, c}. Consider the relation g = {(a, b), (b, c), (c, c)}. Is g one-to-one? Is g onto? Why? Solution: g is not one-to-one,
More informationIntroduction to Database Systems CSE 414. Lecture 20: Design Theory
Introduction to Database Systems CSE 414 Lecture 20: Design Theory CSE 414 - Spring 2018 1 Class Overview Unit 1: Intro Unit 2: Relational Data Models and Query Languages Unit 3: Non-relational data Unit
More informationCSE 311: Foundations of Computing I Autumn 2014 Practice Final: Section X. Closed book, closed notes, no cell phones, no calculators.
CSE 311: Foundations of Computing I Autumn 014 Practice Final: Section X YY ZZ Name: UW ID: Instructions: Closed book, closed notes, no cell phones, no calculators. You have 110 minutes to complete the
More informationspaghetti fish pie cake Ann X X Tom X X X Paul X X X
CmSc175 Discrete Mathematics Lesson 14: Set Relations 1. Introduction A college cafeteria line has two stations: main courses and desserts. The main course station offers spaghetti or fish; the dessert
More informationSection Summary. Relations and Functions Properties of Relations. Combining Relations
Chapter 9 Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations Closures of Relations (not currently included
More informationA path that visits each vertex exactly once is a Hamiltonian path. A circuit that visits each vertex exactly once is a Hamiltonian circuit.
(c) Epstein 2013 Chapter 2: usiness Efficiency Page 1 CHAPTER 2: USINESS EFFICIENCY 2.1 Hamiltonian Circuits A path that visits each vertex exactly once is a Hamiltonian path. A circuit that visits each
More informationRela%ons and Their Proper%es. Slides by A. Bloomfield
Rela%ons and Their Proper%es Slides by A. Bloomfield What is a rela%on Let A and B be sets. A binary rela%on R is a subset of A B Example Let A be the students in a the CS major A = {Alice, Bob, Claire,
More informationAnnouncements. Problem Set Four due Thursday at 7:00PM (right before the midterm).
Finite Automata Announcements Problem Set Four due Thursday at 7:PM (right before the midterm). Stop by OH with questions! Email cs3@cs.stanford.edu with questions! Review session tonight, 7PM until whenever
More informationGraph Detection and Estimation Theory
Introduction Detection Estimation Graph Detection and Estimation Theory (and algorithms, and applications) Patrick J. Wolfe Statistics and Information Sciences Laboratory (SISL) School of Engineering and
More informationThe Class CAT of Locally Small Categories as a Functor-Free Framework for Foundations and Philosophy
The Class CAT of Locally Small Categories as a Functor-Free Framework for Foundations and Philosophy Vaughan Pratt Stanford University Logic Colloquium UC Berkeley April 27, 2018 Vaughan Pratt Stanford
More informationDiscrete Structures Proofwriting Checklist
CS103 Winter 2019 Discrete Structures Proofwriting Checklist Cynthia Lee Keith Schwarz Now that we re transitioning to writing proofs about discrete structures like binary relations, functions, and graphs,
More informationCompleteness of Star-Continuity
Introduction to Kleene Algebra Lecture 5 CS786 Spring 2004 February 9, 2004 Completeness of Star-Continuity We argued in the previous lecture that the equational theory of each of the following classes
More informationSection 8.4 Closures of Relations
Section 8.4 Closures of Relations Definition: The closure of a relation R with respect to property P is the relation obtained by adding the minimum number of ordered pairs to R to obtain property P. In
More informationwhere Female = 0 for males, = 1 for females Age is measured in years (22, 23, ) GPA is measured in units on a four-point scale (0, 1.22, 3.45, etc.
Notes on regression analysis 1. Basics in regression analysis key concepts (actual implementation is more complicated) A. Collect data B. Plot data on graph, draw a line through the middle of the scatter
More informationON COMPUTAMBLE NUMBERS, WITH AN APPLICATION TO THE ENTSCHENIDUGSPROBLEM. Turing 1936
ON COMPUTAMBLE NUMBERS, WITH AN APPLICATION TO THE ENTSCHENIDUGSPROBLEM Turing 1936 Where are We? Ignoramus et ignorabimus Wir mussen wissen Wir werden wissen We do not know We shall not know We must know
More informationAlignment Algorithms. Alignment Algorithms
Midterm Results Big improvement over scores from the previous two years. Since this class grade is based on the previous years curve, that means this class will get higher grades than the previous years.
More informationTEST 150 points
Math 130 Spring 008 Name: TEST #1 @ 150 points Write neatly. Show all work. Write all responses on separate paper. Clearly label the exercises. 1. A piecewise-defined function is given. 1- x if x< f (
More informationIntroduction to Social Network Analysis PSU Quantitative Methods Seminar, June 15
Introduction to Social Network Analysis PSU Quantitative Methods Seminar, June 15 Jeffrey A. Smith University of Nebraska-Lincoln Department of Sociology Course Website https://sites.google.com/site/socjasmith/teaching2/psu_social_networks_seminar
More informationJune If you want, you may scan your assignment and convert it to a.pdf file and it to me.
Summer Assignment Pre-Calculus Honors June 2016 Dear Student: This assignment is a mandatory part of the Pre-Calculus Honors course. Students who do not complete the assignment will be placed in the regular
More informationNotes for Science and Engineering Foundation Discrete Mathematics
Notes for Science and Engineering Foundation Discrete Mathematics by Robin Whitty BSc PhD CMath FIMA 2009/2010 Contents 1 Introduction 1 1.1 The Laws of Arithmetic....................... 2 2 Polynomial
More informationVectors To begin, let us describe an element of the state space as a point with numerical coordinates, that is x 1. x 2. x =
Linear Algebra Review Vectors To begin, let us describe an element of the state space as a point with numerical coordinates, that is x 1 x x = 2. x n Vectors of up to three dimensions are easy to diagram.
More informationCHAPTER THREE: RELATIONS AND FUNCTIONS
CHAPTER THREE: RELATIONS AND FUNCTIONS 1 Relations Intuitively, a relation is the sort of thing that either does or does not hold between certain things, e.g. the love relation holds between Kim and Sandy
More informationGrade 4 - SBA Claim 1 Example Stems
Grade 4 - SBA Claim 1 Example Stems This document takes publicly available information about the Smarter Balanced Assessment (SBA) in Mathematics, namely the Claim 1 Item Specifications, and combines and
More informationPROPOSITIONS AND LOGICAL OPERATIONS
1 PROPOSITIONS AND LOGICAL OPERATIONS INTRODUCTION What is logic? Logic is the discipline that deals with the methods of reasoning. Logic provides you rules & techniques for determining whether a given
More informationG.5 Concept of Function, Domain, and Range
G. Concept of Function, Domain, and Range Relations, Domains, and Ranges In mathematics, we often investigate ships between two quantities. For example, we might be interested in the average daily temperature
More informationCalculus III. Exam 2
Calculus III Math 143 Spring 011 Professor Ben Richert Exam Solutions Problem 1. (0pts) Computational mishmash. For this problem (and only this problem), you are not required to supply any English explanation.
More informationPolynomials. 1. Classify by degree and number of terms:
Semester Exam Review Packet 2018 *This packet is not necessarily comprehensive. In other words, this packet is not a promise in terms of level of difficulty or full scope of material. Polynomials 1. Classify
More informationAutomata Theory for Presburger Arithmetic Logic
Automata Theory for Presburger Arithmetic Logic References from Introduction to Automata Theory, Languages & Computation and Constraints in Computational Logic Theory & Application Presented by Masood
More informationA mystery of transpose of matrix multiplication Why (AB) T = B T A T?
A mystery of transpose of matrix multiplication Why (AB) T = B T A T? Yamauchi, Hitoshi Nichiyou kenkyu aikouka Berlin, Germany 2009-5-24(Sun) Contents Introduction 2 Dot product of vectors 3 Matrix Multiplication
More information6.825 Techniques in Artificial Intelligence. Logic Miscellanea. Completeness and Incompleteness Equality Paramodulation
6.825 Techniques in Artificial Intelligence Logic Miscellanea Completeness and Incompleteness Equality Paramodulation Lecture 9 1 Logic is a huge subject. It includes esoteric mathematical and philosophical
More informationUNIFORM DISTRIBUTIONS The allows us to see two very important properties: 1. The under the of a distribution is equal. (or frequency), so some
Example 2: In a study of 420,095 cell phone users in Denmark, it was found that 135 developed cancer of the brain or nervous system. If we assume that the use of cell phones has no effect on developing
More informationName: Problem Possible Actual Score TOTAL 180
Name: MA 226 FINAL EXAM Show Your Work and JUSTIFY Your Responses. Clearly label things that you want the grader to see. You are responsible for conveying your knowledge of the material in an understandable
More informationP versus NP. Math 40210, Spring September 16, Math (Spring 2012) P versus NP September 16, / 9
P versus NP Math 40210, Spring 2012 September 16, 2012 Math 40210 (Spring 2012) P versus NP September 16, 2012 1 / 9 Properties of graphs A property of a graph is anything that can be described without
More informationA is a subset of (contained in) B A B iff x A = x B Socrates is a man. All men are mortal. A = B iff A B and B A. A B means A is a proper subset of B
Subsets C-N Math 207 - Massey, 71 / 125 Sets A is a subset of (contained in) B A B iff x A = x B Socrates is a man. All men are mortal. A = B iff A B and B A x A x B A B means A is a proper subset of B
More informationSets. Subsets. for any set A, A and A A vacuously true: if x then x A transitivity: A B, B C = A C N Z Q R C. C-N Math Massey, 72 / 125
Subsets Sets A is a subset of (contained in) B A B iff x A = x B Socrates is a man. All men are mortal. A = B iff A B and B A x A x B A B means A is a proper subset of B A B but A B, so x B x / A Illustrate
More informationThe Different Sizes of Infinity
The Different Sizes of Infinity New York City College of Technology Cesar J. Rodriguez November 11, 2010 A Thought to Ponder At... Does Infinity Come in Varying Sizes? 2 Points of Marked Interest(s) General
More informationName Final Exam Review
Name Final Exam Review For numbers 1 and, solve the given equation. If the solution set is, classify the equation as an identity or a contradiction. 1.) 10x 7 38x 49 1..) 13t 5 t 5 3t 1. P1 V1 P V 3.)
More informationCHAPTER 1: Functions
CHAPTER 1: Functions 1.1: Functions 1.2: Graphs of Functions 1.3: Basic Graphs and Symmetry 1.4: Transformations 1.5: Piecewise-Defined Functions; Limits and Continuity in Calculus 1.6: Combining Functions
More informationUnit 4: Function Composition
Haberman MTH 111 Section I: Functions and Their Graphs Unit 4: Function Composition In The Algebra of Functions (Section I: Unit ) we discussed adding, subtracting, multiplying, and dividing functions.
More information