Applied Discrete Mathematics Week 5: Boolean Algebra

Slides:



Advertisements
Similar presentations
CSE 211- Discrete Structures
Advertisements

Fall 2002CMSC Discrete Structures1 You Never Escape Your… Relations.
Relations Relations on a Set. Properties of Relations.
April 9, 2015Applied Discrete Mathematics Week 9: Relations 1 Solving Recurrence Relations Another Example: Give an explicit formula for the Fibonacci.
Relations - review A binary relation on A is a subset of A×A (set of ordered pairs of elements from A) Example: A = {a,b,c,d,e} R = { (a,a),(a,b),(b,b),(b,c),
Basic Properties of Relations
Relations.
5/16/20151 You Never Escape Your… Relations. 5/16/20152Relations If we want to describe a relationship between elements of two sets A and B, we can use.
Discrete Mathematics Lecture # 16 Inverse of Relations.
Applied Discrete Mathematics Week 11: Graphs
CSE115/ENGR160 Discrete Mathematics 04/24/12 Ming-Hsuan Yang UC Merced 1.
Discrete Mathematics Lecture#11.
1 Section 7.1 Relations and their properties. 2 Binary relation A binary relation is a set of ordered pairs that expresses a relationship between elements.
(CSC 102) Lecture 15 Discrete Structures. Previous Lectures Summary  Procedural Versions  Properties of Sets  Empty Set Properties  Difference Properties.
Relation. Relations Recall the definition of the Cartesian (Cross) Product: The Cartesian Product of sets A and B, A x B, is the set A x B = { : x  A.
Properties of Relations In many applications to computer science and applied mathematics, we deal with relations on a set A rather than relations from.
CS Discrete Mathematical Structures Mehdi Ghayoumi MSB rm 132 Ofc hr: Thur, 9:30-11:30a Fall 2002KSU - Discrete Structures1.
1 Relations Rosen 6 th ed., § Relations Re lationships between elements of sets occur in many contextsRe lationships between elements of sets occur.
Unit Unit 04 Relations IT DisiciplineITD1111 Discrete Mathematics & Statistics STDTLP1 Unit 4 Relations.
Discrete Structures1 You Never Escape Your… Relations.
April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 1 Properties of Relations Definition: A relation R on a set A is called transitive.
Chapter 7: Relations Relations(7.1) Relations(7.1) n-any Relations & their Applications (7.2) n-any Relations & their Applications (7.2)
Relations and their Properties
Fall 2002CMSC Discrete Structures1 You Never Escape Your… Relations.
Relations & Their Properties: Selected Exercises.
Relations & Their Properties: Selected Exercises.
Lecture on Relations 1Developed by CSE Dept., CIST Bhopal.
CS 103 Discrete Structures Lecture 19 Relations. Chapter 9.
Discrete Mathematics Lecture # 15 Types of Relations (contd.)
Discrete Structures – CNS2300
RelationsCSCE 235, Spring Introduction A relation between elements of two sets is a subset of their Cartesian products (set of all ordered pairs.
Relations and Functions ORDERED PAIRS AND CARTESIAN PRODUCT An ordered pair consists of two elements, say a and b, in which one of them, say a is designated.
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), (
Section 9.1. Section Summary Relations and Functions Properties of Relations Reflexive Relations Symmetric and Antisymmetric Relations Transitive Relations.
Lecture 7: Relations Dr Andrew Purkiss-Trew Cancer Research UK Mathematics for Computing.
Relations Chapter 9 Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
Representing Relations Using Digraphs
Discrete Mathematical
Relations and Their Properties
Citra Noviyasari, S.Si, MT
Relations.
Partial Orderings CSE 2813 Discrete Structures.
Equivalence Relations
Relations Chapter 9.
Applied Discrete Mathematics Week 10: Relations
Representing Relations
Dr. Ameria Eldosoky Discrete mathematics
CSE 504 Discrete Structures & Foundations of Computer Science
Lecture 4.3: Closures and Equivalence Relations
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 9 Relations Slides are adopted from.
Applied Discrete Mathematics Week 9: Equivalence Relations
CMSC Discrete Structures
Applied Discrete Mathematics Week 10: Equivalence Relations
Relations and Their Properties
8.1 Relations and Their Properties
8.1 Relations and Their Properties
CSE15 Discrete Mathematics 04/26/17
Relations.
Applied Discrete Mathematics Week 6: Relations/Digraphs
Lecture 4.3: Closures and Equivalence Relations
Relations and their Properties
Introduction to Relations and Functions
Properties of Relations
Discrete Math (2) Haiming Chen Associate Professor, PhD
Basics of Relations.
Chapter 8 (Part 2): Relations
Agenda Lecture Content: Relations (Relasi)
Relations & Their Properties: Selected Exercises
Representing Relations Using Matrices
Lecture # 16 Inverse of Relations
Presentation transcript:

Applied Discrete Mathematics Week 5: Boolean Algebra How About Some… Relations October 2, 2018 Applied Discrete Mathematics Week 5: Boolean Algebra

Applied Discrete Mathematics Week 5: Boolean Algebra Relations If we want to describe a relationship between elements of two sets A and B, we can use ordered pairs with their first element taken from A and their second element taken from B. Since this is a relation between two sets, it is called a binary relation. Definition: Let A and B be sets. A binary relation from A to B is a subset of AB. In other words, for a binary relation R we have R  AB. We use the notation aRb to denote that (a, b)R and aRb to denote that (a, b)R. October 2, 2018 Applied Discrete Mathematics Week 5: Boolean Algebra

Applied Discrete Mathematics Week 5: Boolean Algebra Relations When (a, b) belongs to R, a is said to be related to b by R. Example: Let P be a set of people, C be a set of cars, and D be the relation describing which person drives which car(s). P = {Carl, Suzanne, Peter, Carla}, C = {Mercedes, BMW, tricycle} D = {(Carl, Mercedes), (Suzanne, Mercedes), (Suzanne, BMW), (Peter, tricycle)} This means that Carl drives a Mercedes, Suzanne drives a Mercedes and a BMW, Peter drives a tricycle, and Carla does not drive any of these vehicles. October 2, 2018 Applied Discrete Mathematics Week 5: Boolean Algebra

Functions as Relations You might remember that a function f from a set A to a set B assigns a unique element of B to each element of A. The graph of f is the set of ordered pairs (a, b) such that b = f(a). Since the graph of f is a subset of AB, it is a relation from A to B. Moreover, for each element a of A, there is exactly one ordered pair in the graph that has a as its first element. October 2, 2018 Applied Discrete Mathematics Week 5: Boolean Algebra

Functions as Relations Conversely, if R is a relation from A to B such that every element in A is the first element of exactly one ordered pair of R, then a function can be defined with R as its graph. This is done by assigning to an element aA the unique element bB such that (a, b)R. October 2, 2018 Applied Discrete Mathematics Week 5: Boolean Algebra

Applied Discrete Mathematics Week 5: Boolean Algebra Relations on a Set Definition: A relation on the set A is a relation from A to A. In other words, a relation on the set A is a subset of AA. Example: Let A = {1, 2, 3, 4}. Which ordered pairs are in the relation R = {(a, b) | a < b} ? October 2, 2018 Applied Discrete Mathematics Week 5: Boolean Algebra

Applied Discrete Mathematics Week 5: Boolean Algebra Relations on a Set Solution: R = { (1, 2), (1, 3), (1, 4), (2, 3), (2, 4), (3, 4)} 1 1 R 1 2 3 4 X X X 2 2 X X 3 3 X 4 4 October 2, 2018 Applied Discrete Mathematics Week 5: Boolean Algebra

Applied Discrete Mathematics Week 5: Boolean Algebra Relations on a Set How many different relations can we define on a set A with n elements? A relation on a set A is a subset of AA. How many elements are in AA ? There are n2 elements in AA, so how many subsets (= relations on A) does AA have? The number of subsets that we can form out of a set with m elements is 2m. Therefore, 2n2 subsets can be formed out of AA. Answer: We can define 2n2 different relations on A. October 2, 2018 Applied Discrete Mathematics Week 5: Boolean Algebra

Properties of Relations We will now look at some useful ways to classify relations. Definition: A relation R on a set A is called reflexive if (a, a)R for every element aA. Are the following relations on {1, 2, 3, 4} reflexive? R = {(1, 1), (1, 2), (2, 3), (3, 3), (4, 4)} No. R = {(1, 1), (2, 2), (2, 3), (3, 3), (4, 4)} Yes. R = {(1, 1), (2, 2), (3, 3)} No. Definition: A relation on a set A is called irreflexive if (a, a)R for every element aA. October 2, 2018 Applied Discrete Mathematics Week 5: Boolean Algebra

Properties of Relations Definitions: A relation R on a set A is called symmetric if (b, a)R whenever (a, b)R for all a, bA. A relation R on a set A is called antisymmetric if a = b whenever (a, b)R and (b, a)R. A relation R on a set A is called asymmetric if (a, b)R implies that (b, a)R for all a, bA. October 2, 2018 Applied Discrete Mathematics Week 5: Boolean Algebra