Data Representation 1 Flashcards

1
Q

What are Natural Numbers (N)?

A

positive integers (whole numbers) including 0.

N = {0, 1, 2, 3 …}

(infinite amount so impossible to define the set entirely)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are Integer Numbers (Z)?

A

Whole numbers that can be positive or negative.

Z = { -3, -2, -1, 0, 1, 2, 3}

The natural number set is inside of Z

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are Rational Numbers (Q)?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are Irrational Numbers?

A

Numbers that cannot be expressed as a fraction and are often special cases.

Pi, Root 2, e, Golden Ratio

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are Real Numbers (R)?

A

All of the sets of numbers are considered real. Any numerical value.

-4/5, root 9, -100/50

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are Ordinal Numbers?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a Finite Set?

A

A set that had a limited number of elements.

{2, 3, 4}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is an Infinite Set?

A

A set that has an unlimited number of elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Cardinality?

A

The number of elements in a set.

e.g. how many eggs in a box.

{2, 4, 6, 8}
cardinality 4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a Countable Set?

A

The elements in a set can be tallied.

natural integer(s)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a Countably Infinite Set?

A

Elements that can be tallied but the end would not be reached.

• N (natural numbers)
• Z (integer numbers)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is an Empty Set?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are Subsets?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Difference?
(set operation)

A

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 }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Intersection?
(set operation)

A

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 }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Union?
(set operation)

A

Joins two sets together so that the new set is a combination of both original sets.

Each value in a set can only appear once.

A = { 0, 1, 3, 5, 7, 9 }
B = { 0, 2, 4, , 8 }
AuB = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }

17
Q

What is the CARTESIAN Product?
(set operation)

A

The set of all possible ordered pairs whose first component is a member of the first set and whose second component is a member of the second set.

A = { 1, 2, 3 }
B = { A, B }
A x B = { (1, A), (1, B), (2, A), (2, B), (3, A), (3, B) }

18
Q

What is Unsigned binary (used for)?

A

To represent positive numbers

19
Q

What is Signed binary (used for)?

A

To represent negative numbers

20
Q

How do you calculate the range of numbers that can be represented by a given number of bits?

A

2^n - 1

21
Q

How do you calculate the Absolute Error?

A

given value - actual value

22
Q

How do you calculate the Relative Error?

A

absolute error/actual value

23
Q

Why are Floating Point Numbers normalised?

A

To provide maximum level of precision for a given number of bits.

24
Q

What are the Advantages and Disadvantages to Floating Point?

A

Allows for representation of a greater range of values with a given number of bits than fixed point.

(this is because FP can take advantage of positive and negative exponents)

Large Exponent + Small Mantissa = Large range, Little precision

Small Exponent + Large Mantissa = Small range, good precision

25
Q

What are the Advantages and Disadvantages to Fixed Point?

A

Binary point close to the left = good precision, small range

Binary point close to the right = decreasing precision, large range

26
Q

What is Underflow?

A

not enough bits available

27
Q

What is Overflow?

A

too large to be represented with the given number of bits