SlideShare a Scribd company logo
1 of 12
Download to read offline
Unit-II Relation and Ordering
Rai University, Ahmedabad
RELATION AND ORDERING
COURSE-BCA
Subject- Discrete Mathematics
Unit-II
RAI UNIVERSITY, AHMEDABAD
Unit-II Relation and Ordering
Rai University, Ahmedabad
Relation and Ordering
The relation we are going to study here is an abstraction of relations we see in our everyday life
such as those between parent and child, between car and owner, among name, social security
number, address and telephone number etc.
A relation is a set of ordered pairs.
The first item in an ordered pair is identified as the domain. The second item in the ordered pair
is identified as the range. Let's take a look at a couple of examples:
e.g. (1)
We all know there is a relationship between a vehicle and the number of wheels that it contains.
A relation can be written in the form of a table:
e.g. (2)
Let's look at a more mathematical example.
The following is an algebraic relation that we will call B.
B :{( 2, 4) (3, 6) (4, 8) (5, 10)}
The domain is: 2, 3, 4, 5 (These are all the x values of the ordered pair)
The range is: 4, 6, 8, 10 (These are all the y values of the ordered pair)
Definition (binary relation):
A binary relation from a set A to a set B is a set of ordered pairs < , > where a is an element
of A and b is an element of B.
When an ordered pair < , > is in a relation R, we write a R b, or < , > ∈ R. It means that
Unit-II Relation and Ordering
Rai University, Ahmedabad
element a is related to element b in relation R.
When A = B, we call a relation from A to B a (binary) relation on A.
Different Types of Relations and Properties of Relation:
Let R be a relation on a set A.
Then R is said to be,
1. Reflexive:
If ∀ ∈ i.e., if ( , ) ∈ ∀ ∈ .
2. Symmetric:
If => i.e., if ( , ) ∈ => ( , ) ∈
3. Transitive:
If , => i.e., if ( , ) ∈ , ( , ) ∈ => ( , ) ∈
4. Antisymmetric:
If => = i.e., ( , ) ∈ ( , ) ∈ => =
Equivalence Relation:
A relation which is reflexive, symmetric and transitive is called the Equivalence relation.
i.e., A relation R in a set A is called equivalence if it satisfies the following conditions.
( , ) ∈ ∀ ∈ .
( , ) ∈ => ( , ) ∈
( , ) ∈ ( , ) ∈ => =
Remarks:
1. The smallest equivalence relation in set A is the relation of equality in A.
2. The largest equivalence relation in A is A x A.
Equivalence Classes:
The set of elements of S that are equivalent to each other is called an equivalence class. The
equivalence relation partitions the set S into mutually exclusive equivalence classes.
Unit-II Relation and Ordering
Rai University, Ahmedabad
The power of the concept of equivalence class is that operations can be defined on the
equivalence classes using representatives from each equivalence class. In order for these
operations to be well defined it is necessary that the results of the operations be independent of
the class representatives selected.
For fractions, ( / ) is equivalent to ( / ) if one can be represented in the form in which its
components are a constant multiple of the components of the other, say ( / ) = ( / ). This
is equivalent to ( / ) and ( / ) being equal if − = 0. Thus the equivalence classes are
such as
{1/2, 2/4, 3/6, … }
{2/3, 4/6, 6/9, … }
A rational number is then an equivalence class. It is only representated by its lowest or reduced
form. The equivalence class could equally well be represented by any other member.
Graph Of Relation and Relation Matrix:
Relations
 A binary relation R is a set of ordered pairs ( , ). Each element in an ordered pair is
drawn from a (potentially different) set. The ordered pairs relate the two sets: together,
they comprise a mapping, which is another name for a relation.
 Functions, like = 2 are relations. The equation notation is just short hand for
enumerating all the possible pairs in the relation (e.g., (1,2), (3,18), (-2,8), etc.).
 Social relations, which are at the heart of the network enterprise, correspond well to
