Equivalence relations

Similar documents
Multiple Choice Questions for Review

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

CSC Discrete Math I, Spring Relations

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

COMP 182 Algorithmic Thinking. Relations. Luay Nakhleh Computer Science Rice University

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.

Chapter 9: Relations Relations

CIS 375 Intro to Discrete Mathematics Exam 3 (Section M004: Blue) 6 December Points Possible

Diskrete Mathematik Solution 6

Discrete Mathematics. 2. Relations

CIS 375 Intro to Discrete Mathematics Exam 3 (Section M001: Green) 6 December Points Possible

Selected Solutions to Even Problems, Part 3

Math 3012 Applied Combinatorics Lecture 14

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

Notation Index. gcd(a, b) (greatest common divisor) NT-16

Sets and Motivation for Boolean algebra

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

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

Exam 2. Is g one-to-one? Is g onto? Why? Solution: g is not one-to-one, since for c A, g(b) = g(c) = c. g is not onto, since a / g(a).

and e 2 ~ e 2 iff e 1

Do not open this exam until you are told to begin. You will have 75 minutes for the exam.

MAD 3105 PRACTICE TEST 2 SOLUTIONS

Orders and Equivalences

Discrete Structures: Solutions to Sample Questions, Exam 2

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

Properties of the Integers

Worksheet on Relations

Massachusetts Institute of Technology 6.042J/18.062J, Fall 02: Mathematics for Computer Science Professor Albert Meyer and Dr.

CMPSCI 250: Introduction to Computation. Lecture #11: Equivalence Relations David Mix Barrington 27 September 2013

{a, b, c} {a, b} {a, c} {b, c} {a}

EQUIVALENCE RELATIONS (NOTES FOR STUDENTS) 1. RELATIONS

Lecture Notes: Selected Topics in Discrete Structures. Ulf Nilsson

2MA105 Algebraic Structures I

Tutorial Obtain the principal disjunctive normal form and principal conjunction form of the statement

Is g one-to-one? Is g onto? Why? Solution: g is not one-to-one, since for c A, g(b) = g(c) = c. g is not onto, since a / g(a).

What are relations? f: A B

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Symmetric chain decompositions of partially ordered sets

Equality of P-partition Generating Functions

Chapter 1 Preliminaries

Rela%ons and Their Proper%es. Slides by A. Bloomfield

Generating Permutations and Combinations

Reading 11 : Relations and Functions

1.2 Posets and Zorn s Lemma

Homework 7 Solutions, Math 55

MA 524 Final Fall 2015 Solutions

Ranking Score Vectors of Tournaments

14 Equivalence Relations

Relations, Functions, and Sequences

Writing Assignment 2 Student Sample Questions

Automata and Languages

1.A Sets, Relations, Graphs, and Functions 1.A.1 Set a collection of objects(element) Let A be a set and a be an elements in A, then we write a A.

Tree sets. Reinhard Diestel

Set Basics. P. Danziger

CS Discrete Mathematics Dr. D. Manivannan (Mani)

1.4 Equivalence Relations and Partitions

Lecture 8: Equivalence Relations

Discrete Structures, Final Exam

n = p 1 p 2 p r = q 1 q 2 q m, then r = m (i.e. the number of primes in any prime decomposition

Goal. Partially-ordered set. Game plan 2/2/2013. Solving fixpoint equations

Strange Combinatorial Connections. Tom Trotter

7 Mathematical Induction. For the natural numbers N a the following are equivalent:

The Saturation Number of Induced Subposets of the Boolean Lattice

Preliminaries and Complexity Theory

MATH 433 Applied Algebra Lecture 14: Functions. Relations.

Mobius Inversion on Partially Ordered Sets

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

Chapter 2 - Relations

Discrete Structures: Sample Questions, Exam 2, SOLUTIONS

Lecture 1: Lattice(I)

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007)

Nonnegative Matrices I

Notes on Sets, Relations and Functions

EDULABZ INTERNATIONAL NUMBER SYSTEM

A quasisymmetric function generalization of the chromatic symmetric function

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009

Relations. Definition 1 Let A and B be sets. A binary relation R from A to B is any subset of A B.

MITOCW Lec 11 MIT 6.042J Mathematics for Computer Science, Fall 2010

Homework 8. Sections Notes on Matrix Multiplication

