Sets. A set is a collection of objects without repeats. The size or cardinality of a set S is denoted S and is the number of elements in the set.

Similar documents
MATH 433 Applied Algebra Lecture 14: Functions. Relations.

Relations and Equivalence Relations

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

Relations, Functions, and Sequences

Relations MATH Relations. Benjamin V.C. Collins, James A. Swenson MATH 2730

Economics 204 Summer/Fall 2017 Lecture 1 Monday July 17, 2017

Generating Permutations and Combinations

Discrete Mathematics with Applications MATH236

Discrete Mathematics & Mathematical Reasoning Chapter 6: Counting

9 RELATIONS. 9.1 Reflexive, symmetric and transitive relations. MATH Foundations of Pure Mathematics

Lecture 7: Relations

Discrete Math for Computing. Working Draft

Lecture 4: Counting, Pigeonhole Principle, Permutations, Combinations Lecturer: Lale Özkahya

Binomial Coefficient Identities/Complements

Real Analysis. Joe Patten August 12, 2018

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Week 4-5: Generating Permutations and Combinations

Week 4-5: Binary Relations

Discrete Structures (2IT50)

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Copyright c 2007 Jason Underdown Some rights reserved. statement. sentential connectives. negation. conjunction. disjunction

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

2.1 Sets. Definition 1 A set is an unordered collection of objects. Important sets: N, Z, Z +, Q, R.

Chapter 1. Sets and Numbers

Set, functions and Euclidean space. Seungjin Han

Notes Week 2 Chapter 3 Probability WEEK 2 page 1

The integers. Chapter 3

Homework 1 2/7/2018 SOLUTIONS Exercise 1. (a) Graph the following sets (i) C = {x R x in Z} Answer:

Basic counting techniques. Periklis A. Papakonstantinou Rutgers Business School

Chapter VI. Relations. Assumptions are the termites of relationships. Henry Winkler

CA320 - Computability & Complexity

