Notes for Science and Engineering Foundation Discrete Mathematics

Size: px
Start display at page:

Download "Notes for Science and Engineering Foundation Discrete Mathematics"

Transcription

1 Notes for Science and Engineering Foundation Discrete Mathematics by Robin Whitty BSc PhD CMath FIMA 2009/2010

2 Contents 1 Introduction The Laws of Arithmetic Polynomial Arithmetic Laws of arithmetic for polynomials Powers of polynomials Matrix Arithmetic Motivation Addition and subtraction Scalar multiplication Vector Multiplication Matrix Multiplication Matrix Operations Matrices Addition Scalar multiplication Matrix multiplication Laws of arithmetic for matrices Matrix transpose Propositional Logic Arithmetic with propositions Disjunction: OR, (like + ) i

3 ii CONTENTS Conjunction: AND, (like ) Logical equivalence: (like = ) Negation: (like unary ) Laws of arithmetic for propositions Normal Form Truth Tables Enumerated Form Arithmetic Tables Logic Functions Proving Logical Equivalence Logical Implication Set Theory The Membership Predicate Specifying a set The equality and subset predicates A set of cardinality n has 2 n subsets The Arithmetic of sets Union, (like ) Intersection, (like ) Difference:\ (like ) Laws of arithmetic for propositions Venn Diagrams and Region Tables The Universal set Venn diagrams and complementation The complementation laws Venn diagrams for two sets Venn diagrams for three sets and truth tables again Region tables Cartesian Product and Relations 51

4 CONTENTS The Cartesian Product Laws of arithmetic and closure Relations Graphs of relations Properties of relations Special types of relations

5 2 CONTENTS

6 50 CONTENTS

7 Chapter 8 Cartesian Product and Relations Since Cartesian geometry gave us the idea of the x-y plane, over 400 years ago, the idea of working with pairs of numbers has become a central to much of mathematics. The pairs (x, y) that are coordinates of points in the plane consist of real numbers from the setrand are not of direct concern in discrete mathematics; but we will see that we can make pairs using any sets. 8.1 The Cartesian Product Suppose we have a universal setu and subsets A and B ofu. The cartesian product of A and B, denoted by A B and said A cross B, is defined to be the set of all pairs (a, b) with a A and b B: A B={(a, b) a A b B}. Note that the pairs are ordered: (a, b) (b, a) unless a=b. So, in particular, {a, b} is not the same as (a, b): one is a set of cardinality 2 and the order in which we list the elements does not matter; the other is a pair and the order does matter. E.g. if A={1, 2, 3} and B={p, q} then (a) A B={(1, p), (1, q), (2, p), (2, q), (3, p), (3, q)}; (b) B A={(p, 1), (p, 2), (p, 3), (q, 1), (q, 2), (q, 3)}; (c) A A={(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3)}; (d) B B={(p, p), (p, q), (q, p), (q, q)}; (e) (B B) B={ ( (p, p), p ), ( (p, p), q ), ( (p, q), p ), ( (p, q), q ), ( (q, p), p ), ( (q, p), q ), ( (q, q), p ), ( (q, q), q ) }; (f) B (B B)={ ( p, (p, p) ), ( q, (p, p) ), ( p, (p, q) ), ( q, (p, q) ), ( p, (q, p) ), ( q, (q, p) ), ( p, (q, q) ), ( q, (q, q) ) }; 51

8 52 CHAPTER 8. CARTESIAN PRODUCT AND RELATIONS We may visualise the cartesian product as a set of points in the plane, as in figure 8.1 for A B in the above example. We should be careful about interpreting this picture geometrically, however; for instance, the distance between the different points has no meaning. Later on we shall make a quite different visualisation in which pairs are represented by arrows instead of points. Figure 8.1: graphical representation of the set A B, A={1, 2, 3}, B={p, q}. The rectangle of points in figure 8.1 has size 2 3, so it contains 6 points in total. In general, if A contains m elements (recall that we write this as A =m) and B contains n elements, then A B contains m n elements: A B = A B. (There is a link to matrices here: a matrix with m rows and n columns has size m n (m by n) and contains m n entries.) Laws of arithmetic and closure In chapter 6 we met the set operations union, intersection cap and set difference \; then in chapter 7 we met the complement c operation. These operations all related to the arithmetic of propositions, although\, like disobeyed all the rules: associative, commutative and distributive. Now we have another set operation:. We shall see that it too disobeys all the rules. And in fact it has a worse failing, one which excludes from being considered as an arithmetic operation at all! We will check the laws of arithmetic for in a slightly different order than usual, looking back to the example above: Commutative laws: Does (A B) C=A (B C)? NO: we saw in example (a) that (1, p) A B but in (b) (1, p) B A; Associative law: Does (A B) C=A (B C)? NO, not even if A, B and C are all the same set: we saw in example (e)

