Coding Systems And Errors Flashcards
What is ASCII(American standard code for information Interchange)
Based on 7 bits of data for each character
128 different characters can be represented
What is extended ASCII
8 Bits of data per character
256 different characters represented
For English language characters, most significant bit will be zero
What is UNICODE
Industry standard code, 16 bits of data, 65,536 characters possible
ASCII and Extended ASCII incorporated
Extended ASCII characters have upper byte set to all zeros
What are the common reasons for errors to happen when communicating between computers
Faulty hardware
Electromagnetic interference
What are the 3 types of error detection systems
- Checksums
-Parity
-Majority voting
What is checksum
A string of digits added to the end of the data to check the data is accurate. Calculated from the data itself using an algorithm
What is Check digit
A special case of a checksum that is only one digit long, appropriate for small blocks of data
What are examples of algorithms for creating check digits and checksums
-ISBN/EAN-13 barcodes (10(pre 2007) - 12 digits with 1-digit checksum)
-Credit card numbers (16 digits with a 2-digit checksum)
-Checking integrity of file downloads
What is the ISBN/EAN-13 algorithm to calculate check digits
1- Add all digits in odd positions
2- Add all digits in even positions and triple the answer
3- Add answers to 1 and 2 together
4- Calculate remainder using mod(10)
5- Check digit = 10 - remainder. (Check digit is 0 if this gives 10)
What is parity system
With even parity an extra bit is added at the end which will make the number of ‘1’s in the sequence even
With Odd parity an extra bit is added which will make the number of ‘1’s in the sequence odd
What is majority voting
Where for each bit in a sequence a fixed number of that bit will be sent, then the receiver will go with the most common value
For example 5 bits will be sent per bit so if one is wrong the majority will be right and the receiver will go with the common value
Name an advantage and disadvantage of using Checksum
Adv
- Can identify one or more errors
Dis
- Needs more processing than other systems
- Can’t correct errors found
Name an advantage and disadvantage of using parity
Adv
- Simple to implement
Dis
- Can only detect an odd number of errors
- Can’t correct errors found
Name an advantage and disadvantage of using majority voting
Adv
- Can correct errors found when receiver takes the common value
Dis
- Requires a lot more data to be sent, due to the bits sent to create the majority