Orders and Equivalences

Similar documents
Operations on Sets. Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) August 6, 2012

SEVENTH EDITION and EXPANDED SEVENTH EDITION

Relations. Relations. Definition. Let A and B be sets.

Relations. Binary Relation. Let A and B be sets. A (binary) relation from A to B is a subset of A B. Notation. Let R A B be a relation from A to B.

CSE 20 DISCRETE MATH. Winter

CSE 20 DISCRETE MATH. Fall

Part V. Chapter 19. Congruence of integers

1.4 Equivalence Relations and Partitions

14 Equivalence Relations

Mathematics 220 Homework 4 - Solutions. Solution: We must prove the two statements: (1) if A = B, then A B = A B, and (2) if A B = A B, then A = B.

EQUIVALENCE RELATIONS (NOTES FOR STUDENTS) 1. RELATIONS

4. Congruence Classes

Chapter 1 : The language of mathematics.

CSE 20 DISCRETE MATH. Winter

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

Equivalence relations

5. Partitions and Relations Ch.22 of PJE.

Chapter 2 - Relations

2 Equivalence Relations

3.7 Non-linear Diophantine Equations

Relations. We have seen several types of abstract, mathematical objects, including propositions, predicates, sets, and ordered pairs and tuples.

Section 0. Sets and Relations

3 The fundamentals: Algorithms, the integers, and matrices

Notes on Sets, Relations and Functions

The set of integers will be denoted by Z = {, -3, -2, -1, 0, 1, 2, 3, 4, }

MATH 215 Sets (S) Definition 1 A set is a collection of objects. The objects in a set X are called elements of X.

3. R = = on Z. R, S, A, T.

201-1A5-MT - Mathematics Summer 2015 HOMEWORK 2 Deadline : Sunday, August 30, 2015 at 12 :30.

Wilson s Theorem and Fermat s Little Theorem

Tomáš Madaras Congruence classes

The number of ways to choose r elements (without replacement) from an n-element set is. = r r!(n r)!.

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.

Mathematics for Cryptography

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

D-MATH Algebra I HS18 Prof. Rahul Pandharipande. Solution 1. Arithmetic, Zorn s Lemma.

Solutions to Section 2.1 Homework Problems S. F. Ellermeyer

4 Number Theory and Cryptography

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

cse 311: foundations of computing Fall 2015 Lecture 11: Modular arithmetic and applications

Modular Arithmetic Instructor: Marizza Bailey Name:

Reading 11 : Relations and Functions

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

Math.3336: Discrete Mathematics. Primes and Greatest Common Divisors

Elementary Number Theory. Franz Luef

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations

Algorithms CMSC Basic algorithms in Number Theory: Euclid s algorithm and multiplicative inverse

Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography

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.

Discrete Structures of Computer Science Propositional Logic I

Chapter 9: Relations Relations

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

Notes on Systems of Linear Congruences

Introduction to Cryptography CS 355 Lecture 3

Math 4400/6400 Homework #8 solutions. 1. Let P be an odd integer (not necessarily prime). Show that modulo 2,

COMP239: Mathematics for Computer Science II. Prof. Chadi Assi EV7.635

Solution Sheet (i) q = 5, r = 15 (ii) q = 58, r = 15 (iii) q = 3, r = 7 (iv) q = 6, r = (i) gcd (97, 157) = 1 = ,

CHAPTER 3. Congruences. Congruence: definitions and properties

Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element.

Relations. Relations of Sets N-ary Relations Relational Databases Binary Relation Properties Equivalence Relations. Reading (Epp s textbook)

Computer Architecture 10. Residue Number Systems

Math.3336: Discrete Mathematics. Primes and Greatest Common Divisors

Basic elements of number theory

Basic elements of number theory

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

Math 109 HW 9 Solutions

MATH 2200 Final Review

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

CS 5319 Advanced Discrete Structure. Lecture 9: Introduction to Number Theory II

Review Problems for Midterm Exam II MTH 299 Spring n(n + 1) 2. = 1. So assume there is some k 1 for which

MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST

Lecture Notes. Advanced Discrete Structures COT S

Number Theory and Group Theoryfor Public-Key Cryptography

a the relation arb is defined if and only if = 2 k, k

Proof 1: Using only ch. 6 results. Since gcd(a, b) = 1, we have

ECE 646 Lecture 5. Mathematical Background: Modular Arithmetic

Lecture 8: Equivalence Relations

Sum-free sets. Peter J. Cameron University of St Andrews

Sum-free sets. Peter J. Cameron University of St Andrews

Chapter 1. Sets and Mappings

and e 2 ~ e 2 iff e 1

Multiple Choice Questions for Review

There are seven questions, of varying point-value. Each question is worth the indicated number of points.

Fundamentals of Pure Mathematics - Problem Sheet

Definition: div Let n, d 0. We define ndiv d as the least integer quotient obtained when n is divided by d. That is if

This exam contains 5 pages (including this cover page) and 4 questions. The total number of points is 100. Grade Table

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

Name (please print) Mathematics Final Examination December 14, 2005 I. (4)

Relations. P. Danziger. We may represent a relation by a diagram in which a line is drawn between two elements if they are related.

Chapter 3 Basic Number Theory

If two sides of a triangle are congruent, then it is an isosceles triangle.