9 8.2. RELATIONS 53 that ( (p, p), p ) (B B) B but in (f) we saw thatb (B B) contained ( p, (p, p) ) which is not the same; Distributive law: Does A (B C)=(A B) (A C)? NO: suppose A, B and C are all the set{a}. Then A (B C)={a} ( {a} {a} ) ={a} { (a, a) } =, but (A B) (A C)= ( {a} {a} ) ( {a} {a} ) ={a} { a}= { (a, a) }. In the last example, A (B C)= because A, B and C contain single elements from some universal setu but B C contains pairs of elements and these will not generally be elements ofu. Until now, all the operations we have met have stayed withinu : the sum of two polynomials is a polynomial; the sum of two matrices is a matrix; P Q is a proposition; A B is a subset ofu. But A B is not a subset ofu. We say that an operation is closed overu if its result always again belongs tou. For sets, we can think of this as saying that the operation keeps within the box of a Venn diagram;,,\and c all turn regions of the Venn diagram into new regions. But does not give a region of the Venn diagram. For this reason we do not think of it as an arithmetic operator at all (computer scientists sometimes call it a constructor ). E.g. (a)z Z={(x, y) x Z y Z} Z; (b) (Z Z) Z={ ( (x, y), z ) x, y, z Z} Z Z Z; (c)r R={(x, y) x, y R} R; The set of pairs of integersz Z is usually denotedz 2 (as though it was multiplication but it definitely is not multiplication!) Actually the sets (Z Z) Z andz (Z Z) are both usually denotedz 3 even though they are different sets! In applications, there is often no difference between ( (x, y), z ) and ( x, (y, z) ). This is especially true forr 3 which denotes three-dimensional space: it does not matter if we look at the x-y plane and then include the z axis, or look at the x axis and then include the y-z plane. Einstein taught us that this remains true forr 4 : time, the fourth dimension, is no different from length, breadth and height. 8.2 Relations If A is any set then we will write A 2 for the cartesian product A A. The subsets of A 2 are given a special name: they are called relations on A.

10 54 CHAPTER 8. CARTESIAN PRODUCT AND RELATIONS E.g. (a) The subset ofz 2 which pairs numbers with their squares: R 1 ={(x, y) y= x 2 } = { (0, 0), (1, 1), ( 1, 1), (2, 4), ( 2, 4) (3, 9), ( 3, 9),... }. (b) If A={a, b, c}, the subset of A 2 consisting of pairs in alphabetical order: R 2 ={(x, y) x comes before y in the alphabet} = { (a, b), (a, c), (b, c) }. (c) If A={a, b, c}, the subset of A 2 consisting of pairs not in alphabetical order: R 3 ={(x, y) x does not come before y in the alphabet} = { (a, a), (b, a), (b, b), (c, a), (c, b), (c, c) }. Note that R 2 R 3 = A 2. In other words, R 3 = R 2 c, as we would expect since the membership predicate for R 3 is the negation of the membership predicate for R 2. Some textbooks allow relations between two different sets. For example, if A is the set of living men and B is the set of living women then we could define R A B= { (x, y) x is legally married to y }. However, we will call this a mapping and deal with it later Graphs of relations We can represent a relation R A 2 diagrammatically: each element of A is represented by a point, called a vertex; each pair (a, b) R is represented by an arrow, called an edge, joining vertex a to vertex b. This representation is valid for any set A, even if it is infinite, likez. But we will only consider cases where A is a small finite set, say five or six elements at most. E.g. (a) The relation R 1 on A={a, b, c, d, e} given by R 1 = { (a, b), (b, a), (b, c), (b, d), (c, d), (c, e), (d, a), (d, e) } is shown top-left in figure 8.2. (b) The relation R 2 on A={a, b, c, d} given by R 2 = { (a, a), (b, a), (b, b), (b, c), (b, d), (c, a), (c, c), (c, d), (d, a), (d, d) }

11 8.2. RELATIONS 55 Figure 8.2: graphical representations of four relations. is shown top-right in figure 8.2. (c) The relation R 3 on A={a, b, c} given by R 3 = { (a, a), (a, b), (a, c), (b, a), (b, b), (b, c), (c, a), (c, b), (c, c) } = A 2 is shown bottom-left in figure 8.2. (d) The relation R 4 on A={a, b, c} given by R 4 = is shown bottom-right in figure 8.2. There are many things we can do with a graphical representation of a relation and in fact the theory of graphs will take up a whole chapter later. But for now they are mainly useful as a way of checking which properties a given relation has or does not have Properties of relations There are seven properties which allow us to distinguish some particularly important kinds of relations. It will be convenient to present them in a table. This

12 56 CHAPTER 8. CARTESIAN PRODUCT AND RELATIONS is given below as table 8.1: each row gives the formal definition of the property and then how it may be recognised in the graph of the relation. We can check the Property Definition Trivial R= no edges Universal R=A 2 an edge in both directions between any pair of vertices+aloop at every vertex Total for any a and b in A, a b, (a, b) R (b, a) R an edge in at least one direction between any pair of vertices Reflexive for every a A, (a, a) R Symmetric Antisymmetric a loop at every vertex: for any a and b in A, if (a, b) R then (b, a) R any edge matched by one in the opposite direction: for any a and b in A, if (a, b) R and (b, a) Rthen a=b no edge matched by the opposite edge: Transitive for any a, b and c in A, if (a, b) R and (b, c) R then (a, c) R consecutive edges must complete a triangle Table 8.1: the seven key properties for a relation R on set A. relations shown graphically in figure 8.2: R 1 Trivial Universal Total Reflexive Symmetric Antisymmetric Transitive R 2 R 3 R 4 You should confirm that you agree with all the ticks! In particular, notice that R 4, the trivial relation, is simultaneously symmetric and antisymmetric! All its edges satisfy both conditions because it has no edges to fail! Mathematicians say the properties are satisfied vacuously. The most subtle property is transitivity. In R 1 we have some consecutive edges which form part of a triangle: (b, c) and (c, d) have the edge (b, d), for example. But (a, b) and (b, d) do not have (a, d). There is a triangle with edge (d, a) but not the right kind of triangle. And for (a, b) and (b, c) there is no triangle at all, not even one of the wrong kind.

