Send Close Add comments: (status displays here)
Got it!  This site "robinsnyder.com" uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.  Note: This appears on each machine/browser from which this site is accessed.
Equivalence relations: math
by RS  admin@robinsnyder.com : 1024 x 640


1. Equivalence relations: math
Let us look at the mathematical concept of equivalence relations. The idea is based the concept of "equality".

2. Equality
What does it mean for two things to be "equal"? The idea of equivalence and equality depends on the definition of equality that is being used.

3. Declaration of Independence
Consider the part of the United States Declaration of Independence that goes as follows (July 4, 1776). This appears to say that all men (presumably mankind, one place for discussion) are created (how were they created, another place for discussion) "equal". Do they stay "equal". And so forth. Let us return the world of abstract mathematics (as symbol manipulation) and look at the concept of equivalence relations.

4. Relations
A mathematical "relation" is a comparison between two elements of a set (or population) where each comparison is either true or false. Consider the relation R as "is the same sex/gender as" when comparing two people. Let us assume that this is possible to do (perhaps in a possibly non-politically correct manner).

For example purposes, let us use the set (or population) of people in the audience.

5. Equivalence relation
An "equivalence relation" is a relation R on a set A that is reflexive, symmetric, and transitive.

6. Reflexive properties

7. Reflexive property
A relation R on set A is reflexive if for every x in A, x R x. Reflexive x and RThis can be written in mathematical form as follows.

Reflexive property
This is read as "for all x in (set) A, (condition) x R x (is true)"

8. Universal quantification
For allUniversal quantification involves "for all" within a certain domain set.

9. Peano: symbols
There exists Disjunction Conjunction For all

The "there exists" symbol "", and many others, were created by the Italian mathematician Giuseppe Peano (1858-1932), many by reversing letters or turning them upside down.

Peano created the "or" symbol as "" from the letter "v" starting the Latin word "vel""or". The "and" symbol "" is an upside down "or" symbol.

Other mathematicians then followed this convention in creating more symbols over time. One such symbol was the "for all" symbol "" first used in 1935 by logician Gerhard Gentzen (1909-1945) and called it, in German, "All-Zeichen", the "all character"

10. Example
An example is as follows.

Reflexive property
This is read as "for all x in the set 1, 3, 5, x is an add number"

11. Management
For all that you doRather than specify what one has done, management may generalize what you have done as "Thank you for all that you do".

Translation: It is too hard to actually determine what you did or list everything that you did. It is much less for us to make a vague general statement that covers everything that you might have done.

12. Math
Here is the math for "Thank you for all that you do".

For all that you do
The word "thank" is related to the word "think".

13. Reflexive laughing
Laugh at yourself
An example of a reflexive rule is the following. Being able to laugh at yourself is said to help one live longer.

Here, the "laugh at" relation is applied reflexively to itself. That is, relating "laugh at" from "you" to "you".

14. Not reflexive laughing
Laugh at spouse
Have you heard that laughing at your spouse may help shorten your life?

Here, the "laugh at" relation is not applied reflexively.

Information sign More: Reflexive property

15. Laughing summary
Laugh at yourself and spouseHere is the diagram to summarize these laughing ideas. The relation R as "is the same sex/gender as" is reflexive, since Does a rule apply to itself? If so, the rule is reflexive.

16. Self reference
self ruleAre you the same sex or gender, whatever that is, as yourself?

Except for negation, most logical (not human) rules are reflexive.

Do some people apply rules to others but not to themselves?

17. Do as I say
others ruleWhenever someone says, "Do as I say, not as I do" they are applying a rule to others but not to them-self. That is, the rule, to them, is not a reflexive rule. In such a case, one might call the person a "hypocrite" using the modern sense of the word.

18. Everyone do this
everone ruleThe pattern becomes more clear with a diagram. The rule applies to everyone, which includes self. Negation results in interesting ideas.