{ 0! = 1 n! = n(n 1)!, n 1. n! =

(1) Which of the following are propositions? If it is a proposition, determine its truth value: A propositional function, but not a proposition.

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

Chapter Summary. Sets (2.1) Set Operations (2.2) Functions (2.3) Sequences and Summations (2.4) Cardinality of Sets (2.5) Matrices (2.

Week 4-5: Binary Relations

Combinatorics. But there are some standard techniques. That s what we ll be studying.

A is a subset of (contained in) B A B iff x A = x B Socrates is a man. All men are mortal. A = B iff A B and B A. A B means A is a proper subset of B

Sets. Subsets. for any set A, A and A A vacuously true: if x then x A transitivity: A B, B C = A C N Z Q R C. C-N Math Massey, 72 / 125

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

COMBINATORIAL COUNTING

Permutations and Combinations

Math Fall 2014 Final Exam Solutions

Relations (3A) Young Won Lim 3/27/18

Math 3T03 - Topology

EQUIVALENCE RELATIONS (NOTES FOR STUDENTS) 1. RELATIONS

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

0 Sets and Induction. Sets

1 Basic Combinatorics

HL Topic. Sets, relations and groups. (Further Mathematics SL Topic 3) Sets Ordered pairs Functions Binary operations Groups Further groups

Named numbres. Ngày 25 tháng 11 năm () Named numbres Ngày 25 tháng 11 năm / 7

MATH MW Elementary Probability Course Notes Part I: Models and Counting

Foundations of algebra

Reading 11 : Relations and Functions

Module 2: Language of Mathematics

Math 105A HW 1 Solutions

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Counting Review R 1. R 3 receiver. sender R 4 R 2

Section 0. Sets and Relations

RED. Fall 2016 Student Submitted Sample Questions

Chapter Summary. Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Computability

Introductory Analysis I Fall 2014 Homework #5 Solutions

Posted Thursday February 14. STUDY IN-DEPTH...the posted solutions to homeworks 1-3. Compare with your own solutions.

9/19/2018. Cartesian Product. Cartesian Product. Partitions

Chapter 2 - Basics Structures MATH 213. Chapter 2: Basic Structures. Dr. Eric Bancroft. Fall Dr. Eric Bancroft MATH 213 Fall / 60

Chapter 2 - Basics Structures

Worksheet on Relations

Lecture 8: Equivalence Relations

Economics 204 Fall 2011 Problem Set 1 Suggested Solutions

SETS AND FUNCTIONS JOSHUA BALLEW

PROBABILITY. Contents Preface 1 1. Introduction 2 2. Combinatorial analysis 5 3. Stirling s formula 8. Preface

1. Determine (with proof) the number of ordered triples (A 1, A 2, A 3 ) of sets which satisfy

Combinations. April 12, 2006

An Introduction to Combinatorics

MATH 10B METHODS OF MATHEMATICS: CALCULUS, STATISTICS AND COMBINATORICS

Report 1 The Axiom of Choice

HANDOUT AND SET THEORY. Ariyadi Wijaya

Sets, Functions and Relations

CDM Combinatorial Principles

Relations --- Binary Relations. Debdeep Mukhopadhyay IIT Madras

LECTURE 1. 1 Introduction. 1.1 Sample spaces and events

Sets, Logic, Relations, and Functions

MATH1240 Definitions and Theorems

Packet #5: Binary Relations. Applied Discrete Mathematics

Sets and Functions. (As we will see, in describing a set the order in which elements are listed is irrelevant).

REVIEW FOR THIRD 3200 MIDTERM

Chapter 1 : The language of mathematics.

Lecture 1. Econ 2001: Introduction to Mathematical Methods (a.k.a. Math Camp) 2015 August 10

XMA2C011, Annual Examination 2012: Worked Solutions

Propositional Logic, Predicates, and Equivalence

1. When applied to an affected person, the test comes up positive in 90% of cases, and negative in 10% (these are called false negatives ).

Introduction to Decision Sciences Lecture 11

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

Counting. Mukulika Ghosh. Fall Based on slides by Dr. Hyunyoung Lee

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

1 Chapter 1: SETS. 1.1 Describing a set

9/21/2018. Properties of Functions. Properties of Functions. Properties of Functions. Properties of Functions. Properties of Functions

Contents. Counting Methods and Induction

Counting with Categories and Binomial Coefficients

0 Logical Background. 0.1 Sets

Transcription:

Sets A set is a collection of objects without repeats. The size or cardinality of a set S is denoted S and is the number of elements in the set. If A and B are sets, then the set of ordered pairs each consisting of one element of A and one element of B is denoted A B. test1sum: 1

Product Rule One approach to counting is to break up the question into a series of choices. The Product Rule says A B = A B There is one ordered pair for each element of A and each element of B. test1sum: 2

Factorial The product 20 19 18... 1 is called 20 factorial, written with an exclamation point as 20!. Note that 1! = 1 and 0! = 1 by definition. test1sum: 3

Counting All Subsets Example: a set with n elements has 2 n different subsets. test1sum: 4

Counting Sequences For universe X of n elements: (a) The number of ways to choose an ordered sequence of k elements from X with replacement is n k. (b) The number of ways to choose an ordered sequence of k elements from X without replacement is n!/(n k)!. test1sum: 5

Counting Separately Another common idea is to divide up the collection into separate cases: we count the individual cases separately and then add the answers. A variation is to count the collection by counting the whole universe and then subtracting those things not in our collection. test1sum: 6

Sum Rule The Sum Rule says: if sets A and B are disjoint (meaning their intersection is empty), then A B = A + B. More generally, A B = A + B A B. test1sum: 7

Binomial Coefficients Whether the collection is ordered or unordered matters. Given a universe X of n elements, the number of ways to choose an unordered subset of X of k elements of without replacement is the binomial coefficient (n ) n! = k k! (n k)! pronounced n choose k. test1sum: 8

Symmetry Property ( ) n k = ( n ) n k test1sum: 9

Counting per Pattern A common approach is to choose the pattern, then choose the way to fill the pattern. test1sum: 10

Identical versus Distinguishable When counting balls: if they are indistinguishable, only the number of balls matters. test1sum: 11

Anagrams Anagrams are counted by T! c 1! c 2! c k! where the k different letters have counts c 1, c 2,..., c k and T is the total number of letters. test1sum: 12

Odds The odds or chance of an event is calculated by dividing the number of outcomes corresponding to the event in question by the total number of outcomes. Used in poker for example. test1sum: 13

Recurrence Formula ( ) n k = ( ) n 1 k 1 + ( ) n 1 k This is exhibited in Pascal s triangle. test1sum: 14

Combinatorial Proof A combinatorial proof of an equation is where both sides are shown to count the same thing. test1sum: 15

Sum of Binomial Coefficients ( ) n 0 + ( ) n 1 + ( ) n 2 + + ( ) n n = 2 n. That is, n k=0 ( ) n k = 2 n. test1sum: 16

Binomial Theorem The Binomial Theorem says that the coefficient of x k y n k in (x + y) n is ( n k ). That is, (x + y) n = n k=0 ( ) n x n k y k. k test1sum: 17

Functions A function has a domain and a codomain. The function maps each element in the domain to an element in the codomain; that is, given any element of the domain, the function evaluates to a specific value in the codomain. test1sum: 18

Representing Functions Can represent a function: as a rule as a table as a graph as a set of ordered pairs as a picture with arrows from domain to codomain test1sum: 19

Special Functions The range of a function is the set of elements in the codomain which really do have something mapping to them. A function is 1 1 or one-to-one if every element in the range is mapped to by a unique element in the domain. A function is onto if every element in the codomain is mapped to; that is, the codomain and range are equal. A function is a bijection if it is both one-toone and onto. test1sum: 20

Partitions A partition of a set is writing it as disjoint nonempty blocks. For example, {{1}, {3, 5}, {2, 4}} is a partition of the set X = {1, 2, 3, 4, 5}. Note that the order of the blocks does not matter, and neither does the order of the elements within a block. test1sum: 21

Relations Examples of relations include same color as, is a subset of, and is a neighbor of. To specify a relation, we can give a rule that explains when two things are related; or, we can list all the ordered pairs of related elements. If R stands for the relation, then we will write xry to mean that x is related to y in the relation R. (For example, if R was the equality relation, we would write that x = y.) test1sum: 22

Equivalence Relations An equivalence relation is reflexive if xrx for all x (that is, everything is related to itself). symmetric if xry implies yrx; and transitive if xry and yrz implies xrz. For example, has the same name as is an equivalence relation test1sum: 23

Equivalence Relations and Partitions An equivalence relation can be represented as a partition and vice versa. In an equivalence relation, the equivalence class of element x is the set of all elements related to it (note x is in its own equivalence class, by the reflexive property). These are the blocks of the partition. test1sum: 24