13 8.2. RELATIONS Special types of relations The reason for distinguishing the seven properties in the last section is that they combine to distinguish some special types of relations which occur everywhere in mathematics and computer science, from relational databases to algebraic geometry. Equivalence Relation R is an equivalence relation, or an equivalence, if it is reflexive, symmetric and transitive; Partial Order R is a partial order if it is reflexive, antisymmetric and transitive; Total Order R is a total order if it is total and is a partial order. We can summarise these in a table too: Equivalence Partial order Total order Trivial Universal Total Reflexive Symmetric Antisymmetric Transitive If we look back to the table which summarised the properties of the graphs in figure 8.2 then we see that R 2 is a total order and R 3 is an equivalence relation. It is not a coincidence that the equivalence relation, R 3, also happened to be universal. We have the following, very important fact: Theorem 23 Any equivalence relation R over a set A is made up of a union of disjoint universal relations which together include all elements of A. In symbols, there is a possibly infinite list of disjoint subsets A 1, A 2,... of A for which 1. A 1 A 2...=A (the A i are said to partition A); 2. A 2 1 A2 2...=R. The sets A i in Theorem 23 are called the equivalence classes of the relation. E.g. (a) The relation R on A={a, b, c, d, e, f} given by R 1 = { (a, a), (a, b), (a, d), (b, a), (b, b), (b, d), (d, a), (d, b), (d, d), (c, c), (c, f ), ( f, c), ( f, f ), (e, e) } is an equivalence relation with equivalence classes A 1 ={a, b, d}, A 2 ={c, f} and A 3 ={e}. Its graph is shown in figure 8.3. (b) The relation R on the integerszgiven by

14 58 CHAPTER 8. CARTESIAN PRODUCT AND RELATIONS R = { (x, y) x, y Z x and y have the same parity (both odd or both even) } is an equivalence relation with equivalence classes: A 1 ={..., 5, 3, 1, 1, 3, 5, 7,...}, (the odd numbers) A 2 ={..., 4, 2, 0, 2, 4, 6,...}, (the even numbers). We can think of these equivalence classes as being the same as the elements ofz 2, the integers modulo 2. (c) The relation R on the positive integersz >0 given by R = { (x, y) x, y Z >0 the highest power of 2 dividing x and y is the same } is an equivalence relation with equivalence classes: A 1 ={1, 3, 5, 7,...}, A 2 ={2 1, 2 3, 2 5,...}, A 3 ={2 2 1, 2 2 3, 2 2 5,...}... and so on an infinite list of infinite equivalence classes! Figure 8.3: an equivalence relation on A ={a, b, c, d, e, f} consisting of 3 disjoint universal relations and partitioning A into three equivalence classes. Partial orders have a theorem too. We know that in a partial order cyclic paths of length two are banned because of antisymmetry (see row 6 of table 8.1). What about cyclic paths of length three: (a, b), (b, c) and (c, a)? Well, a partial order has to be transitive, so (a, b), (b, c) requires that (a, c) is in the relation. But now we have (c, a) and (a, c) which is not allowed by antisymmetry. So there are no cyclic triangles. In a similar way, we see that: Theorem 24 Apart from loops, in the graph of a partial order there can be no cyclic paths. As a consequence of this theorem, we can draw the graph of a partial order so that all the edges point in the same direction. It is traditional to make them point upwards. Then we leave the arrows off since we know which direction they point (upwards). Then we leave off the loops since we know that every vertex has a loop because of reflexivity. Then we leave out all the triangle completions because we know they happen by transitivity. The result is a much simpler graph

15 8.2. RELATIONS 59 which still has all the information about the partial order. It is called a Hasse diagram. Figure 8.4 shows the derivation of the Hasse diagram for the relation R 2 in figure 8.2. Figure 8.4: deriving the Hasse diagram of the relation R 2 from figure 8.2.

Definition: A binary relation R from a set A to a set B is a subset R A B. Example:

Definition: 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

Section Summary. Relations and Functions Properties of Relations. Combining Relations

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

Relations Graphical View

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

With Question/Answer Animations. Chapter 2

With Question/Answer Animations. Chapter 2 With Question/Answer Animations Chapter 2 Chapter Summary Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Sequences and Summations Types of

More information

BOOLEAN ALGEBRA INTRODUCTION SUBSETS

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

Chapter 2 - Basics Structures