19. Symmetric property
A relation R on set A is symmetric if for every x and y in A, x R y implies that y R x. Symmetric x y and RThis can be written in mathematical form as follows.

Symmetric propertyThis is read as "for all x and y in (set) A, (condition) x R y implies (condition) y R x"

20. Symmetry
The relation R as "is the same sex/gender as" is symmetric, since Note that the relation applies both ways, since the elements identified by x and y can be reversed.

Does the rule go both ways? Is it a commutative property?

21. Commutativity
A commutative property is a rule where the order does not matter.

22. Addition
Addition and multiplication are commutative/symmetric operations where order does not matter.
2 + 3 = 5 3 + 2 = 5 2 * 3 = 6 3 * 2 = 6


23. Subtraction
Subtraction and division are non-commutative/non-symmetric operations where order does matter.
5 - 2 = 3 2 - 5 = -3 5 / 2 = 2.5 2 / 5 = 0.6


24. Transitive property
A relation R on set A is transitive if for every x, y, and z in A, x R y and y R z implies that x R z. Transitive x y z and RThis can be written in mathematical form as follows.

Transitive propertyThis is read as "for all x and y and z in (set) A, (condition) x R y and (condition) y R z implies (condition) x R z"

The symbol "" is read as "and" and means that both conditions must be true for the result to be true. The relation R as "is the same sex/gender ass" is transitive, since

25. Equivalence relation
A relation R on set A is an equivalence relation if the following properties hold. Equivalence classes reduce the amount of information that must be considered when working with properties of the set A.

26. Equivalence class methodology
The general approach to the equivalence class methodology is as follows.

27. Equivalence relation example
To review, here is the example. Then relation R is an equivalence relation on set A. Thus if we assume that there are two possible sexes or genders, then there are (at most) two possible equivalence sets in the set of people in the audience.

28. Degenerate cases: example
Degenerate cases should also be handled, such as zero or one piece of data.

What might I mean when I say that "rap music is a degenerate form of music"? If I assume that music consists of melody, harmony, and rhythm, then, since rap music consists of primarily rhythm without discernible melody or harmony, then it is a degenerate form of music since not all parts of music are present. That does not mean that it is bad, it just means that, from an analysis point of view, not all possible components of music, from the above definition, are present.

Note that a melody of all the same duration of note without harmony is also a degenerate form of music. A common error in computation (e.g., programming) is a failure to handle degenerate instances of the problem.

29. Degenerate cases
In the case of determining the rules for the relation, there are two degenerate cases (see above) that can arise when one cannot determine a definite rules. In the first case where everything is related to everything else, the relation is always true, so every element belongs to the same and only equivalence class - which may not very useful. In the second case where nothing is related to anything else, the relation is always false, so each element is not related to any other item, and so each element is a separate equivalence class - which may not be very useful.

30. Algorithms
There are computer algorithms that, given two sets and a relation definition will determine the equivalence classes. These can be somewhat involved, both in implementation and performance analysis, and are omitted here.

31. Union-find
In the well-known union-find problem, Find and Union are defined as follows.

32. Heuristics
The heuristics for the union-find algorithm are as follows.

The heuristic for a Union is to always merge the smaller tree into the larger tree. For this problem, one of the sets will be known to be the smallest tree (i.e., a singleton set).

The heuristic for a Find is that path compression is used in that once the root of the tree is found, the path is traversed a second time so that all elements in the path point to the root.

33. Complexity
The asymptotic worst-case complexity of the union-find algorithm, due to Tarjan, R. (1983). Data structures and network algorithms. Philadelphia, PA: Society for industrial and applied mathematics., is O((m+n) α(n)) where

34. Convex hull
Many solutions to the convex hull problem require handling the Union-Find problem.

35. Observations
Note that one must determine the precise rule or relation first and then apply it to the set or population to get the equivalence sets.

Note that any given element can belong to one and only one equivalence set - due to the reflexivity property.


36. End of page

by RS  admin@robinsnyder.com : 1024 x 640