An Introduction to Proof-based Mathematics Harvard/MIT ESP: Summer HSSP Isabel Vogt

Sets. We discuss an informal (naive) set theory as needed in Computer Science. It was introduced by G. Cantor in the second half of the nineteenth

Chapter 1 Preliminaries

MATH 433 Applied Algebra Lecture 14: Functions. Relations.

With Question/Answer Animations. Chapter 4

Foundations of Mathematics

CSE 20: Discrete Mathematics

Packet #5: Binary Relations. Applied Discrete Mathematics

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

Transcription:

and Equivalences Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) August 9, 2012 Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Definition (Equivalence Relation) A binary relation R on set A is said to be an equivalence relation if it is reflexive, symmetric, and transitive. Let R People People. Pair (a, b) R if and only if a and b are of the same age. Let R Animals Animals. Pair (a, b) R if and only if a and b belong to same species. Let R Students Students. Pair (a, b) R if and only if a and b belong to same gender. Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Equivalence Classes Let R be an equivalence relation on set A. Take a A. The set C(a) = {b (a, b) R} is called the equivalence class of a. For example, if Ali is 34 years old, then C( Ali ) is the set of all 34 year old people. Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Equivalence (cntd) Lemma For any a A, the class C(a) Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Equivalence (cntd) Lemma For any a A, the class C(a) Proof. R is reflexive, therefore, (a, a) R. Hence a C(a). Thus, C(a). Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Equivalence (cntd) Lemma If C(a) C(b) then C(a) C(b) = Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Equivalence (cntd) Lemma If C(a) C(b) then C(a) C(b) = Proof. Proof by contraposition. Suppose c C(a) C(b). Hence, (a, c), (b, c) R. By symmetricity (c, b) R. Then, by transitivity, (a, b) R. Take x C(b). We have (b, x) R. By transitivity, (a, x) R. Hence, x C(a). Thus C(b) C(a). The case of C(a) C(b) is similar. Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Equivalence (cntd) Lemma A = a A C(a) Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Equivalence (cntd) Lemma A = a A C(a) Proof. Obvious because a C(a) for all a A Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

The equivalence classes divide set A into disjoint subsets. Definition (Partition) A collection of subsets M 1,..., M n of a set A is called a partition if the following conditions hold. (1) Every M i (2) If M i M j then M i M j = (3) A = n i=1 M i Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

and Lemma shows that the equivalence classes constitute a partition of the set. Actually, a stronger statement is true. Theorem Let A be a set. If R is an equivalence relation on A, then its equivalence classes form a partition on A. If M 1,..., M n is a partition of set A, then the relation R defined as follows: (a, b) R if and only if a, b M i for some i, is an equivalence relation on A. Proof. homework Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Definition (Congruency) Let k be an integer. Integers a, b are congruent modulo k, if their reminders are equal when divided by k, or, equivalently, if k divides a b. Congruency of a and b modulo k is denoted by a b(mod k) Example: 4 1(mod 3) Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

(cntd) The relation (mod k), to be congruent modulo k is reflexive, because k divides a a = 0 symmetric, because if k divides a b then it also divides b a transitive, because if k divides a b and b c, then it also divides a c = (a b) + (b c) (mod k) is an equivalence relation with equivalence classes C(c) = {a b (a = bk + c)} Arithmetic on these classes are called modular arithmetic Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

A relation R on set A is called a (partial) order if it is reflexive, transitive, and anti-symmetric. Example: a b on the set of real numbers Example: (a, b) Div if and only if a divides b Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Diagrams of Partial Due to anti-symmetricity, all the elements of A are ranked with respect to the order R. That is b is ranked higher than a if (a, b) R. Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Diagrams of Partial Due to transitivity, we do not need to know all pairs (a, b) from relation, but only those in which b is just higher than a. Connect every element only with elements that are just higher, so avoid triangles Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Diagrams of Partial Example: Show diagram for relation of divisibility on {1, 2,..., 12} Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Diagrams of Partial Example: Show diagram for relation of divisibility on {1, 2,..., 12} Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Diagrams of Partial Elements a, b are said to be comparable if (a, b) R or (b, a) R; Otherwise they are called incomparable Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Diagrams of Partial Elements a, b are said to be comparable if (a, b) R or (b, a) R; Otherwise they are called incomparable Element a is minimal if (b A) (((b, a) R) (a = b)) Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Diagrams of Partial Elements a, b are said to be comparable if (a, b) R or (b, a) R; Otherwise they are called incomparable Element a is minimal if (b A) (((b, a) R) (a = b)) Element a is maximal if (b A) (((a, b) R) (a = b)) Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Diagrams of Partial Elements a, b are said to be comparable if (a, b) R or (b, a) R; Otherwise they are called incomparable Element a is minimal if (b A) (((b, a) R) (a = b)) Element a is maximal if (b A) (((a, b) R) (a = b)) Element a is the least if (b A) ((a, b) R) Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Diagrams of Partial Elements a, b are said to be comparable if (a, b) R or (b, a) R; Otherwise they are called incomparable Element a is minimal if (b A) (((b, a) R) (a = b)) Element a is maximal if (b A) (((a, b) R) (a = b)) Element a is the least if (b A) ((a, b) R) Element a is the greatest if (b A) ((b, a) R) Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences

Total A partial order is said to be total if every two elements are comparable. Sets N, Z, Q, R are all totally ordered with respect to The diagram for a total order is a chain Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) and Equivalences