Chapter 2 - Basics Structures Chapter 2 - Basics Structures 2.1 - Sets Definitions and Notation Definition 1 (Set). A set is an of. These are called the or of the set. We ll typically use uppercase letters to denote sets: S, A, B,...

More information

A B is shaded A B A B

A B is shaded A B A B NION: Let and be subsets of a universal set. The union of sets and is the set of all elements in that belong to or to or to both, and is denoted. Symbolically: = {x x or x } EMMPLE: Let = {a, b, c, d,

More information

Notes. Relations. Introduction. Notes. Relations. Notes. Definition. Example. Slides by Christopher M. Bourke Instructor: Berthe Y.

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

CM10196 Topic 2: Sets, Predicates, Boolean algebras

CM10196 Topic 2: Sets, Predicates, Boolean algebras CM10196 Topic 2: Sets, Predicates, oolean algebras Guy McCusker 1W2.1 Sets Most of the things mathematicians talk about are built out of sets. The idea of a set is a simple one: a set is just a collection

More information

586 Index. vertex, 369 disjoint, 236 pairwise, 272, 395 disjoint sets, 236 disjunction, 33, 36 distributive laws

586 Index. vertex, 369 disjoint, 236 pairwise, 272, 395 disjoint sets, 236 disjunction, 33, 36 distributive laws Index absolute value, 135 141 additive identity, 254 additive inverse, 254 aleph, 465 algebra of sets, 245, 278 antisymmetric relation, 387 arcsine function, 349 arithmetic sequence, 208 arrow diagram,

More information

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland Discrete Mathematics W. Ethan Duckworth Fall 2017, Loyola University Maryland Contents 1 Introduction 4 1.1 Statements......................................... 4 1.2 Constructing Direct Proofs................................

More information

Chapter 2 - Basics Structures MATH 213. Chapter 2: Basic Structures. Dr. Eric Bancroft. Fall Dr. Eric Bancroft MATH 213 Fall / 60

Chapter 2 - Basics Structures MATH 213. Chapter 2: Basic Structures. Dr. Eric Bancroft. Fall Dr. Eric Bancroft MATH 213 Fall / 60 MATH 213 Chapter 2: Basic Structures Dr. Eric Bancroft Fall 2013 Dr. Eric Bancroft MATH 213 Fall 2013 1 / 60 Chapter 2 - Basics Structures 2.1 - Sets 2.2 - Set Operations 2.3 - Functions 2.4 - Sequences

More information

Chapter VI. Relations. Assumptions are the termites of relationships. Henry Winkler

Chapter VI. Relations. Assumptions are the termites of relationships. Henry Winkler Chapter VI Relations Assumptions are the termites of relationships. Henry Winkler Studying relationships between objects can yield important information about the objects themselves. In the real numbers,

More information

Supplementary Material for MTH 299 Online Edition

Supplementary Material for MTH 299 Online Edition Supplementary Material for MTH 299 Online Edition Abstract This document contains supplementary material, such as definitions, explanations, examples, etc., to complement that of the text, How to Think

More information

Chapter 9: Relations Relations

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

Equivalence and Implication

Equivalence and Implication Equivalence and Alice E. Fischer CSCI 1166 Discrete Mathematics for Computing February 7 8, 2018 Alice E. Fischer Laws of Logic... 1/33 1 Logical Equivalence Contradictions and Tautologies 2 3 4 Necessary

More information

1. (B) The union of sets A and B is the set whose elements belong to at least one of A

1. (B) The union of sets A and B is the set whose elements belong to at least one of A 1. (B) The union of sets A and B is the set whose elements belong to at least one of A or B. Thus, A B = { 2, 1, 0, 1, 2, 5}. 2. (A) The intersection of sets A and B is the set whose elements belong to

More information

Discrete Mathematics. Benny George K. September 22, 2011

Discrete Mathematics. Benny George K. September 22, 2011 Discrete Mathematics Benny George K Department of Computer Science and Engineering Indian Institute of Technology Guwahati ben@iitg.ernet.in September 22, 2011 Set Theory Elementary Concepts Let A and

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009 Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009 Our main goal is here is to do counting using functions. For that, we

More information

Sets. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

Sets. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007 Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Fall 2007 1 / 42 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 2.1, 2.2 of Rosen Introduction I Introduction

More information

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2.

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

Reading 11 : Relations and Functions

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

Sets. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

Sets. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006 Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Spring 2006 1 / 1 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 1.6 1.7 of Rosen Introduction I We ve already

More information

Foundations of Mathematics

Foundations of Mathematics Foundations of Mathematics L. Pedro Poitevin 1. Preliminaries 1.1. Sets We will naively think of a set as a collection of mathematical objects, called its elements or members. To indicate that an object

More information

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010) http://math.sun.ac.za/amsc/sam Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics 2009-2010 Lecture notes in progress (27 March 2010) Contents 2009 Semester I: Elements 5 1. Cartesian product

More information

Chapter 3. Introducing Groups

Chapter 3. Introducing Groups Chapter 3 Introducing Groups We need a super-mathematics in which the operations are as unknown as the quantities they operate on, and a super-mathematician who does not know what he is doing when he performs

More information

Exclusive Disjunction

