# Introduction
If you have learnt python, you may heard of a datatype call set
, in math set is a collection of objects, which may seems similar to what the set in python. Following content will you what symbols are there related to set base on you have the concept that what set
and subset
is.
Noted that this post are still on progress and waiting for update of the blogger.
# Symbols
We having symbols in set and same as logic to reduce the time writing the redundant words, you can find most of them with same meaning in logical expression.
- In
if an element in the set ;
- Subset
subset is the same meaning as implies in logic
- Equality
Say , means that the element in A and B is completely same, i.e.
- Universal identifier
It's the largest possible set under consideration
- Empty Set
The set contain no element
- Union
Same as , means the element appears in either both set.
- Intersection
Same as , means the element appears in both set.
- Difference
Same as , means the element appears in A but not B
- Complement
Same as , means the element not appears in B
# Simple distinguishment of sets
We can separate set into 2 type in simple basis: Finite
and Infinite
# Finite
A finite set have a specified amount of element, we usually write it as: , stating that set A has n distinct element. If we can't provide n, we say it as an infinite set.
# Infinite
A infinite set is the opposite of finite set.
E.g. Universal identifier is one example, if the number space is all positive integers.
# Cartesian Products
In fact, we can do "multiplication" on sets, like . But the product will be somethings special, It is a datatype call tuple
.
# Tuple
If you python, you should heard of it. Tuple is the ordered collection of various element.
We write tuple like this:
# Cartesian Products
What , gives you is in fact some sets of tuple. Those are all possible combination of elements in set A and set B, i.e. .
Although , but , As the amount possible combinations will always the same.
# Relation
A relation between sets is simply means the subset of cartesian product of those sets.
Relations can have either have actual meaning or not. Following is an example of relation with meaning
So if $(x,y) \in R$, we can also write $x\ R\ y$, else $x\ \not R \ y$