mathematical relations. To represent a social relation, such as "is the boss of", as a
mathematical relation, we simply list all the ordered pairs:
(Mr. Big, John),
(Mr. Big, Sally),
(John, Billy),
(Sally, Peter),
(Sally, Mary),
(Mary, Falco)
Figure 1a. The "is the boss of" relation, Figure 1b. Same relation represented as a directed
Unit-II Relation and Ordering
Rai University, Ahmedabad
represented as a binary relation. graph.
Graphs
A graph G(V,E) is a set of vertices (V) together with a set of edges (E). Some synonyms:
Vertices Edges
Mathematics node, point line, arc, link
Sociology actor, agent Tie
We represent graphs iconically as points and lines, such shown in Figure 1b. It is important to
note that the location of points in space is arbitrary unless stated otherwise. This is because the
only information in a graph is who is connected to whom. Hence, another, equally valid way to
represent the graph in Figure 1 would be this:
All representations in which the right people are connected to the right others are equally valid.
Matrices
We can record who is connected to whom on a given social relation via an adjacency matrix. The
adjacency matrix is a square, 1-mode actor-by-actor matrix like this:
If We can record who is connected to whom on a given social relation via an adjacency matrix. The adjacency
matrix is a square, 1-mode actor-by-actor matrix like this:
Unit-II Relation and Ordering
Rai University, Ahmedabad
Andy Bill Carol Dan Elena Frank Gar
Andy 1 0 1 0 0 1
Bill 1 1 0 1 0 0
Carol 1 1 1 1 0 0
Dan 1 1 1 0 0 0
Elena 0 0 0 0 1 0
Frank 0 0 0 0 1 0
Garth 1 1 0 0 0 0
the matrix as a whole is called X, then the contents of any given cell are denoted xij. For
example, in the matrix above, xij = 1, because Andy likes Bill. Note that this matrix is not quite
symmetric (xij not always equal to xji).
Anything we can represent as a graph, we can also represent as a matrix. For example, if it is a
valued graph, then the matrix contains the values instead of 0s and 1s.
By convention, we normally record the data so that the row person "does it to" the column
person. For example, if the relation is "gives advice to", then xij = 1 means that person i gives
advice to person j, rather than the other way around. However, if the data not entered that way
and we wish it to be so, we can simply transpose the matrix. The transpose of a matrix X is
denoted X'. The transpose simply interchanges the rows with the columns.
Definition: Partition of a Set
A partition of a set X is a set of Nonempty Subsets of X such that every element x in X is in
exactly one of these subsets (i.e., X is a disjoint union of the subsets).
Equivalently, a family of sets P is a partition of X if and only if all of the following conditions
hold:
1. P does not contain the empty set.
2. The union of the sets in P is equal to X. (The sets in P are said to cover X.)
3. The intersection of any two distinct sets in P is empty. (We say the elements of P are pair
wise disjoint.)
Examples:
1. Every singleton set {x} has exactly one partition, namely { {x} }.
Unit-II Relation and Ordering
Rai University, Ahmedabad
2. For any nonempty set X, P = {X} is a partition of X, called the trivial partition.
3. For any non-empty proper subset A of a set U, the set A together with its complement
form a partition of U, namely, {A, U−A}.
Partial Ordering:
A relation R is a partial ordering if it is a pre-order
(i.e. it is reflexive ( ) and transitive ( => )) and it is also Antisymmetric
( => = ).
The ordering is partial, rather than total, because there may exist elements x and y for which
neither nor .
A lattice is a partial ordering where all finite subsets have a least upper bound and a greatest
lower bound.
Partial ordered Set:
A relation " " is a partial order on a set if it has:
1. Reflexivity: for all .
2. Antisymmetric: and implies .
3. Transitivity: and implies .
For a partial order, the size of the longest chain is called the partial order length (partial order
width). A partially ordered set is also called a poset.
Comparable Elements:
Suppose is a partial ordering on a nonempty set . Then the elements , ∈ are said to be
comparable provided ≤ or ≤ .
Because two elements in a partially ordered set need not be comparable, it is possible for a
partially ordered set to have more than one maximal element. For example, suppose we have a
nonempty partially ordered set in which every element is incomparable to every other element,
i.e., is totally unordered. It follows that every element of is maximal.
Chain:
Let be a finite partially ordered set. A chain in is a set of pair wise comparable elements (i.e.,
a totally ordered subset). The partial order length of is the maximum cardinal number of a
chain in . For a partial order, the size of the longest chain is called the partial order length.
Unit-II Relation and Ordering
Rai University, Ahmedabad
Cover of an element:
A family of nonempty subsets of whose union contains the given set (and which contains
no duplicated subsets) is called a cover (or covering) of .
For example, there is only a single cover of{1}, namely{{1}}. However, there are five covers
of{1,2}, namely {{1}, {2}}, {{1,2}}, {{1}, {1,2}}, {{2}, {1,2}}, and {{1}, {2}, {1,2}}.
Hasse Diagram:
A graphical rendering of a partially ordered set displayed via the cover relation of the partially
ordered set with an implied upward orientation. A point is drawn for each element of the poset,
and line segments are drawn between these points according to the following two rules:
1. If < in the poset, then the point corresponding to appears lower in the drawing than the
point corresponding to .
2. The line segment between the points corresponding to any two elements and of the poset is
included in the drawing iff covers or covers .
Example for,
1. Draw the hasse diagram for the set A = (a, b, c)
2. Let = { 1,2,3,9,18} and for any , ∈ , ≤ / .
Greatest Element:
The greatest element of a subset S of a partially ordered set (poset) is an element of S that is
greater than every other element of S.
Least Element:
Unit-II Relation and Ordering
Rai University, Ahmedabad
The term least element of a subset S of a partially ordered set (Poset) is an element of S that is
smaller than every other element of S.
Maximal Elements:
An element M in E is called a maximal element in E if there exist no ∈ such that M < .
Minimal Elements:
An element m in E is called a minimal element in E if there exist no ∈ such that < .
OR
A maximal element is an element such that there is no with > .
A minimal element is an element such that there is no with < .
A greatest element is an element such that, for al , ≤ .
A least element is an element such that, for all , ≥ .
Note:
A greatest element is necessarily a maximal element, and a least element is necessarily a minimal
element, but a maximal element is not a greatest element unless it is comparable to every other
element. Likewise, a minimal element is not a least element unless it is comparable to every
other element.
Upper bound of POSET:
The Upper bound of a subset S of some partially ordered set (K, ≤) is an element of K which is
greater than or equal to every element of S
A set with an upper bound is said to be bounded from above by that bound
Lower bound of POSET:
The lower bound of a subset S of some partially ordered set (K, ≤) is an element of K which is
less than or equal to every element of S.
A set with a lower bound is said to be bounded from below by that bound.
Example—
We have set A = {5,10,34,13934}
5 is a lower bound for the set {5, 10, 34, 13934}, but 8 is not.
Unit-II Relation and Ordering
Rai University, Ahmedabad
42 is both an upper and a lower bound for the set {42};
All other numbers are either an upper bound or a lower bound for that set.
Example—
World’s strongest man claims he can lift 70kg with his little finger rounded to the nearest 10kg.
What is the smallest amount he can lift?
Here we have to think of all the numbers that can be rounded up to give 70. A number line would
be useful here to observe these numbers.
Numbers shown in red can be rounded up to give 70. This means the smallest amount the
world’s strongest man claims to lift is 65kg which is the smallest number shown on the number
line. This number is called the lower bound How about the greatest amount that he can lift?
Here we need to think about the numbers that can round down to give 70. These numbers have
been indicated on the number line below.
These numbers are between 70 and 74.99999999… and so on. Notice that 75 is not included as
this would round to 80. The world’s strongest man claims to lift a greatest amount of 74. This is
called the upper bound. If you looked carefully about you will have realised that to find the upper
and lower bounds of a number rounded to the nearest 10 you could divide 10 by 2 and then add
or subtract from 70 to find the upper and lower bound as shown below. Find the upper and lower
bounds of 70 rounded off to the nearest 10.
Upper bound 75 +5
70 10
Lower bound 65 -5
Unit-II Relation and Ordering
Rai University, Ahmedabad
References:
1. http://www.cs.odu.edu/~toida/nerzic/content/relation/definition/definition.html
2. http://www.algebra-class.com/algebraic-relations.html
3. http://math.tutorvista.com/discrete-math/types-of-relations.html
4. http://www.analytictech.com/networks/graphs.htm
5. http://www.applet-magic.com/equivalence.htm
6. http://mathworld.wolfram.com/PartialOrder.html
7. http://dictionary.reference.com/browse/partial+ordering
8. http://mathworld.wolfram.com/ComparableElements.html
9. http://mathworld.wolfram.com/Chain.html
10. http://mathworld.wolfram.com/Cover.html
11. data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAA
ABAAEAAAICRAEAOw==
12. http://mathematicsi.com/upper-and-lower-bounds/
Unit-II Relation and Ordering
Rai University, Ahmedabad