Exclusive Disjunction Exclusive Disjunction Recall A statement is a declarative sentence that is either true or false, but not both. If we have a declarative sentence s, p: s is true, and q: s is false, can we rewrite s is

More information

Notation Index. gcd(a, b) (greatest common divisor) NT-16

Notation Index. gcd(a, b) (greatest common divisor) NT-16 Notation Index (for all) B A (all functions) B A = B A (all functions) SF-18 (n) k (falling factorial) SF-9 a R b (binary relation) C(n,k) = n! k! (n k)! (binomial coefficient) SF-9 n! (n factorial) SF-9

More information

Problem 1: Suppose A, B, C and D are finite sets such that A B = C D and C = D. Prove or disprove: A = B.

Problem 1: Suppose A, B, C and D are finite sets such that A B = C D and C = D. Prove or disprove: A = B. Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination III (Spring 2007) Problem 1: Suppose A, B, C and D are finite sets

More information

Fuzzy and Rough Sets Part I

Fuzzy and Rough Sets Part I Fuzzy and Rough Sets Part I Decision Systems Group Brigham and Women s Hospital, Harvard Medical School Harvard-MIT Division of Health Sciences and Technology Aim Present aspects of fuzzy and rough sets.

More information

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

Boolean Algebras. Chapter 2

Boolean Algebras. Chapter 2 Chapter 2 Boolean Algebras Let X be an arbitrary set and let P(X) be the class of all subsets of X (the power set of X). Three natural set-theoretic operations on P(X) are the binary operations of union

More information

Propositional Logic, Predicates, and Equivalence

Propositional Logic, Predicates, and Equivalence Chapter 1 Propositional Logic, Predicates, and Equivalence A statement or a proposition is a sentence that is true (T) or false (F) but not both. The symbol denotes not, denotes and, and denotes or. If

More information

2. Sets. 2.1&2.2: Sets and Subsets. Combining Sets. c Dr Oksana Shatalov, Spring

2. Sets. 2.1&2.2: Sets and Subsets. Combining Sets. c Dr Oksana Shatalov, Spring c Dr Oksana Shatalov, Spring 2015 1 2. Sets 2.1&2.2: Sets and Subsets. Combining Sets. Set Terminology and Notation DEFINITIONS: Set is well-defined collection of objects. Elements are objects or members

More information

Numbers that are divisible by 2 are even. The above statement could also be written in other logically equivalent ways, such as:

Numbers that are divisible by 2 are even. The above statement could also be written in other logically equivalent ways, such as: 3.4 THE CONDITIONAL & BICONDITIONAL Definition. Any statement that can be put in the form If p, then q, where p and q are basic statements, is called a conditional statement and is written symbolically

More information

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics. Section 2.1 Introduction Sets are one of the basic building blocks for the types of objects considered in discrete mathematics. Important for counting. Programming languages have set operations. Set theory

More information

Boolean Algebra CHAPTER 15

Boolean Algebra CHAPTER 15 CHAPTER 15 Boolean Algebra 15.1 INTRODUCTION Both sets and propositions satisfy similar laws, which are listed in Tables 1-1 and 4-1 (in Chapters 1 and 4, respectively). These laws are used to define an

More information

Course: Algebra 1-A Direct link to this page:http://www.floridastandards.org/courses/publicpreviewcourse5.aspx?ct=1

Course: Algebra 1-A Direct link to this page:http://www.floridastandards.org/courses/publicpreviewcourse5.aspx?ct=1 Course: 1200370 Algebra 1-A Direct link to this page:http://www.floridastandards.org/courses/publicpreviewcourse5.aspx?ct=1 BASIC INFORMATION Course Number: 1200370 Course Title: Algebra 1-A Course Abbreviated

More information

Sets and Motivation for Boolean algebra

Sets and Motivation for Boolean algebra SET THEORY Basic concepts Notations Subset Algebra of sets The power set Ordered pairs and Cartesian product Relations on sets Types of relations and their properties Relational matrix and the graph of

More information

1. To be a grandfather. Objects of our consideration are people; a person a is associated with a person b if a is a grandfather of b.

1. To be a grandfather. Objects of our consideration are people; a person a is associated with a person b if a is a grandfather of b. 20 [161016-1020 ] 3.3 Binary relations In mathematics, as in everyday situations, we often speak about a relationship between objects, which means an idea of two objects being related or associated one

More information

Proving simple set properties...

Proving simple set properties... Proving simple set properties... Part 1: Some examples of proofs over sets Fall 2013 Proving simple set properties... Fall 2013 1 / 17 Introduction Overview: Learning outcomes In this session we will...

More information

1 Numbers, Sets, Algebraic Expressions

1 Numbers, Sets, Algebraic Expressions AAU - Business Mathematics I Lecture #1, February 27, 2010 1 Numbers, Sets, Algebraic Expressions 1.1 Constants, Variables, and Sets A constant is something that does not change, over time or otherwise:

More information

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

HANDOUT AND SET THEORY. Ariyadi Wijaya

HANDOUT AND SET THEORY. Ariyadi Wijaya HANDOUT LOGIC AND SET THEORY Ariyadi Wijaya Mathematics Education Department Faculty of Mathematics and Natural Science Yogyakarta State University 2009 1 Mathematics Education Department Faculty of Mathematics