On minimal models of the Region Connection Calculus

Packet #5: Binary Relations. Applied Discrete Mathematics

Combinatorics & Discrete Probability Theory

Day 12. Thursday June 7, 2012

Answer: A. Answer: C. 3. If (G,.) is a group such that a2 = e, a G, then G is A. abelian group B. non-abelian group C. semi group D.

CHAPTER THREE: RELATIONS AND FUNCTIONS

1 Initial Notation and Definitions

Chromatic bases for symmetric functions

Math.3336: Discrete Mathematics. Chapter 9 Relations

A Collection of Problems in Combinatorics

Logic, Set Theory and Computability [M. Coppenbarger]

On the size of Heyting Semi-Lattices and Equationally Linear Heyting Algebras

(4.2) Equivalence Relations. 151 Math Exercises. Malek Zein AL-Abidin. King Saud University College of Science Department of Mathematics

Week 4-5: Generating Permutations and Combinations

DEPARTMENT OF ECONOMICS WORKING PAPER SERIES. Modeling Resource Flow Asymmetries using Condensation Networks

Solutions to In Class Problems Week 4, Mon.

Section 7.1 Relations and Their Properties. Definition: A binary relation R from a set A to a set B is a subset R A B.

Just the Factors, Ma am HAROLD B. REITER.

RED. Name: Instructor: Pace Nielsen Math 290 Section 1: Winter 2014 Final Exam

18.312: Algebraic Combinatorics Lionel Levine. Lecture 11

Transcription:

Equivalence relations R A A is an equivalence relation if R is 1. reflexive (a, a) R 2. symmetric, and (a, b) R (b, a) R 3. transitive. (a, b), (b, c) R (a, c) R Example: Let S be a relation on people such that a S b if a and b have the same parents. Example: Let M be a relation on integers such that (i, j) M if i j(mod 5) (0, 0) M, (0, 5) M, (5, 0) M, (0, 10) M (1, 1) M, (1, 6) M, (6, 1) M, (1, 11) M (2, 2) M, (2, 7) M, (7, 2) M, (2, 12) M (3, 3) M, (3, 8) M, (8, 3) M, (3, 13) M (4, 4) M, (4, 9) M, (9, 4) M, (4, 14) M 1

a, b {..., 10, 5, 0, 5, 10, 15,...} amb Similarly: a, b {..., 9, 4, 1, 6, 11, 16,...} amb a, b {..., 8, 3, 2, 7, 12, 17,...} amb a, b {..., 7, 2, 3, 8, 13, 18,...} amb a, b {..., 6, 1, 4, 9, 14, 19,...} amb where i M j if i j(mod 5) 2

Equivalence Classes Let R A A be an equivalence relation. For any a in A, the set of all elements related to a by R is called the equivalence class of a (induced by R). We denote the equivalence class of a by [a] R. Formally, [a] R = {b (a, b) R} A representative of an equivalence class [a] R is any element b [a] R. Example: [0] M = {..., 10, 5, 0, 5, 10, 15,...} [1] M = {..., 9, 4, 1, 6, 11, 16,...} [2] M = {..., 8, 3, 2, 7, 12, 17,...} [3] M = {..., 7, 2, 3, 8, 13, 18,...} [4] M = {..., 6, 1, 4, 9, 14, 19,...} [0] M = [5] M = [ 10] M, [0] M [1] M = 3

Theorem: Let R be an equivalence relation. Then the following are equivalent. 1. a R b 2. [a] R = [b] R 3. [a] R [b] R So any two classes of an equivalence relation are either the same or disjoint. A: A 2 A 3 A 1 A 4 A 5 4

Partitions of a set Let A i, i = 1, 2,..., n be subsets of a set A. Then {A 1, A 2..., A n } is a partition of A when 1. A i, for all i = 1, 2,..., n. 2. A 1 A 2... A n = A, and 3. A i A j = if i j (sets are pairwise disjoint). A: A 2 A 3 A1 A 4 A 5 5

Theorem: 1. Let R be an equivalence relation on set A. The distinct equivalence classes of R form a partition of A. 2. Conversely, given a partition A 1, A 2,..., A n of A, there is an equivalence relation R that has A 1, A 2,..., A n as its equivalence classes. 6

