What is the most direct way to express a relationship between elements of 2 sets?
Ordered pairs made up of 2 related elements, for this reason, it is also called as what?
What is the term Applications in Relations and Functions?
What relationship / connections that Applications explain?
What structure does elements of sets are represented in?
A = { students }
B = { courses }
R ( Relation ) = ( a , b )
= ( students , courses )
( Jason, MCFC ) , ( Jason, IOOP )
How is Ordered Pairs written?
What does aRb represent?
Is { a , b } = { b , a }?
Is ( a , b ) = ( b , a )?
( a , b ) ≠ ( b , a )
What is the purpose for Relations and Cartesian Product Set?
Relation ( Is like asking a question like “Is it delicious to bake flour?” )
- (flour)R(bake) would be FALSE (just baked flour isn’t delicious)
Cartesian Product Set
A × B = {(flour, bake), (flour, fry), (sugar, bake), (sugar, fry), (eggs, bake), (eggs, fry)}
What does A x B means?
( Both A and B are sets )
What can A x A be represented as?
Given
A = { 1 , 2 }
B = { p , q }
A x B = { ( 1 , p ),( 1 , q ), ( 2 , p ), ( 2 , q ) }
Determine True / False
1. R₁ = { ( 1 , p ) }
2. R₂ = { ( 2, k ) }
3. R₃ = { ( 1 , q ) , ( 2 , p ) }
How to represent relations? ( 2 )
What is Domain of R?
What is the representation of Domain of R?
What is Range of R?
What is the representation of Range of R?
A = { Alice , Bob }
B = { CS101, CS102 }
R = { ( Alice , CS101 ) , ( Alice , CS102 ) , ( Bob , CS101 ) , ( Bob , CS102 ) }
Can you list out which is Domain and which is Relation?
How many elements that a relation on set A is a subset of A x A ?
The number of possible relations on set A = 2^3^2 ( 512 )
3 = { a , b , c }
2 = A x A ( 2 Sets )
What is an equivalence relation?
Let R be a relation of set A, how to determine that R is reflextive?
1, if ( a , a ) ∈ R for every element a ∈ A
( a , a )
* ( 1 , 1 ) , ( 2 , 2 ) , ( 3 , 3 )
Let R be a relation of set A, how to determine that R is symmetric?
( b , a ) must have ( a , b )
( 1 , 2 ) must have ( 2 , 1 )
( 3 , 4 ) must have ( 4 , 3 )
Let R be a relation of set A, how to determine that R is transitive?
( a , b ) and ( b , c ) must have ( a , c )
( 2 , 4 ) and ( 4 , 1 ) must have ( 2 , 1 )