More information

Mathematical Preliminaries. Sipser pages 1-28

Mathematical Preliminaries. Sipser pages 1-28 Mathematical Preliminaries Sipser pages 1-28 Mathematical Preliminaries This course is about the fundamental capabilities and limitations of computers. It has 3 parts 1. Automata Models of computation

More information

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall Set-builder notation (a more precise way of describing a set)

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall Set-builder notation (a more precise way of describing a set) c Oksana Shatalov, Fall 2018 1 4. Sets 4.1. The language of sets Set Terminology and Notation Set is a well-defined collection of objects. Elements are objects or members of the set. Describing a Set Roster

More information

Topics in Logic and Proofs

Topics in Logic and Proofs Chapter 2 Topics in Logic and Proofs Some mathematical statements carry a logical value of being true or false, while some do not. For example, the statement 4 + 5 = 9 is true, whereas the statement 2

More information

Preliminaries to the Theory of Computation

Preliminaries to the Theory of Computation Preliminaries to the Theory of Computation 2 In this chapter, we explain mathematical notions, terminologies, and certain methods used in convincing logical arguments that we shall have need of throughout

More information

Fuzzy Sets. Mirko Navara navara/fl/fset printe.pdf February 28, 2019

Fuzzy Sets. Mirko Navara   navara/fl/fset printe.pdf February 28, 2019 The notion of fuzzy set. Minimum about classical) sets Fuzzy ets Mirko Navara http://cmp.felk.cvut.cz/ navara/fl/fset printe.pdf February 8, 09 To aviod problems of the set theory, we restrict ourselves

More information

Logic and Boolean algebra

Logic and Boolean algebra Computer Mathematics Week 7 Logic and Boolean algebra College of Information Science and Engineering Ritsumeikan University last week coding theory channel coding information theory concept Hamming distance

More information

1 Predicates and Quantifiers

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

1.1.1 Algebraic Operations

1.1.1 Algebraic Operations 1.1.1 Algebraic Operations We need to learn how our basic algebraic operations interact. When confronted with many operations, we follow the order of operations: Parentheses Exponentials Multiplication

More information

Discrete Basic Structure: Sets

Discrete Basic Structure: Sets KS091201 MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) Discrete Basic Structure: Sets Discrete Math Team 2 -- KS091201 MD W-07 Outline What is a set? Set properties Specifying a set Often used sets The universal

More information

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications Chapter 1: Foundations: Sets, Logic, and Algorithms Discrete Mathematical Structures: Theory and Applications Learning Objectives Learn about sets Explore various operations on sets Become familiar with

More information

CHAPTER 1. Preliminaries. 1 Set Theory

CHAPTER 1. Preliminaries. 1 Set Theory CHAPTER 1 Preliminaries 1 et Theory We assume that the reader is familiar with basic set theory. In this paragraph, we want to recall the relevant definitions and fix the notation. Our approach to set

More information

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall c Oksana Shatalov, Fall 2017 1 4. Sets 4.1. The language of sets Set Terminology and Notation Set is a well-defined collection of objects. Elements are objects or members of the set. Describing a Set Roster

More information

Vector Spaces. Chapter 1

Vector Spaces. Chapter 1 Chapter 1 Vector Spaces Linear algebra is the study of linear maps on finite-dimensional vector spaces. Eventually we will learn what all these terms mean. In this chapter we will define vector spaces

More information

Automata Theory and Formal Grammars: Lecture 1

Automata Theory and Formal Grammars: Lecture 1 Automata Theory and Formal Grammars: Lecture 1 Sets, Languages, Logic Automata Theory and Formal Grammars: Lecture 1 p.1/72 Sets, Languages, Logic Today Course Overview Administrivia Sets Theory (Review?)

More information

CSE 1400 Applied Discrete Mathematics Proofs

CSE 1400 Applied Discrete Mathematics Proofs CSE 1400 Applied Discrete Mathematics Proofs Department of Computer Sciences College of Engineering Florida Tech Fall 2011 Axioms 1 Logical Axioms 2 Models 2 Number Theory 3 Graph Theory 4 Set Theory 4

More information

Foundation of proofs. Jim Hefferon.

Foundation of proofs. Jim Hefferon. Foundation of proofs Jim Hefferon http://joshua.smcvt.edu/proofs The need to prove In Mathematics we prove things To a person with a mathematical turn of mind, the base angles of an isoceles triangle are

More information

ELEMENTARY LINEAR ALGEBRA

ELEMENTARY LINEAR ALGEBRA ELEMENTARY LINEAR ALGEBRA K R MATTHEWS DEPARTMENT OF MATHEMATICS UNIVERSITY OF QUEENSLAND First Printing, 99 Chapter LINEAR EQUATIONS Introduction to linear equations A linear equation in n unknowns x,

More information

BASIC MATHEMATICAL TECHNIQUES

BASIC MATHEMATICAL TECHNIQUES CHAPTER 1 ASIC MATHEMATICAL TECHNIQUES 1.1 Introduction To understand automata theory, one must have a strong foundation about discrete mathematics. Discrete mathematics is a branch of mathematics dealing

