4.5 Fundamentals of data representation UPDATED Flashcards
What are natural numbers, and symbol for natural numbers
Whole numbers including zero. N
What are the advantages and disadvantages of floating point representation
Can Represent a Wide Range of Values
Unlike fixed-point representation, floating point can store both very large and very small numbers due to its use of an exponent.
Supports Fractional and Real Numbers
More efficient use of memory
Floating point numbers cannot always represent decimal values exactly, leading to small rounding errors.
more complex and requires additional processing power compared to fixed point
What is a set
a defined collection of objects
What are integers, and symbol for integers
Any positive or negative numbers. Z
what are Rational Numbers
values that can be expressed as fractions including recurring numbers
What are irrational numbers
Numbers that can’t be expressed as a fraction
What are real numbers, and symbol for real numbers
all rational and irrational numbers. Represented by symbol R
What are ordinal numbers
a type of number used to describe the position or order of elements in a sequence or set.
How many numbers can be expressed with n number of bits
2^n
what are the two ways of represting quantities of bytes
binary prefixes (powers of 2) eg. 2^10 bytes
decimal prefixes (powers of 10) eg. 10^2 bytes
What is a bit
fundamental unit of information
What prefixes does binary represnetation take (4)
kibi - 2^10
mebi - 2^20
gibi - 2^30
tebi - 2^40 … bytes
What prefixes are used in decimal prefix (4)
kilo - 10^3
mega - 10^6
giga - 10^9
tera - 10^12
What is fixed point binary and drawbacks
Fixed point binary number have a pre determined number of bits before and after the point.
Easier to process
But they cannot represent the range or accuracy of numbers that may be required.
Difference between signed and unsigned binary
far left bit in signed binary is used to identify if the number is positive or negative
What are the minimum and maximum values for a given number of n bits in unsigned binary
0 and 2^(n-1)
Describe normalisation in the context of binary and floating point numbers
(4)
Normalisation is the process of moving the binary point of a floating point number to:
Provide the maximum level of precision for a given number of bits
ensure there is only one representation of a number.
A positive number has a sign bit of 0 and the next digit is always 1
How do we use two’s complement to represent negative numbers
the negative of a number is represented by the bitwise complement (flipping all bits) of its positive counterpart, followed by adding 1.
How do we use two’s complement to represent postitve numbers
Represented as normal except leftmost bit is a 0 to indicate it is a positive
how can numbers with at fractional part be represented in fixed point form in binary in a given number of bits
In fixed-point representation, a specific number of bits are allocated for the integer part and a specific number for the fractional part.
The position of the binary point (or decimal point) is fixed
Describe how numbers with/out a fractional part be represented in floating point form (4)
Floating Point Form:
It consists of a sign bit, exponent, and mantissa
Sign bit: Indicates whether the number is positive or negative.
Exponent: Determines the position of the binary point (similar to scientific notation in base 10).
Mantissa: The significant digits of the number.
more flexible and allows for a wider range of numbers and precision.
What is the difference between absolute and relative errors when storing and processing data in computer systems
AbsoluteError=∣TrueValue−ApproximateValue∣
Relative error = Absolute error/ True value
What is meant by range when dealing with number systems
The set of all numbers that can be represented using a specific number system
What is meant by precision when dealing with a specific number system
Maxmimum number of significant digits that can be represented