Chapter 1 out of 37 from Discrete Mathematics for Neophytes: Number Theory, Probability, Algorithms, and Other Stuff by J. M. Cargal.

Similar documents
arxiv: v2 [math.ho] 23 Aug 2018

Remember that represents the set of all permutations of {1, 2,... n}

5. (1-25 M) How many ways can 4 women and 4 men be seated around a circular table so that no two women are seated next to each other.

HOMEWORK ASSIGNMENT 5

Finite Math Section 6_4 Solutions and Hints

Strings. A string is a list of symbols in a particular order.

1.6 Congruence Modulo m

Solution: This is sampling without repetition and order matters. Therefore

Permutation Groups. Definition and Notation

MA 524 Midterm Solutions October 16, 2018

Stanford University CS261: Optimization Handout 9 Luca Trevisan February 1, 2011

Some Fine Combinatorics

Chapter 1. The alternating groups. 1.1 Introduction. 1.2 Permutations

17. Symmetries. Thus, the example above corresponds to the matrix: We shall now look at how permutations relate to trees.

ACTIVITY 6.7 Selecting and Rearranging Things

An Intuitive Approach to Groups

The next several lectures will be concerned with probability theory. We will aim to make sense of statements such as the following:

CIS 2033 Lecture 6, Spring 2017

An Elementary Solution to the Ménage Problem

COUNTING AND PROBABILITY

It is important that you show your work. The total value of this test is 220 points.

Finite Math - Fall 2016

ACHS Math Team Lecture: Introduction to Set Theory Peter S. Simon

How to Make the Perfect Fireworks Display: Two Strategies for Hanabi

code V(n,k) := words module

Reading 14 : Counting

The Discrete Fourier Transform. Claudia Feregrino-Uribe, Alicia Morales-Reyes Original material: Dr. René Cumplido

The tenure game. The tenure game. Winning strategies for the tenure game. Winning condition for the tenure game

Problem A: Ordering supermarket queues

CS1802 Week 6: Sets Operations, Product Sum Rule Pigeon Hole Principle (Ch )

Class 8 - Sets (Lecture Notes)

Mathematical Foundations of Computer Science Lecture Outline August 30, 2018

* Order Matters For Permutations * Section 4.6 Permutations MDM4U Jensen. Part 1: Factorial Investigation

Finite and Infinite Sets

The mathematics of the flip and horseshoe shuffles

9.5 Counting Subsets of a Set: Combinations. Answers for Test Yourself

Permutations and Combinations

Modular Arithmetic. Kieran Cooney - February 18, 2016

In Response to Peg Jumping for Fun and Profit

Final Exam, Math 6105

Lecture 18 - Counting

The topic for the third and final major portion of the course is Probability. We will aim to make sense of statements such as the following:

MATH 2420 Discrete Mathematics Lecture notes

A Covering System with Minimum Modulus 42

BMT 2018 Combinatorics Test Solutions March 18, 2018

The Problem. Tom Davis December 19, 2016

Positive and Negative Logic

arxiv: v1 [math.ho] 26 Jan 2013

Unit Nine Precalculus Practice Test Probability & Statistics. Name: Period: Date: NON-CALCULATOR SECTION

Section II.9. Orbits, Cycles, and the Alternating Groups

SOLITAIRE CLOBBER AS AN OPTIMIZATION PROBLEM ON WORDS

* Order Matters For Permutations * Section 4.6 Permutations MDM4U Jensen. Part 1: Factorial Investigation

Sets. Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) August 6, Outline Sets Equality Subset Empty Set Cardinality Power Set

arxiv: v1 [math.co] 7 Aug 2012

MATH 135 Algebra, Solutions to Assignment 7

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability (solutions)

Math 127: Equivalence Relations

UKMT UKMT UKMT. Junior Kangaroo Mathematical Challenge. Tuesday 12th June 2018

The mathematics of the flip and horseshoe shuffles

Solutions to Exercises Chapter 6: Latin squares and SDRs

CS100: DISCRETE STRUCTURES. Lecture 8 Counting - CH6

Name: Exam 1. September 14, 2017

( ) = A. 2. Write the following sets using the roster method. 3. Write the following sets using set-builder notation.

Notes for Recitation 3