More information

A set is an unordered collection of objects.

A set is an unordered collection of objects. Section 2.1 Sets A set is an unordered collection of objects. the students in this class the chairs in this room The objects in a set are called the elements, or members of the set. A set is said to contain

More information

0 Logical Background. 0.1 Sets

0 Logical Background. 0.1 Sets 0 Logical Background 0.1 Sets In this course we will use the term set to simply mean a collection of things which have a common property such as the totality of positive integers or the collection of points

More information

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2. Chapter 1 LINEAR EQUATIONS 11 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,, a n, b are given real

More information

A Semester Course in Basic Abstract Algebra

A Semester Course in Basic Abstract Algebra A Semester Course in Basic Abstract Algebra Marcel B. Finan Arkansas Tech University c All Rights Reserved December 29, 2011 1 PREFACE This book is an introduction to abstract algebra course for undergraduates

More information

Logic, Sets, and Proofs

Logic, Sets, and Proofs Logic, Sets, and Proofs David A. Cox and Catherine C. McGeoch Amherst College 1 Logic Logical Operators. A logical statement is a mathematical statement that can be assigned a value either true or false.

More information

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas. 1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is

More information

Vector Spaces. 9.1 Opening Remarks. Week Solvable or not solvable, that s the question. View at edx. Consider the picture