More Related Content

What's hot

Space complexity-DAA.pptx
Space complexity-DAA.pptxSpace complexity-DAA.pptx
Space complexity-DAA.pptxmounikanarra3
 
R Programming: Introduction To R Packages
R Programming: Introduction To R PackagesR Programming: Introduction To R Packages
R Programming: Introduction To R PackagesRsquared Academy
 
Python program For O level Practical
Python program For O level Practical Python program For O level Practical
Python program For O level Practical pavitrakumar18
 
Design issues with constraints of E-R model
Design issues with constraints of E-R modelDesign issues with constraints of E-R model
Design issues with constraints of E-R modelPaurav Shah
 
Input output statement in C
Input output statement in CInput output statement in C
Input output statement in CMuthuganesh S
 
Expression and Operartor In C Programming
Expression and Operartor In C Programming Expression and Operartor In C Programming
Expression and Operartor In C Programming Kamal Acharya
 
String Manipulation in Python
String Manipulation in PythonString Manipulation in Python
String Manipulation in PythonPooja B S
 
2. operators in c
2. operators in c2. operators in c
2. operators in camar kakde
 
BCA_Semester-I_Mathematics-I_Set theory and function
BCA_Semester-I_Mathematics-I_Set theory and functionBCA_Semester-I_Mathematics-I_Set theory and function
BCA_Semester-I_Mathematics-I_Set theory and functionRai University
 
Variables in C Programming
Variables in C ProgrammingVariables in C Programming
Variables in C Programmingprogramming9
 
Dynamic memory allocation in c++
Dynamic memory allocation in c++Dynamic memory allocation in c++
Dynamic memory allocation in c++Tech_MX
 
Two dimensional array
Two dimensional arrayTwo dimensional array
Two dimensional arrayRajendran
 
Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematicsRachana Pathak
 

What's hot (20)

Space complexity-DAA.pptx
Space complexity-DAA.pptxSpace complexity-DAA.pptx
Space complexity-DAA.pptx
 
R Programming: Introduction To R Packages
R Programming: Introduction To R PackagesR Programming: Introduction To R Packages
R Programming: Introduction To R Packages
 
Space Complexity in Data Structure.docx
Space Complexity in Data Structure.docxSpace Complexity in Data Structure.docx
Space Complexity in Data Structure.docx
 
Python program For O level Practical
Python program For O level Practical Python program For O level Practical
Python program For O level Practical
 
Design issues with constraints of E-R model
Design issues with constraints of E-R modelDesign issues with constraints of E-R model
Design issues with constraints of E-R model
 
Input output statement in C
Input output statement in CInput output statement in C
Input output statement in C
 
Features of c
Features of cFeatures of c
Features of c
 
Expression and Operartor In C Programming
Expression and Operartor In C Programming Expression and Operartor In C Programming
Expression and Operartor In C Programming
 
String Manipulation in Python
String Manipulation in PythonString Manipulation in Python
String Manipulation in Python
 
Chapter 08 data file handling
Chapter 08 data file handlingChapter 08 data file handling
Chapter 08 data file handling
 
Operator overloading
Operator overloadingOperator overloading
Operator overloading
 
php
phpphp
php
 
String in c
String in cString in c
String in c
 
2. operators in c
2. operators in c2. operators in c
2. operators in c
 
Sets in discrete mathematics
Sets in discrete mathematicsSets in discrete mathematics
Sets in discrete mathematics
 
BCA_Semester-I_Mathematics-I_Set theory and function
BCA_Semester-I_Mathematics-I_Set theory and functionBCA_Semester-I_Mathematics-I_Set theory and function
BCA_Semester-I_Mathematics-I_Set theory and function
 
