Chapter 5 Representing Data Flashcards
How many bits are used for storing ASCII characters?
7
Drawbacks of ASCII
One language
Small amount of characters
How many characters does Unicode store?
Over 120k
Why was unicode made
to store more characters across several charcters
drawbacks of unicode
uses more bits
What is a parity bit
A form of error detection which makes the number of 1’s even (for even parity) or odd (for odd parity) by changing the last bit.
The 8th ascii bit is a parity bit
Drawbacks of a parity bit
DOuble corruption
Parity bit corruption
What is a check digit
Added to the end of data to check (but not correct) the data
How is a check digit made
By find the digital root of a number (Dividing by 9 and the remainder is the check digit, unless it is 0 where 9 is then the check digit (unless the data was already 0))
Majority voting is?
A method which can correct data by trippling the data sent e.g.
101 -> 111000111
How does majority voting work?
It takes the tripled value and gets takes the most comman bit of 3. e.g.
101110001 -> 110
Drawbacks of majority voting
Triples the data being sent
What are finite state machines
Its used to recognise patterns within data
What do finite state machines do?
Takes a set of data and runs it through various checks and outputs new data, e.g. it could be used for calculating negative binary numbers
How to use a FSM
Take the first value of the data and see what path that value takes, then if the path leads to itself repeat with the next value if the path leads elsewhere start from there with the next value and so on.
What does signed binary mean?
Binary using two’s compliment
What is unsigned binary
Binary that doesnt use twos compliment
Which bit is the negative bit in tow’s compliment?
The most significant bit
How do you get a negative number?
Represent the positive number in binary, flip the bits so 1 = 0 and 0 = 1 and then add 1 e.g.
00110101
11001010
11001011
How do you do binary subtraction?
Do the positive number plus the negative number. (make the negative number negative using twos compliment then add it to the positive number, if there is an overflow ignore that bit)