Tuesday, 26 February 2013

SETS


Definition

What is a set? Well, simply put, it's a collection.
First you specify a common property among "things" (this word will be defined later) and then you gather up all the "things" that have this common property.
For example, the items you wear: these would include shoes, socks, hat, shirt, pants, and so on.
I'm sure you could come up with at least a hundred.
This is known as a set.
Or another example would be types of fingers.
This set would include index, middle, ring, and pinky.
So it is just things grouped together with a certain property in common.

Notation

There is a fairly simple notation for sets. You simply list each element, separated by a comma, and then put some curly brackets around the whole thing.
Set
The curly brackets { } are sometimes called "set brackets" or "braces".
This is the notation for the two previous examples:
{socks, shoes, watches, shirts, ...}
{index, middle, ring, pinky}

No comments:

Post a Comment