Vector Spaces. 9.1 Opening Remarks. Week Solvable or not solvable, that s the question. View at edx. Consider the picture Week9 Vector Spaces 9. Opening Remarks 9.. Solvable or not solvable, that s the question Consider the picture (,) (,) p(χ) = γ + γ χ + γ χ (, ) depicting three points in R and a quadratic polynomial (polynomial

More information

Math 309 Notes and Homework for Days 4-6

Math 309 Notes and Homework for Days 4-6 Math 309 Notes and Homework for Days 4-6 Day 4 Read Section 1.2 and the notes below. The following is the main definition of the course. Definition. A vector space is a set V (whose elements are called

More information

Set theory. Math 304 Spring 2007

Set theory. Math 304 Spring 2007 Math 304 Spring 2007 Set theory Contents 1. Sets 2 1.1. Objects and set formation 2 1.2. Unions and intersections 3 1.3. Differences 4 1.4. Power sets 4 1.5. Ordered pairs and binary,amscdcartesian products

More information

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion

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

Point sets and certain classes of sets

Point sets and certain classes of sets 1 Point sets and certain classes of sets 1.1 Points, sets and classes We shall consider sets consisting of elements or points. The nature of the points will be left unspecified examples are points in a

More information

Set Operations. Combining sets into new sets

Set Operations. Combining sets into new sets Set Operations Combining sets into new sets Union of Sets The union of two sets is the set of all elements that are in one or the other set: A B = {x x A x B} The union is the set theoretic equivalent

More information

CSC Discrete Math I, Spring Relations

CSC Discrete Math I, Spring Relations CSC 125 - Discrete Math I, Spring 2017 Relations Binary Relations Definition: A binary relation R from a set A to a set B is a subset of A B Note that a relation is more general than a function Example:

More information

Error Correcting Codes Prof. Dr. P Vijay Kumar Department of Electrical Communication Engineering Indian Institute of Science, Bangalore

Error Correcting Codes Prof. Dr. P Vijay Kumar Department of Electrical Communication Engineering Indian Institute of Science, Bangalore (Refer Slide Time: 00:54) Error Correcting Codes Prof. Dr. P Vijay Kumar Department of Electrical Communication Engineering Indian Institute of Science, Bangalore Lecture No. # 05 Cosets, Rings & Fields

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 1 Course Web Page www3.cs.stonybrook.edu/ cse303 The webpage contains: lectures notes slides; very detailed solutions to

More information

MATH 423 Linear Algebra II Lecture 3: Subspaces of vector spaces. Review of complex numbers. Vector space over a field.

MATH 423 Linear Algebra II Lecture 3: Subspaces of vector spaces. Review of complex numbers. Vector space over a field. MATH 423 Linear Algebra II Lecture 3: Subspaces of vector spaces. Review of complex numbers. Vector space over a field. Vector space A vector space is a set V equipped with two operations, addition V V

More information

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics CSC 224/226 Notes Packet #2: Set Theory & Predicate Calculus Barnes Packet #2: Set Theory & Predicate Calculus Applied Discrete Mathematics Table of Contents Full Adder Information Page 1 Predicate Calculus

More information

CS Discrete Mathematics Dr. D. Manivannan (Mani)

CS Discrete Mathematics Dr. D. Manivannan (Mani) CS 275 - Discrete Mathematics Dr. D. Manivannan (Mani) Department of Computer Science University of Kentucky Lexington, KY 40506 Course Website: www.cs.uky.edu/~manivann/cs275 Notes based on Discrete Mathematics

More information

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Ivan Avramidi New Mexico Institute of Mining and Technology Socorro, NM 87801 June 3, 2004 Author: Ivan Avramidi; File: absmath.tex; Date: June 11,

More information

Vector Spaces and Subspaces

Vector Spaces and Subspaces Vector Spaces and Subspaces Our investigation of solutions to systems of linear equations has illustrated the importance of the concept of a vector in a Euclidean space. We take time now to explore the

More information

Discrete Mathematics. (c) Marcin Sydow. Sets. Set operations. Sets. Set identities Number sets. Pair. Power Set. Venn diagrams

Discrete Mathematics. (c) Marcin Sydow. Sets. Set operations. Sets. Set identities Number sets. Pair. Power Set. Venn diagrams Contents : basic definitions and notation A set is an unordered collection of its elements (or members). The set is fully specified by its elements. Usually capital letters are used to name sets and lowercase

More information

Introducing Proof 1. hsn.uk.net. Contents

Introducing Proof 1. hsn.uk.net. Contents Contents 1 1 Introduction 1 What is proof? 1 Statements, Definitions and Euler Diagrams 1 Statements 1 Definitions Our first proof Euler diagrams 4 3 Logical Connectives 5 Negation 6 Conjunction 7 Disjunction

More information

Finite Mathematics

Finite Mathematics Finite Mathematics 978-1-63545-026-2 To learn more about all our offerings Visit Knewton.com Source Author(s) (Text or Video) Title(s) Link (where applicable) OpenStax Senior Contributing Authors: Gilbert

More information

Exercises for Unit VI (Infinite constructions in set theory)

Exercises for Unit VI (Infinite constructions in set theory) Exercises for Unit VI (Infinite constructions in set theory) VI.1 : Indexed families and set theoretic operations (Halmos, 4, 8 9; Lipschutz, 5.3 5.4) Lipschutz : 5.3 5.6, 5.29 5.32, 9.14 1. Generalize

More information

REVIEW QUESTIONS. Chapter 1: Foundations: Sets, Logic, and Algorithms

REVIEW QUESTIONS. Chapter 1: Foundations: Sets, Logic, and Algorithms REVIEW QUESTIONS Chapter 1: Foundations: Sets, Logic, and Algorithms 1. Why can t a Venn diagram be used to prove a statement about sets? 2. Suppose S is a set with n elements. Explain why the power set

More information

CISC-102 Fall 2018 Week 11

CISC-102 Fall 2018 Week 11 page! 1 of! 26 CISC-102 Fall 2018 Pascal s Triangle ( ) ( ) An easy ( ) ( way ) to calculate ( ) a table of binomial coefficients was recognized centuries ago by mathematicians in India, ) ( ) China, Iran

More information

Latin squares: Equivalents and equivalence

Latin squares: Equivalents and equivalence Latin squares: Equivalents and equivalence 1 Introduction This essay describes some mathematical structures equivalent to Latin squares and some notions of equivalence of such structures. According to

More information

Chapter 1 : The language of mathematics.

Chapter 1 : The language of mathematics. MAT 200, Logic, Language and Proof, Fall 2015 Summary Chapter 1 : The language of mathematics. Definition. A proposition is a sentence which is either true or false. Truth table for the connective or :

More information

5. Partitions and Relations Ch.22 of PJE.

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

DRAFT CONCEPTUAL SOLUTION REPORT DRAFT

DRAFT CONCEPTUAL SOLUTION REPORT DRAFT BASIC STRUCTURAL MODELING PROJECT Joseph J. Simpson Mary J. Simpson 08-12-2013 DRAFT CONCEPTUAL SOLUTION REPORT DRAFT Version 0.11 Page 1 of 18 Table of Contents Introduction Conceptual Solution Context

More information

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

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. College Algebra for STEM

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. College Algebra for STEM Undergraduate Notes in Mathematics Arkansas Tech University Department of Mathematics College Algebra for STEM Marcel B. Finan c All Rights Reserved 2015 Edition To my children Amin & Nadia Preface From

More information

OBJECTIVES UNIT 1. Lesson 1.0

OBJECTIVES UNIT 1. Lesson 1.0 OBJECTIVES UNIT 1 Lesson 1.0 1. Define "set," "element," "finite set," and "infinite set," "empty set," and "null set" and give two examples of each term. 2. Define "subset," "universal set," and "disjoint

More information

a (b + c) = a b + a c

a (b + c) = a b + a c Chapter 1 Vector spaces In the Linear Algebra I module, we encountered two kinds of vector space, namely real and complex. The real numbers and the complex numbers are both examples of an algebraic structure

More information

Willmar Public Schools Curriculum Map

Willmar Public Schools Curriculum Map Subject Area Mathematics Senior High Course Name Advanced Algebra 2A (Prentice Hall Mathematics) Date April 2010 The Advanced Algebra 2A course parallels each other in content and time. The Advanced Algebra

More information

Sets. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing Spring, Outline Sets An Algebra on Sets Summary

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

GROUPS. Chapter-1 EXAMPLES 1.1. INTRODUCTION 1.2. BINARY OPERATION

GROUPS. Chapter-1 EXAMPLES 1.1. INTRODUCTION 1.2. BINARY OPERATION Chapter-1 GROUPS 1.1. INTRODUCTION The theory of groups arose from the theory of equations, during the nineteenth century. Originally, groups consisted only of transformations. The group of transformations

More information