Combinatorics: The Fine Art of Counting

Latin Squares for Elementary and Middle Grades

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = =

I.M.O. Winter Training Camp 2008: Invariants and Monovariants

28,800 Extremely Magic 5 5 Squares Arthur Holshouser. Harold Reiter.

Analyzing Games: Solutions

Topics to be covered

Midterm (Sample Version 3, with Solutions)

STRATEGY AND COMPLEXITY OF THE GAME OF SQUARES

CSE 312: Foundations of Computing II Quiz Section #2: Combinations, Counting Tricks (solutions)

Combinatorics and Intuitive Probability

A Group-theoretic Approach to Human Solving Strategies in Sudoku

Permutations and Combinations Section

and problem sheet 7

Three Pile Nim with Move Blocking. Arthur Holshouser. Harold Reiter.

18.S34 (FALL, 2007) PROBLEMS ON PROBABILITY

Gray code and loopless algorithm for the reflection group D n

2009 Philippine Elementary Mathematics International Contest Page 1

Random Card Shuffling

Cards. There are many possibilities that arise with a deck of cards. S. Brent Morris

UCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis

Beyond Infinity? Joel Feinstein. School of Mathematical Sciences University of Nottingham

The congruence relation has many similarities to equality. The following theorem says that congruence, like equality, is an equivalence relation.

Introduction to Combinatorial Mathematics

1. The chance of getting a flush in a 5-card poker hand is about 2 in 1000.

Mathematics. Programming

ALGEBRA: Chapter I: QUESTION BANK

ECS 20 (Spring 2013) Phillip Rogaway Lecture 1

CITS2211 Discrete Structures Turing Machines

Tilings with T and Skew Tetrominoes

arxiv: v2 [cs.cc] 18 Mar 2013

1111: Linear Algebra I

Principle of Inclusion-Exclusion Notes

Extending the Sierpinski Property to all Cases in the Cups and Stones Counting Problem by Numbering the Stones

INFLUENCE OF ENTRIES IN CRITICAL SETS OF ROOM SQUARES

Lecture 2: Sum rule, partition method, difference method, bijection method, product rules

Transcription:

1 Relations This book starts with one of its most abstract topics, so don't let the abstract nature deter you. Relations are quite simple but like virtually all simple mathematical concepts they have their subtle aspects. Relations are defined on collections (or sets) of objects. The objects are usually numbers but can be anything. For example our collection of objects could be {1, 2, 3, a, c, L, Ì}. Also the collections could be infinite like the set of natural numbers: {1, 2, 3,... }. In this book we will almost always use finite collections. By a relation, we mean a collection of ordered pairs from the collection of objects. For example, on the collection of objects {1, 2, 3, a, c, L, Ì}, we can define the relation {(1,2) (2,a) (L,2) (2,L)}. The pairs are said to be ordered because we consider (1,2) and (2,1) to be different pairs. Since we are only dealing with ordered pairs instead of, say, ordered triples we are actually using binary relations. Why Do We Use the Word Relation? Consider the collection of objects {Bob, Ted, Carol, and Alice}. The relation marriage might be defined as {(Bob, Alice) (Alice, Bob) (Ted, Carol) (Carol, Ted)}. Here each pair represents a married couple. We have both (Bob, Alice) and (Alice, Bob) because Bob is married to Alice and Alice is married to Bob. The relation older might be defined as {(Bob, Ted) (Bob, Alice) (Bob, Carol) (Alice, Ted) (Alice, Carol) (Carol, Ted)}. ( In each case the older person is on the left.) In this instance Bob is the eldest person, Alice is the next oldest, then Carol, and Ted is the youngest. Note that the ordered pairs can be written in any order. Given the collection of numbers {1, 2, 3, B) we can define the relation larger as {(B, 3) (B, 2)(B, 1) (3, 2) (3, 1) (2, 1)}. The relation equality is given by {(B,B) (3, 3) (2, 2) (1, 1)}. The relation greater than or equal to is given by {(B, 3) (B, 2)(B, 1) (3, 2) (3, 1) (2, 1) (B,B) (3, 3) (2, 2) (1, 1)}. 1

