Data Representation 1 Flashcards
What are Natural Numbers (N)?
positive integers (whole numbers) including 0.
N = {0, 1, 2, 3 …}
(infinite amount so impossible to define the set entirely)
What are Integer Numbers (Z)?
Whole numbers that can be positive or negative.
Z = { -3, -2, -1, 0, 1, 2, 3}
The natural number set is inside of Z
What are Rational Numbers (Q)?
Any number that can be expressed as a fraction: (integer over integer), or decimal that has a finite number of place or a repeating set.
5/1, 8, -3, 7/8, 12/15
N+Z are inside Q
What are Irrational Numbers?
Numbers that cannot be expressed as a fraction and are often special cases.
Pi, Root 2, e, Golden Ratio
What are Real Numbers (R)?
All of the sets of numbers are considered real. Any numerical value.
-4/5, root 9, -100/50
What are Ordinal Numbers?
Ordinal numbers indicate the positions of the values.
e.g. {“alpha”, “beta”, “gamma”}
the object “alpha” is the 1st, “beta” is the second and so on.
What is a Finite Set?
A set that had a limited number of elements.
{2, 3, 4}
What is an Infinite Set?
A set that has an unlimited number of elements.
What is Cardinality?
The number of elements in a set.
e.g. how many eggs in a box.
{2, 4, 6, 8}
cardinality 4.
What is a Countable Set?
The elements in a set can be tallied.
natural integer(s)
What is a Countably Infinite Set?
Elements that can be tallied but the end would not be reached.
• N (natural numbers)
• Z (integer numbers)
What is an Empty Set?
Represented by either {} or the symbol 0(w a cross).
The empty set has no elements.
An empty set has a cardinality of 0. It does not contain 0.
What are Subsets?
When all the elements of one set are contained in another- it is a subset.
Symbol: less than but curved
If the subset has fewer elements than the other, it is a PROPER subset.
AcB
What is Difference?
(set operation)
Can be written as A|B or A - B. Takes one set from another.
A = { 1, 3, 4, 6, 7, 8 }
B = { 0, 3, 5, 6, 7, 9 }
A - B = { 1, 4, 8 }
What is Intersection?
(set operation)
joins two sets together such that the resulting set contains elements common to both.
(elements can only appear once in the new set).
A = { 1, 3, 4, 6, 7, 8 }
B = { 0, 3, 5, 6, 7, 9 }
AnB = { 3, 6, 7 }