Fundamentals of Data Representation Flashcards
Multiplying unsigned binary integers
11011 x 11 --------- 11011 110110
Two’s Complement
A method of working with signed binary values (positive and negative integers)
http://preview.ibb.co/h0LJEd/E10_EA4_A1_396_C_4_F70_B90_C_76_C8_D9577_C82.jpg
Fixed Point
Where the decimal/binary point is fixed within a number.
https://image.ibb.co/nvFSqJ/fixed_point.jpg
Floating Point Numbers
Where the decimal/binary point can move within a number.
https://youtu.be/dcIDAnfp8Dc?t=5m21s
Advantages of Floating Point over Fixed Point
A wider range of numbers can be produced with the same number of bits as a fixed point.
Advantages of Fixed Point over Floating Point
Quicker to process due to no processing required to move the binary point
More precise despite a more limited range of numbers.
Normalisation Main Use Case
Storing the number with the greatest accuracy possible
How to tell if a number is normalised
If the number is normalised
Positive - binary starts with 01
Negative - binary starts with 10
https://youtu.be/RcY0aiSsyqI?t=3m55s
Overflow
Underflow
When a number is too large to be represented with the number of bits allocated.
When a number is too small to be represented with the number of bits allocated.
Absolute Errors
Relative Error
The actual mathematical difference between the answer and the approximation of it, that you can store.
Relative Error = Absolute Error / Number intended to be stored
Character Code
A binary representation of a particular letter, number or special character.
ASCII
A standard binary coding system for characters and numbers
Unicode
A standard binary coding system that has superseded ASCII
Parity Bit
A method of checking binary codes by counting the numbers of 0s and 1s
Even Parity - If there are an odd number of 1s in a binary code, a 1 parity bit is added to make the number of 1s even. Once the data is received, it is checked to ensure there is an even number of 1s, if there are, dada is assumed to be correct.
Odd Parity 0 If there are an even number of 1s in a binary code, a 1 parity bit is added to make the number odd. Once the data is received, it is checked to ensure there is an odd number of 1s, if there are, dada is assumed to be correct.
Majority Voting
A method of checking for errors by producing the same data several times and checking it is the same each time.
1001 would be send as 111 000 000 111
When the data is checked, you would expect to see patterns of 3 bits.