Variables in C Programming
Variables in C ProgrammingVariables in C Programming
Variables in C Programming
 
Dynamic memory allocation in c++
Dynamic memory allocation in c++Dynamic memory allocation in c++
Dynamic memory allocation in c++
 
Two dimensional array
Two dimensional arrayTwo dimensional array
Two dimensional array
 
Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematics
 

Viewers also liked

BCA_Semester-II-Discrete Mathematics_unit-i Group theory
BCA_Semester-II-Discrete Mathematics_unit-i Group theoryBCA_Semester-II-Discrete Mathematics_unit-i Group theory
BCA_Semester-II-Discrete Mathematics_unit-i Group theoryRai University
 
Discrete maths tutorials
Discrete maths tutorialsDiscrete maths tutorials
Discrete maths tutorialsDIT University
 
Ch 2 lattice & boolean algebra
Ch 2 lattice & boolean algebraCh 2 lattice & boolean algebra
Ch 2 lattice & boolean algebraRupali Rana
 
BCA_Semester-II-Discrete Mathematics_unit-iv Graph theory
BCA_Semester-II-Discrete Mathematics_unit-iv Graph theoryBCA_Semester-II-Discrete Mathematics_unit-iv Graph theory
BCA_Semester-II-Discrete Mathematics_unit-iv Graph theoryRai University
 
B.tech ii unit-5 material vector integration
B.tech ii unit-5 material vector integrationB.tech ii unit-5 material vector integration
B.tech ii unit-5 material vector integrationRai University
 
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICSRai University
 
B.Tech-II_Unit-III
B.Tech-II_Unit-IIIB.Tech-II_Unit-III
B.Tech-II_Unit-IIIKundan Kumar
 
Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5Rai University
 
B.tech ii unit-4 material vector differentiation
B.tech ii unit-4 material vector differentiationB.tech ii unit-4 material vector differentiation
B.tech ii unit-4 material vector differentiationRai University
 
Btech_II_ engineering mathematics_unit4
Btech_II_ engineering mathematics_unit4Btech_II_ engineering mathematics_unit4
Btech_II_ engineering mathematics_unit4Rai University
 
BSC_Computer Science_Discrete Mathematics_Unit-I
BSC_Computer Science_Discrete Mathematics_Unit-IBSC_Computer Science_Discrete Mathematics_Unit-I
BSC_Computer Science_Discrete Mathematics_Unit-IRai University
 
Btech_II_ engineering mathematics_unit2
Btech_II_ engineering mathematics_unit2Btech_II_ engineering mathematics_unit2
Btech_II_ engineering mathematics_unit2Rai University
 
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICSRai University
 
BSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICSRai University
 
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICSRai University
 

Viewers also liked (20)

BCA_Semester-II-Discrete Mathematics_unit-i Group theory
BCA_Semester-II-Discrete Mathematics_unit-i Group theoryBCA_Semester-II-Discrete Mathematics_unit-i Group theory
BCA_Semester-II-Discrete Mathematics_unit-i Group theory
 
Discrete maths tutorials
Discrete maths tutorialsDiscrete maths tutorials
Discrete maths tutorials
 
Ch 2 lattice & boolean algebra
Ch 2 lattice & boolean algebraCh 2 lattice & boolean algebra
Ch 2 lattice & boolean algebra
 
Unit 1 Introduction
Unit 1 IntroductionUnit 1 Introduction
Unit 1 Introduction
 
BCA_Semester-II-Discrete Mathematics_unit-iv Graph theory
BCA_Semester-II-Discrete Mathematics_unit-iv Graph theoryBCA_Semester-II-Discrete Mathematics_unit-iv Graph theory
BCA_Semester-II-Discrete Mathematics_unit-iv Graph theory
 
B.tech ii unit-5 material vector integration
B.tech ii unit-5 material vector integrationB.tech ii unit-5 material vector integration
B.tech ii unit-5 material vector integration
 
B.Tech-II_Unit-I
B.Tech-II_Unit-IB.Tech-II_Unit-I
B.Tech-II_Unit-I
 
B.Tech-II_Unit-V
B.Tech-II_Unit-VB.Tech-II_Unit-V
B.Tech-II_Unit-V
 
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
 
B.Tech-II_Unit-III
B.Tech-II_Unit-IIIB.Tech-II_Unit-III
B.Tech-II_Unit-III
 
Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5
 
B.tech ii unit-4 material vector differentiation
B.tech ii unit-4 material vector differentiationB.tech ii unit-4 material vector differentiation
B.tech ii unit-4 material vector differentiation
 
Btech_II_ engineering mathematics_unit4
Btech_II_ engineering mathematics_unit4Btech_II_ engineering mathematics_unit4
Btech_II_ engineering mathematics_unit4
 
B.Tech-II_Unit-IV
B.Tech-II_Unit-IVB.Tech-II_Unit-IV
B.Tech-II_Unit-IV
 
BSC_Computer Science_Discrete Mathematics_Unit-I
BSC_Computer Science_Discrete Mathematics_Unit-IBSC_Computer Science_Discrete Mathematics_Unit-I
BSC_Computer Science_Discrete Mathematics_Unit-I
 
merged_document
merged_documentmerged_document
merged_document
 
Btech_II_ engineering mathematics_unit2
Btech_II_ engineering mathematics_unit2Btech_II_ engineering mathematics_unit2
Btech_II_ engineering mathematics_unit2
 
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
 
BSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-4_DISCRETE MATHEMATICS
 
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
 

Similar to BCA_Semester-II-Discrete Mathematics_unit-ii_Relation and ordering

Ncert class-12-mathematics-part-1
Ncert class-12-mathematics-part-1Ncert class-12-mathematics-part-1
Ncert class-12-mathematics-part-1RAHUL SINGH
 
basics of autometa theory for beginner .
basics of autometa theory for beginner .basics of autometa theory for beginner .
basics of autometa theory for beginner .NivaTripathy1
 
Power point for Theory of computation and detail
Power point for Theory of computation and detailPower point for Theory of computation and detail
Power point for Theory of computation and detailNivaTripathy1
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Himanshu Dua
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Himanshu Dua
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Himanshu Dua
 
Maths Project 11 class(SETS)
Maths Project 11 class(SETS)Maths Project 11 class(SETS)
Maths Project 11 class(SETS)Sahil Mehra
 
GRAPH MATRIX APPLICATIONS.pdf
GRAPH MATRIX APPLICATIONS.pdfGRAPH MATRIX APPLICATIONS.pdf
GRAPH MATRIX APPLICATIONS.pdfDurgaPrasad736072
 
Relations & Functions.pptx
Relations & Functions.pptxRelations & Functions.pptx
Relations & Functions.pptxRydaS1
 
Relations
RelationsRelations
RelationsGaditek
 
Functions And Relations
Functions And RelationsFunctions And Relations
Functions And Relationsandrewhickson
 
Relation and function
Relation and functionRelation and function
Relation and functionAadityaGera
 

Similar to BCA_Semester-II-Discrete Mathematics_unit-ii_Relation and ordering (20)

Lemh101
Lemh101Lemh101
Lemh101
 
Ncert class-12-mathematics-part-1
Ncert class-12-mathematics-part-1Ncert class-12-mathematics-part-1
Ncert class-12-mathematics-part-1
 
basics of autometa theory for beginner .
basics of autometa theory for beginner .basics of autometa theory for beginner .
basics of autometa theory for beginner .
 
Power point for Theory of computation and detail
Power point for Theory of computation and detailPower point for Theory of computation and detail
Power point for Theory of computation and detail
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
Maths Project 11 class(SETS)
Maths Project 11 class(SETS)Maths Project 11 class(SETS)
Maths Project 11 class(SETS)
 
Relation and functions
Relation and functionsRelation and functions
Relation and functions
 
Sets and relations
Sets and relationsSets and relations
Sets and relations
 
GRAPH MATRIX APPLICATIONS.pdf
GRAPH MATRIX APPLICATIONS.pdfGRAPH MATRIX APPLICATIONS.pdf
GRAPH MATRIX APPLICATIONS.pdf
 
Relations & Functions.pptx
Relations & Functions.pptxRelations & Functions.pptx
Relations & Functions.pptx
 
Relations and Functions 2
Relations and Functions 2Relations and Functions 2
Relations and Functions 2
 
Relations
RelationsRelations
Relations
 
Relations and functions
Relations and functionsRelations and functions
Relations and functions
 
Relation and function_xii
Relation and function_xiiRelation and function_xii
Relation and function_xii
 
Functions And Relations
Functions And RelationsFunctions And Relations
Functions And Relations
 
Relations
RelationsRelations
Relations
 
Relation and function
Relation and functionRelation and function
Relation and function
 
Relations
RelationsRelations
Relations
 

More from Rai University

Brochure Rai University
Brochure Rai University Brochure Rai University
Brochure Rai University Rai University
 
Bdft ii, tmt, unit-iii, dyeing & types of dyeing,
Bdft ii, tmt, unit-iii,  dyeing & types of dyeing,Bdft ii, tmt, unit-iii,  dyeing & types of dyeing,
Bdft ii, tmt, unit-iii, dyeing & types of dyeing,Rai University
 
Bsc agri 2 pae u-4.4 publicrevenue-presentation-130208082149-phpapp02
Bsc agri  2 pae  u-4.4 publicrevenue-presentation-130208082149-phpapp02Bsc agri  2 pae  u-4.4 publicrevenue-presentation-130208082149-phpapp02
Bsc agri 2 pae u-4.4 publicrevenue-presentation-130208082149-phpapp02Rai University
 
Bsc agri 2 pae u-4.3 public expenditure
Bsc agri  2 pae  u-4.3 public expenditureBsc agri  2 pae  u-4.3 public expenditure
Bsc agri 2 pae u-4.3 public expenditureRai University
 
Bsc agri 2 pae u-4.2 public finance
Bsc agri  2 pae  u-4.2 public financeBsc agri  2 pae  u-4.2 public finance
Bsc agri 2 pae u-4.2 public financeRai University
 
Bsc agri 2 pae u-4.1 introduction
Bsc agri  2 pae  u-4.1 introductionBsc agri  2 pae  u-4.1 introduction
Bsc agri 2 pae u-4.1 introductionRai University
 
Bsc agri 2 pae u-3.3 inflation
Bsc agri  2 pae  u-3.3  inflationBsc agri  2 pae  u-3.3  inflation
Bsc agri 2 pae u-3.3 inflationRai University
 
Bsc agri 2 pae u-3.2 introduction to macro economics
Bsc agri  2 pae  u-3.2 introduction to macro economicsBsc agri  2 pae  u-3.2 introduction to macro economics
Bsc agri 2 pae u-3.2 introduction to macro economicsRai University
 