Partial Orderings A generalization of the relation on the powerset of a set. (as in {1, 2} {1, 2, 3}) Recall that is a relation that is reflexive (a, a) R, antisymmetric (a, b), (b, a) R a = b, and transitive (a, b), (b, c) R (a, c) R. Let R A A. Then R is a partial ordering if it is reflexive, antisymmetric and transitive. The pair (A, R) is called a partially ordered set or poset when A is a set and R is a partial ordering on A. Example: The operation is a partial ordering on a set of subsets. Thus, for instance (P(N), ) is a poset. 7

Posets and total orders In a poset (A, R), if (a, b) R we write a b (or b a) We say a is less than or equal to b even if A is not a set of numbers. If a b and a b then we write a b. If a b or b a then a and b are comparable. In a poset, there might be elements a and b such that a / b and b / a. We call such elements incomparable. If (A, ) is a poset, and every two elements of A are comparable then A is called a totally ordered set and is called a total order, or a chain. 8

The usual graph representation of a poset is crowded with arcs: Example: (P({1, 2, 3}), ) {1} {1,2} {2} {1,3} { } {1,2,3} {3} {3,2} 9

Hasse diagram for posets: The Hasse diagram is obtained from the graph representation by: 1. Removing all arcs due to reflexivity, 2. Removing all arcs due to transitivity, 3. Positioning all elements so that if a b then b is above a. {1,2,3} {1,2} {1,3} {3,2} {1} {1,2} {2} {1,3} {1} {2} {3} { } {1,2,3} { } {3} {3,2} 10

A Hasse diagram is the usual representation of partial orders. Example: The Hasse diagram of course prerequisites. C326 C346 C353 C354 C352 C335 C229 C239 C249 C228 C238 C248 11

If R is a total order then in the Hasse diagram of R all elements of R are aligned on a line. Recall that a total order is called a chain. Example: on natural numbers is a total order... 6 5 4 3 2 1 0 12

Lexicographic Order A method to extend a partial order from a set A of elements to strings constructed from elements in A. Also called dictionary order. Example: We have a partial (actually total) ordering on letters: a b c d e y z We want to extend to words made from letters to get an ordering as in dictionaries. ace acme bamboo bank zebra First, we show how to extend partial orders of sets A and B to obtain an ordering of A B. 13

Lexicographic Order Let (A 1, 1 ) and (A 2, 2 ) be two posets. The lexicographic ordering on A B is defined as: (a 1, b 1 ) (a 2, b 2 ) if either a 1 1 a 2 or a 1 = a 2 and b 1 2 b 2 Lexicographic ordering for strings on a poset (A, ) Let u = a 1 a 2 a 3 a m, and v = b 1 b 2 b 3 b n u v if either a 1 b 1 or a 1 = b 1 and a 2 b 2 or a 1 a 2 = b 1 b 2 and a 3 b 3... or a 1 a 2 a m = b 1 b 2 b m and m < n 14

Let (A, ) be a poset. An element a A is minimal if there is no element b A such that b a. An element a A is a smallest element if a b for all b in A. An element a A is maximal if there is no element b A such that a b. An element a A is a greatest element if b a for all b in A. 15

Let (A, ) be a poset, and B A An element a A is an upper bound B, if b a for all b B. of An element a A is a least upper bound of B, if a b for all other upper bounds b of B. An element a A of a poset is a lower bound of B, if a b for all b B. An element a A of a poset is a greatest lower bound of B, if b a for all other lower bounds b of B. Some posets don t have any minimal element, some can have more than one. Some posets don t have any maximal element, some can have more than one. 16

Minimal elements:? Maximal elements:? Upper bounds of {C238, C249}:? Least upper bound of {C238, C249}:? Lower bounds of {C335, C352, C326}:? Greatest lower bound of {C335, C352, C326}:? The set {C239, C249} does not have the least upper bound. C229 is the least upper bound of {C228, C248} C326 C346 C353 C354 C352 C335 C229 C239 C249 C228 C238 C248 17

Lattices A lattice is a partially ordered set in which every pair of elements have both a least upper bound and a greatest lower bound. Lattice of partitions of {1, 2, 3, 4} ordered by refines. Lattice of subsets of {x, y, z} ordered by. 18

Lattice of integers ordered by Lattice of integer divisors of 60 ordered by divides. ordered by. 19

PO s that are not lattices 20