Functions Functions are a type of relation of great importance throughout mathematics. In this book we will not deal with the function concept; functions are given here only as an example. 1 A relation is a function if and only if no element occurs as a first element in more than one ordered pairs. Suppose for example that we have a relation, ú, defined on the natural numbers (positive integers). ú then is a collection of ordered pairs of natural numbers. If ú is a function and (3,9) belongs to ú then there is no other ordered pair beginning with 3. However, there can be other ordered pairs ending with 9. A good way of thinking of functions is with each pair consisting of an input and an output. The second element is the output corresponding to the first element. In particular we say that the second element is a function of the first element. Note that in the example above where the relation is marriage the relation is also a function. However, in a society that is not monogamous the marriage relation is not a function. Permutations Another type of relation (which also happens to be a function) is a permutation. A permutation can be thought of informally as a rearrangement. For example, the purpose of shuffling cards is to permute the deck. In a permutation (of a finite set) each element occurs once and only once as a first element and once and only once as a second element. 2 Given the set {1, 2, 3, 4} the relation {(1,2) (2,3) (3,1) (4,4)} is a permutation. A perfectly good way of thinking of permutations are like the game musical chairs. In this particular example 1 moved to 2's seat; 2 moved to 3's seat; 3 moved to 1's seat, and 4 sat back in his old seat. 1 We can use various functions without making explicit use of the function concept. 2 This definition is only valid for permutations on finite sets. For the more advanced readers, we can say that a permutation of a non-empty (possibly infinite) set is a one-to-one mapping from the set onto itself. 2

Some New Notation Instead of writing that (1,2), (2,1) and (2,3) belong to the relation ú it is easier to write that 1-2 and 2-1 and that 2-3, with some symbol like - which is often specific to that relation. This is the way that relations are usually written. For example, we do not say that (2,2) belongs to the equality relation; instead we say 2 = 2. Equivalence Relations A particularly important type of relation which we will use later are equivalence relations. An equivalence relation has three properties: < For any object, say A, A-A. (An object is equivalent to itself). < If A-B, then B-A. (If A is equivalent to B, B is equivalent to A.) < If A-B and B-C then A-C. (If A is equivalent to B and B is equivalent to C, then A is equivalent to C.) These properties are respectively known as reflexivity, symmetry, and transitivity. 1 For example, given the objects {1, 2, 3, 4} if ú is an equivalence relation on these objects, then ú must contain at least the pairs {(1,1) (2,2) (3,3) (4,4)} because of the reflexivity property. If it contains the pair (3,2) it must contain the pair (2,3) because of the symmetry property. If ú contains the pairs (2,3) and (3,1) it must contain the pair (2,1) because of the transitivity property. The prototype equivalence relation is equality itself. Equality always satisfies the three rules given above. However, if we look at the relations < (less than) and # (less than or equal to) defined on the integers, they violate the property of symmetry. 1 I have to give the names of these properties or mathematicians would shun me. 3

Partitions If we have an equivalence relation then we have a partition (and vice versa). A partition is a collection of classes of objects, such that every object belongs to one and only one class. (A room divider partitions the objects of its room.) If - is an equivalence relation and A-B, we say that A and B belong to the same equivalence class, or the same partition class (they are the same thing). Similarly, if we have a partition of objects, we define the equivalence relation A-B whenever A and B belong to the same partition class. Example Hopefully an example will make this much clearer. Figure 1 is a partition with four classes represented by four boxes. What makes it a partition is each element is in a class and no element is in two classes. Now we will deduce the equivalence relation implied by this partition. We say that two elements are Figure 1 A Partition With Eight Elements and Four Classes related if and only if they belong to the same class. This means that each element is related to itself; for example a-a. This is the property of reflexivity. In this example a-d, but we also have d-a; that is the property of symmetry. We do not have a-b since a and b are in different partition classes. It is not hard to see that in a partition that the property of transitivity will also hold. For example, b-g and g-f imply b-f. It is important to understand that if we have an equivalence relation - (on some set of objects) that we can partition the objects by that relation. We simply put two objects x and y in 4

the same class if and only if x-y. It is thus true that there is an equivalence between partitions and equivalence relations. The topics discussed so far are abstract. It is not required or expected that you master these concepts. However, if you are a mathematics major or any serious student of the mathematical sciences you will have to master these concepts at some time. 5