Bsc agri 2 pae u-3.1 marketstructure
Bsc agri  2 pae  u-3.1 marketstructureBsc agri  2 pae  u-3.1 marketstructure
Bsc agri 2 pae u-3.1 marketstructureRai University
 
Bsc agri 2 pae u-3 perfect-competition
Bsc agri  2 pae  u-3 perfect-competitionBsc agri  2 pae  u-3 perfect-competition
Bsc agri 2 pae u-3 perfect-competitionRai University
 

More from Rai University (20)

Brochure Rai University
Brochure Rai University Brochure Rai University
Brochure Rai University
 
Mm unit 4point2
Mm unit 4point2Mm unit 4point2
Mm unit 4point2
 
Mm unit 4point1
Mm unit 4point1Mm unit 4point1
Mm unit 4point1
 
Mm unit 4point3
Mm unit 4point3Mm unit 4point3
Mm unit 4point3
 
Mm unit 3point2
Mm unit 3point2Mm unit 3point2
Mm unit 3point2
 
Mm unit 3point1
Mm unit 3point1Mm unit 3point1
Mm unit 3point1
 
Mm unit 2point2
Mm unit 2point2Mm unit 2point2
Mm unit 2point2
 
Mm unit 2 point 1
Mm unit 2 point 1Mm unit 2 point 1
Mm unit 2 point 1
 
Mm unit 1point3
Mm unit 1point3Mm unit 1point3
Mm unit 1point3
 
Mm unit 1point2
Mm unit 1point2Mm unit 1point2
Mm unit 1point2
 
Mm unit 1point1
Mm unit 1point1Mm unit 1point1
Mm unit 1point1
 
Bdft ii, tmt, unit-iii, dyeing & types of dyeing,
Bdft ii, tmt, unit-iii,  dyeing & types of dyeing,Bdft ii, tmt, unit-iii,  dyeing & types of dyeing,
Bdft ii, tmt, unit-iii, dyeing & types of dyeing,
 
Bsc agri 2 pae u-4.4 publicrevenue-presentation-130208082149-phpapp02
Bsc agri  2 pae  u-4.4 publicrevenue-presentation-130208082149-phpapp02Bsc agri  2 pae  u-4.4 publicrevenue-presentation-130208082149-phpapp02
Bsc agri 2 pae u-4.4 publicrevenue-presentation-130208082149-phpapp02
 
Bsc agri 2 pae u-4.3 public expenditure
Bsc agri  2 pae  u-4.3 public expenditureBsc agri  2 pae  u-4.3 public expenditure
Bsc agri 2 pae u-4.3 public expenditure
 
Bsc agri 2 pae u-4.2 public finance
Bsc agri  2 pae  u-4.2 public financeBsc agri  2 pae  u-4.2 public finance
Bsc agri 2 pae u-4.2 public finance
 
Bsc agri 2 pae u-4.1 introduction
Bsc agri  2 pae  u-4.1 introductionBsc agri  2 pae  u-4.1 introduction
Bsc agri 2 pae u-4.1 introduction
 
Bsc agri 2 pae u-3.3 inflation
Bsc agri  2 pae  u-3.3  inflationBsc agri  2 pae  u-3.3  inflation
Bsc agri 2 pae u-3.3 inflation
 
Bsc agri 2 pae u-3.2 introduction to macro economics
Bsc agri  2 pae  u-3.2 introduction to macro economicsBsc agri  2 pae  u-3.2 introduction to macro economics
Bsc agri 2 pae u-3.2 introduction to macro economics
 
Bsc agri 2 pae u-3.1 marketstructure
Bsc agri  2 pae  u-3.1 marketstructureBsc agri  2 pae  u-3.1 marketstructure
Bsc agri 2 pae u-3.1 marketstructure
 
Bsc agri 2 pae u-3 perfect-competition
Bsc agri  2 pae  u-3 perfect-competitionBsc agri  2 pae  u-3 perfect-competition
Bsc agri 2 pae u-3 perfect-competition
 

Recently uploaded

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

