Operations on Sets Union of Sets Intersection of Sets

Slides:



Advertisements
Similar presentations
4.4 Permutations and Combinations of multisets
Advertisements

Permutations and Combinations Rosen 4.3. Permutations A permutation of a set of distinct objects is an ordered arrangement these objects. An ordered arrangement.
Counting Chapter 6 With Question/Answer Animations.
1 Learning Objectives for Section 7.4 Permutations and Combinations After today’s lesson you should be able to set up and compute factorials. apply and.
4/5/05Tucker, Sec Applied Combinatorics, 4rth Ed. Alan Tucker Section 5.4 Distributions Prepared by Jo Ellis-Monaghan.
Combinations We should use permutation where order matters
Copyright © Ed2Net Learning Inc.1. 2 Warm Up 1.List all combinations of Roshanda, Shelli, Toshi, and Hector, taken three at a time 2. In how many ways.
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Tucker, Section 5.41 Section 5.4 Distributions By Colleen Raimondi.
CS100 : Discrete Structures
4. Counting 4.1 The Basic of Counting Basic Counting Principles Example 1 suppose that either a member of the faculty or a student in the department is.
Combinatorics 3/15 and 3/ Counting A restaurant offers the following menu: Main CourseVegetablesBeverage BeefPotatoesMilk HamGreen BeansCoffee.
Warm up A ferris wheel holds 12 riders. If there are 20 people waiting to ride it, how many ways can they ride it?
Probability Review and Counting Fundamentals Ginger Holmes Rowell, Middle TN State University Tracy Goodson-Espy and M. Leigh Lunsford, University of AL,
7 Further Topics in Algebra © 2008 Pearson Addison-Wesley. All rights reserved Sections 7.4–7.7.
Counting. Product Rule Example Sum Rule Pigeonhole principle If there are more pigeons than pigeonholes, then there must be at least one pigeonhole.
Chapter The Basics of Counting 5.2 The Pigeonhole Principle
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
Probability Notes Math 309. Sample spaces, events, axioms Math 309 Chapter 1.
3.1Set Notation Venn Diagrams Venn Diagram is used to illustrate the idea of sets and subsets. Example 1 X  U(b) A  B X U B A U.
Chapter 6 With Question/Answer Animations 1. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
CPSC 531: Probability Review1 CPSC 531:Probability & Statistics: Review Instructor: Anirban Mahanti Office: ICT Class.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
© The McGraw-Hill Companies, Inc., Chapter 4 Counting Techniques.
Combinatorics and Probability
 History and Relevance of probability theory Probability theory began with the study of game of chance that were related to gambling, like throwing a.
4.1.2 Pigeonhole principle:Strong Form  Theorem 4.2: Let q 1,q 2,…,q n be positive integers. If q 1 +q 2 +…+q n -n+1 objects are put into n boxes, then.
1 ENM 503 Block 1 Algebraic Systems Lesson 2 – The Algebra of Sets The Essence of Sets What are they?
Learning Objectives for Section 7.4 Permutations and Combinations
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 7.4 Permutations and Combinations The student will be able to set up and.
CS201: Data Structures and Discrete Mathematics I
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Sets and Counting6 Sets and Set Operations The Number of Elements in a Finite Set The.
CSNB143 – Discrete Structure
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Sets and Counting6 Sets and Set Operations The Number of Elements in a Finite Set The.
The Pigeonhole Principle. The pigeonhole principle Suppose a flock of pigeons fly into a set of pigeonholes to roost If there are more pigeons than pigeonholes,
Probability Basic Concepts Start with the Monty Hall puzzle
Counting Principles. Counting examples Ex 1: A small sandwich café has 4 different types of bread, 5 different types of meat and 3 different types of.
Discrete Mathematics, 1st Edition Kevin Ferland Chapter 6 Basic Counting 1.
Unit VI Discrete Structures Permutations and Combinations SE (Comp.Engg.)
Chapter 4 Review MDM 4U Gary Greer.
MATH 2311 Section 2.1. Counting Techniques Combinatorics is the study of the number of ways a set of objects can be arranged, combined, or chosen; or.
Chapter 4 Review MDM 4U Mr. Lieff.
COUNTING Permutations and Combinations. 2Barnett/Ziegler/Byleen College Mathematics 12e Learning Objectives for Permutations and Combinations  The student.
CS 104: Discrete Mathematics
Section The Pigeonhole Principle If a flock of 20 pigeons roosts in a set of 19 pigeonholes, one of the pigeonholes must have more than 1 pigeon.
Permutations and Combinations AII Objectives:  apply fundamental counting principle  compute permutations  compute combinations  distinguish.
COUNTING Discrete Math Team KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) 1.
Permutations and Combinations. Permutations Definition –An ordered arrangement of objects is called a permutation. –Hence, a permutation of n distinct.
Example A standard deck of 52 cards has 13 kinds of cards, with four cards of each of kind, one in each of the four suits, hearts, diamonds, spades, and.
The Multiplication Rule
The Pigeonhole Principle
4-1 Chapter 4 Counting Techniques.
What Is Probability?.
MATH 2311 Section 2.1.
COCS DISCRETE STRUCTURES
Permutations and Combinations
Permutations and Combinations
4-1 Chapter 4 Counting Techniques.
4-1 Chapter 4 Counting Techniques.
CS100: Discrete structures
Chapter 7 Logic, Sets, and Counting
Permutations and Combinations
Counting techniques Basic Counting Principles, Pigeonhole Principle, Permutations and Combinations.
Probability Notes Math 309.
4-1 Chapter 4 Counting Techniques.
Probability Notes Math 309.
MATH 2311 Section 2.1.
Probability Notes Math 309 August 20.
Presentation transcript:

Operations on Sets Union of Sets Intersection of Sets A U B = {x| x Є A or x Є B} Intersection of Sets A  B = {x| x Є A and x Є B} Difference of Sets A - B = A  B Use Venn Diagram to depict suitable region for above set operations.

Example Let A = { 2, 4, 8,10} B = { 2, 4 , 7 , 8, 9} C = { 5, 8, 10} where S = {1,2,3,4,5,6,7,8,9,10} Find: A U B A  B A - C C  (A U B)

Set Identities A U B= B U A A  B=B  A Commutative (A U B) U C = A U (B U C) (A  B)  C = A  (B  C) Associative A U (B  C) = ((A U B)  (A U C) A  (B U C) = (A  B) U (A  C) Distributive A U Ф =A A  S = A Identity A U A = S A  A = Ф Complement

Cartesian Product Let A and B be two subsets of S. The Cartesian product (cross product) denoted by A X B is defined by A X B = {(x,y) | x Є A and y Є B} Let A = {2,4} and B={1,3} Find: A2 A X B, B X A

Examples Prove using Set identities [C  (B U A)] U [(A U B)  C] = A U B [A U (B  C)]  [A U (B  C)]  (B  C)’= Ф

Counting Also termed as Combinatorics Example : A person is to chose a triangle out of a set of 2 triangles (black & red) and chose one circle out of set of 3 circles (green, blue, yellow). How many different choices exist ?

Multiplication Principle If there are n1 possible outcomes for first event and n2 possible outcomes for second event, there are n1 .n2 possible outcomes for the sequence of two outcomes.

Example How many 5 letter palindromes can be constructed using English alphabets?

Principle of Inclusion and Exclusion |A1 U A2 U ………………… U An| =

Illustration Using Venn Diagram C A X Z W Y B

What will happen if we try to put r balls in n boxes when r > n ? Pigeon Hole Principle What will happen if we try to put r balls in n boxes when r > n ? Principle If more than k pigeons fly into k pigeonholes then at least one pigeonhole will have more than one pigeon. If more than k items are placed into k bins then at least one bin will contain more than one item,

Example How many times a single dice must be rolled to guarantee getting same value twice ?

Permutations and Combinations Ordered arrangement of objects is called a Permutation P(n,r) is permutations of r distinct objects chosen from n distinct objects. P(n,r) = n!/(n-r)! For n ≥ r ≥ 1

Permutations of 3 distinct objects Examples Permutations of 3 distinct objects Solution: P(3,3)=3!/(3-3)! = 3! = 6 Seven swimmers compete for G, S and B medals. How many different ways the awards can be made ?

How to chose r distinct objects from a set of n objects. Combinations How to chose r distinct objects from a set of n objects. Order does not matter while choosing Denoted by C(n,r) r objects can be ordered in r! ways. C(n,r) = P(n,r)/r! =n!/(n-r)!.r!

Example Seven swimmers compete and only 3 can be winners. How many different ways can the winners be chosen ? Solution : C(7,3) How many ways a committee of 7 people consisting of 4 females and 3 males be formed out of a group of 10 females and 5 males ?

Duplicates ? What will happen if objects are not distinct i.e. they are same . Number of Permutations of r alike objects is only one. No. of distinct permutations of n objects out of which r1 r2 r3…. rk are alike is given by

Permutations and Combinations with Repetition Permutations with repetitions is simply nr where r objects are chosen from a set of n objects. Combinations can be a little hard to find. How would you put n objects into r boxes ? Crep(n, r) = C(r+n-1,r) = (r+n-1)!/r!(n-1)! Say I want to pick 5 jewels from 3 different kinds. Then there are **|*|** - 2 diamonds, 1 ruby, 2 sapphires. So the number of slots = 5+(3-1) and I want to see how many ways I can pick the 5 slots to put the *’s. That is C(7, 5).

Examples A person X would like to invite 7 dinner guests out of a total of 14 friends. Six of her friends are males and rest are females. She would like to have at least one of each.

Examples (Cont.d) How many different ways can you seat 10 men and 8 women if no two women are to sit together ? 10! * P(11, 8) What is the answer if I say no two men are to sit together? 0 – it is not possible.