Minggu, 26 Februari 2012

Sets and Venn Diagrams

Sets and Venn Diagrams


Sets

 
set is a collection of things.
For example, the items you wear is a set: these would include shoes, socks, hat, shirt, pants, and so on.
You write sets inside curly brackets like this:
{socks, shoes, pants, watches, shirts, ...}
You can also have sets of numbers:

Ten Best Friends

You could have a set made up of your ten best friends:
  • {alex, blair, casey, drew, erin, francis, glen, hunter, ira, jade}
Each friend is an "element" (or "member") of the set (it is normal to use lowercase letters for them.)

Now let's say that alex, casey, drew and hunter play Soccer:
Soccer = {alex, casey, drew, hunter}
(The Set "Soccer" is made up of the elements alex, casey, drew and hunter).
And casey, drew and jade play Tennis:
Tennis = {casey, drew, jade}
You could put their names in two separate circles:

Union

You can now list your friends that play Soccer OR Tennis.
This is called a "Union" of sets and has the special symbol :
Soccer  Tennis = {alex, casey, drew, hunter, jade}
Not everyone is in that set ... only your friends that play Soccer or Tennis.
We can also put it in a "Venn Diagram":

Venn Diagram: Union of 2 Sets
A Venn Diagram is clever because it shows lots of information:
  • Do you see that alex, casey, drew and hunter are in the "Soccer" set?
  • And that casey, drew and jade are in the "Tennis" set?
  • And here is the clever thing: casey and drew are in BOTH sets!

Intersection

"Intersection" is when you are in BOTH sets.
In our case that means they play both Soccer AND Tennis ... which is casey and drew.
The special symbol for Intersection is an upside down "U" like this: 
And this is how we write it down:
Soccer  Tennis = {casey, drew}
In a Venn Diagram:

Venn Diagram: Intersection of 2 Sets

Difference

You can also "subtract" one set from another.
For example, taking Soccer and subtracting Tennis means people that play Soccer but NOT Tennis ... which is alex and hunter.
And this is how we write it down:
Soccer - Tennis = {alex, hunter}
In a Venn Diagram:

Venn Diagram: Difference of 2 Sets

Summary So Far

  •  is Union: is in either set
  •  is Intersection: must be in both sets
  • - is Difference: in one set but not the other

Three Sets

You can also use Venn Diagrams for 3 sets.
Let us say the third set is "Volleyball", which drew, glen and jade play:
Volleyball = {drew, glen, jade}
But let's be more "mathematical" and use a Capital Letter for each set:
  • S means the set of Soccer players
  • T means the set of Tennis players
  • V means the set of Volleyball players
The Venn Diagram is now like this:
Union of 3 Sets: S  T  V
You can see (for example) that:
  • drew plays Soccer, Tennis and Volleyball
  • jade plays Tennis and Volleyball
  • alex and hunter play Soccer, but don't play Tennis or Volleyball
  • no-one plays only Tennis
We can now have some fun with Unions and Intersections ...

This is just the set S
S = {alex, casey, drew, hunter}


This is the Union of Sets T and V
 V = {casey, drew, jade, glen}


This is the Intersection of Sets S and V
 V = {drew}
And how about this ...
  • take the previous set S  V
  • then subtract T:

This is the Intersection of Sets S and V minus Set T
(S  V) - T = {}
Hey, there is nothing there!
That is OK, it is just the "Empty Set". It is still a set, so we use the curly brackets with nothing inside: {}
The Empty Set has no elements: {}

Universal Set

The Universal Set is the set that contains everything. Well, not exactly everything.Everything that we are interested in now.
Sadly, the symbol is the letter "U" ... which is easy to confuse with the  for Union. You just have to be careful, OK?
In our case the Universal Set is our Ten Best Friends.
U = {alex, blair, casey, drew, erin, francis, glen, hunter, ira, jade}
We can show the Universal Set in a Venn Diagram by putting a box around the whole thing:
Now you can see ALL your ten best friends, neatly sorted into what sport they play (or not!).
And then we can do interesting things like take the whole set and subtract the ones who play Soccer:
We write it this way:
U - S = {blair, erin, francis, glen, ira, jade}
Which says "The Universal Set minus the Soccer Set is the Set {blair, erin, francis, glen, ira, jade}"
In other words "everyone who does not play Soccer".

Summary

  •  is Union: is in either set
  •  is Intersection: must be in both sets
  • - is Difference: in one set but not the other
  • Empty Set: the set with no elements. Shown by {}
  • Universal Set: all things we are interested in

0 komentar:

Posting Komentar





Jangan Lupa Beri Komentar Ya !!!

Dan Juga Join Aku !!!

Terima Kasih bin Thank You binti Matur Suwun !!!!