BCA_Semester-II-Discrete Mathematics_unit-ii_Relation and ordering

  • 1. Unit-II Relation and Ordering Rai University, Ahmedabad RELATION AND ORDERING COURSE-BCA Subject- Discrete Mathematics Unit-II RAI UNIVERSITY, AHMEDABAD
  • 2. Unit-II Relation and Ordering Rai University, Ahmedabad Relation and Ordering The relation we are going to study here is an abstraction of relations we see in our everyday life such as those between parent and child, between car and owner, among name, social security number, address and telephone number etc. A relation is a set of ordered pairs. The first item in an ordered pair is identified as the domain. The second item in the ordered pair is identified as the range. Let's take a look at a couple of examples: e.g. (1) We all know there is a relationship between a vehicle and the number of wheels that it contains. A relation can be written in the form of a table: e.g. (2) Let's look at a more mathematical example. The following is an algebraic relation that we will call B. B :{( 2, 4) (3, 6) (4, 8) (5, 10)} The domain is: 2, 3, 4, 5 (These are all the x values of the ordered pair) The range is: 4, 6, 8, 10 (These are all the y values of the ordered pair) Definition (binary relation): A binary relation from a set A to a set B is a set of ordered pairs < , > where a is an element of A and b is an element of B. When an ordered pair < , > is in a relation R, we write a R b, or < , > ∈ R. It means that
  • 3. Unit-II Relation and Ordering Rai University, Ahmedabad element a is related to element b in relation R. When A = B, we call a relation from A to B a (binary) relation on A. Different Types of Relations and Properties of Relation: Let R be a relation on a set A. Then R is said to be, 1. Reflexive: If ∀ ∈ i.e., if ( , ) ∈ ∀ ∈ . 2. Symmetric: If => i.e., if ( , ) ∈ => ( , ) ∈ 3. Transitive: If , => i.e., if ( , ) ∈ , ( , ) ∈ => ( , ) ∈ 4. Antisymmetric: If => = i.e., ( , ) ∈ ( , ) ∈ => = Equivalence Relation: A relation which is reflexive, symmetric and transitive is called the Equivalence relation. i.e., A relation R in a set A is called equivalence if it satisfies the following conditions. ( , ) ∈ ∀ ∈ . ( , ) ∈ => ( , ) ∈ ( , ) ∈ ( , ) ∈ => = Remarks: 1. The smallest equivalence relation in set A is the relation of equality in A. 2. The largest equivalence relation in A is A x A. Equivalence Classes: The set of elements of S that are equivalent to each other is called an equivalence class. The equivalence relation partitions the set S into mutually exclusive equivalence classes.
  • 4. Unit-II Relation and Ordering Rai University, Ahmedabad The power of the concept of equivalence class is that operations can be defined on the equivalence classes using representatives from each equivalence class. In order for these operations to be well defined it is necessary that the results of the operations be independent of the class representatives selected. For fractions, ( / ) is equivalent to ( / ) if one can be represented in the form in which its components are a constant multiple of the components of the other, say ( / ) = ( / ). This is equivalent to ( / ) and ( / ) being equal if − = 0. Thus the equivalence classes are such as {1/2, 2/4, 3/6, … } {2/3, 4/6, 6/9, … } A rational number is then an equivalence class. It is only representated by its lowest or reduced form. The equivalence class could equally well be represented by any other member. Graph Of Relation and Relation Matrix: Relations  A binary relation R is a set of ordered pairs ( , ). Each element in an ordered pair is drawn from a (potentially different) set. The ordered pairs relate the two sets: together, they comprise a mapping, which is another name for a relation.  Functions, like = 2 are relations. The equation notation is just short hand for enumerating all the possible pairs in the relation (e.g., (1,2), (3,18), (-2,8), etc.).  Social relations, which are at the heart of the network enterprise, correspond well to mathematical relations. To represent a social relation, such as "is the boss of", as a mathematical relation, we simply list all the ordered pairs: (Mr. Big, John), (Mr. Big, Sally), (John, Billy), (Sally, Peter), (Sally, Mary), (Mary, Falco) Figure 1a. The "is the boss of" relation, Figure 1b. Same relation represented as a directed
  • 5. Unit-II Relation and Ordering Rai University, Ahmedabad represented as a binary relation. graph. Graphs A graph G(V,E) is a set of vertices (V) together with a set of edges (E). Some synonyms: Vertices Edges Mathematics node, point line, arc, link Sociology actor, agent Tie We represent graphs iconically as points and lines, such shown in Figure 1b. It is important to note that the location of points in space is arbitrary unless stated otherwise. This is because the only information in a graph is who is connected to whom. Hence, another, equally valid way to represent the graph in Figure 1 would be this: All representations in which the right people are connected to the right others are equally valid. Matrices We can record who is connected to whom on a given social relation via an adjacency matrix. The adjacency matrix is a square, 1-mode actor-by-actor matrix like this: If We can record who is connected to whom on a given social relation via an adjacency matrix. The adjacency matrix is a square, 1-mode actor-by-actor matrix like this:
  • 6. Unit-II Relation and Ordering Rai University, Ahmedabad Andy Bill Carol Dan Elena Frank Gar Andy 1 0 1 0 0 1 Bill 1 1 0 1 0 0 Carol 1 1 1 1 0 0 Dan 1 1 1 0 0 0 Elena 0 0 0 0 1 0 Frank 0 0 0 0 1 0 Garth 1 1 0 0 0 0 the matrix as a whole is called X, then the contents of any given cell are denoted xij. For example, in the matrix above, xij = 1, because Andy likes Bill. Note that this matrix is not quite symmetric (xij not always equal to xji). Anything we can represent as a graph, we can also represent as a matrix. For example, if it is a valued graph, then the matrix contains the values instead of 0s and 1s. By convention, we normally record the data so that the row person "does it to" the column person. For example, if the relation is "gives advice to", then xij = 1 means that person i gives advice to person j, rather than the other way around. However, if the data not entered that way and we wish it to be so, we can simply transpose the matrix. The transpose of a matrix X is denoted X'. The transpose simply interchanges the rows with the columns. Definition: Partition of a Set A partition of a set X is a set of Nonempty Subsets of X such that every element x in X is in exactly one of these subsets (i.e., X is a disjoint union of the subsets). Equivalently, a family of sets P is a partition of X if and only if all of the following conditions hold: 1. P does not contain the empty set. 2. The union of the sets in P is equal to X. (The sets in P are said to cover X.) 3. The intersection of any two distinct sets in P is empty. (We say the elements of P are pair wise disjoint.) Examples: 1. Every singleton set {x} has exactly one partition, namely { {x} }.
  • 7. Unit-II Relation and Ordering Rai University, Ahmedabad 2. For any nonempty set X, P = {X} is a partition of X, called the trivial partition. 3. For any non-empty proper subset A of a set U, the set A together with its complement form a partition of U, namely, {A, U−A}. Partial Ordering: A relation R is a partial ordering if it is a pre-order (i.e. it is reflexive ( ) and transitive ( => )) and it is also Antisymmetric ( => = ). The ordering is partial, rather than total, because there may exist elements x and y for which neither nor . A lattice is a partial ordering where all finite subsets have a least upper bound and a greatest lower bound. Partial ordered Set: A relation " " is a partial order on a set if it has: 1. Reflexivity: for all . 2. Antisymmetric: and implies . 3. Transitivity: and implies . For a partial order, the size of the longest chain is called the partial order length (partial order width). A partially ordered set is also called a poset. Comparable Elements: Suppose is a partial ordering on a nonempty set . Then the elements , ∈ are said to be comparable provided ≤ or ≤ . Because two elements in a partially ordered set need not be comparable, it is possible for a partially ordered set to have more than one maximal element. For example, suppose we have a nonempty partially ordered set in which every element is incomparable to every other element, i.e., is totally unordered. It follows that every element of is maximal. Chain: Let be a finite partially ordered set. A chain in is a set of pair wise comparable elements (i.e., a totally ordered subset). The partial order length of is the maximum cardinal number of a chain in . For a partial order, the size of the longest chain is called the partial order length.
  • 8. Unit-II Relation and Ordering Rai University, Ahmedabad Cover of an element: A family of nonempty subsets of whose union contains the given set (and which contains no duplicated subsets) is called a cover (or covering) of . For example, there is only a single cover of{1}, namely{{1}}. However, there are five covers of{1,2}, namely {{1}, {2}}, {{1,2}}, {{1}, {1,2}}, {{2}, {1,2}}, and {{1}, {2}, {1,2}}. Hasse Diagram: A graphical rendering of a partially ordered set displayed via the cover relation of the partially ordered set with an implied upward orientation. A point is drawn for each element of the poset, and line segments are drawn between these points according to the following two rules: 1. If < in the poset, then the point corresponding to appears lower in the drawing than the point corresponding to . 2. The line segment between the points corresponding to any two elements and of the poset is included in the drawing iff covers or covers . Example for, 1. Draw the hasse diagram for the set A = (a, b, c) 2. Let = { 1,2,3,9,18} and for any , ∈ , ≤ / . Greatest Element: The greatest element of a subset S of a partially ordered set (poset) is an element of S that is greater than every other element of S. Least Element:
  • 9. Unit-II Relation and Ordering Rai University, Ahmedabad The term least element of a subset S of a partially ordered set (Poset) is an element of S that is smaller than every other element of S. Maximal Elements: An element M in E is called a maximal element in E if there exist no ∈ such that M < . Minimal Elements: An element m in E is called a minimal element in E if there exist no ∈ such that < . OR A maximal element is an element such that there is no with > . A minimal element is an element such that there is no with < . A greatest element is an element such that, for al , ≤ . A least element is an element such that, for all , ≥ . Note: A greatest element is necessarily a maximal element, and a least element is necessarily a minimal element, but a maximal element is not a greatest element unless it is comparable to every other element. Likewise, a minimal element is not a least element unless it is comparable to every other element. Upper bound of POSET: The Upper bound of a subset S of some partially ordered set (K, ≤) is an element of K which is greater than or equal to every element of S A set with an upper bound is said to be bounded from above by that bound Lower bound of POSET: The lower bound of a subset S of some partially ordered set (K, ≤) is an element of K which is less than or equal to every element of S. A set with a lower bound is said to be bounded from below by that bound. Example— We have set A = {5,10,34,13934} 5 is a lower bound for the set {5, 10, 34, 13934}, but 8 is not.
  • 10. Unit-II Relation and Ordering Rai University, Ahmedabad 42 is both an upper and a lower bound for the set {42}; All other numbers are either an upper bound or a lower bound for that set. Example— World’s strongest man claims he can lift 70kg with his little finger rounded to the nearest 10kg. What is the smallest amount he can lift? Here we have to think of all the numbers that can be rounded up to give 70. A number line would be useful here to observe these numbers. Numbers shown in red can be rounded up to give 70. This means the smallest amount the world’s strongest man claims to lift is 65kg which is the smallest number shown on the number line. This number is called the lower bound How about the greatest amount that he can lift? Here we need to think about the numbers that can round down to give 70. These numbers have been indicated on the number line below. These numbers are between 70 and 74.99999999… and so on. Notice that 75 is not included as this would round to 80. The world’s strongest man claims to lift a greatest amount of 74. This is called the upper bound. If you looked carefully about you will have realised that to find the upper and lower bounds of a number rounded to the nearest 10 you could divide 10 by 2 and then add or subtract from 70 to find the upper and lower bound as shown below. Find the upper and lower bounds of 70 rounded off to the nearest 10. Upper bound 75 +5 70 10 Lower bound 65 -5
  • 11. Unit-II Relation and Ordering Rai University, Ahmedabad References: 1. http://www.cs.odu.edu/~toida/nerzic/content/relation/definition/definition.html 2. http://www.algebra-class.com/algebraic-relations.html 3. http://math.tutorvista.com/discrete-math/types-of-relations.html 4. http://www.analytictech.com/networks/graphs.htm 5. http://www.applet-magic.com/equivalence.htm 6. http://mathworld.wolfram.com/PartialOrder.html 7. http://dictionary.reference.com/browse/partial+ordering 8. http://mathworld.wolfram.com/ComparableElements.html 9. http://mathworld.wolfram.com/Chain.html 10. http://mathworld.wolfram.com/Cover.html 11. data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAA ABAAEAAAICRAEAOw== 12. http://mathematicsi.com/upper-and-lower-bounds/
  • 12. Unit-II Relation and Ordering Rai University, Ahmedabad