Information Coding Systems Flashcards

(21 cards)

1
Q

What is a character?

A

Single unit of textual information

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

What is a character set?

A

Scheme of mapping that maps a set of characters to binary numbers recognised by a computer system

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

What is a character code?

A

A UNIQUE integer representation of a character that is interpreted by a computer

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

What is ASCII?

A

A character set created to encode alphanumeric characters (English language) as well as special characters (punctuation symbols + non printable control codes)

7 bits to store each character

In 8 bit systems, extra bit can be used as parity bit

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

What is Unicode?

A
  • A character set developed with the aim of representing every possible character.
  • It uses up to 32 bits to represent each character
  • First 128 characters are the same as ASCII making it backwards-compatible
  • UTF-8 and UTF-16 use variable numbers of bytes to represent characters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Advantages of parity bits?

A
  • Simplest implementation of error detection
  • Very little overhead as it only involves one additional bit.
  • Can make use of spare bit in ASCII
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How is a parity bit used by a computer?

A
  1. A parity bit is generated with the value of the parity bit is set to either 1 or 0 to satisfy the type of parity being enforced
  2. Data sent to receiver
  3. The number of 1s is counted by receiver
  4. If number of ones don’t match expected parity (odd or even), then a corruption is detected and data is usually retransmitted
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What were the limitations of ASCII?

A

7 bits per character - cant represent more than 128 characters - mostly from English languages

Limited usefulness in other countries using languages with different characters/symbols

Extended ASCII character set introduced - full 8 bits - represent up to 256 characters

still not enough to represent all symbols used by different languages around the world.

X ASCII different versions for different languages

*Documents unreadable if incorrect character encoding used by a text reading application

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

What are the advantages of the parity bit?

A
  • Relatively easy to implement
  • Does not require significant extra data to be included in the transmission or retrieval
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the disadvantages of the parity bit?

A
  • If an even number of bits corrupted, parity is not affected and corruption is not detected
  • Not possible to identify which bit has been corrupted
  • Data correction not possible
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is majority voting?

A

Each bit is sent multiple times (odd number greater than 2). The receiver checks each group of 3 bits and if they are not all the same it assumes the one it received the most copies of is the correct/authoritative value of the bit

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

What are the advantages of majority voting?

A
  • Allows for error correction as it knows exactly where the error occurred
  • No need for retransmission
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the disadvantages of majority voting?

A
  • Triples the amount of data that is sent
  • Is not entirely reliable as 2 transpositional errors in a group of 3 bits can cause an incorrect correction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a check digit?

A

Extra digit appended to a number in order to confirm that the number has been transmitted or retrieved correctly

algorithm applied to number, value of result compared to check digit

if the values do not match then an error has occurred and number is retransmitted/rescanned

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

What is a checksum?

A

Similar to a check digit except a larger sum is transmitted with the data rather than a single digit

checksum derived by applying algorithm to data before transmission or storage.

algorithm applied to received data, if result matches checksum, data is unchanged

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

What makes a good checksum or check digit algorithm?

A

It will produce very different values even if there is a small change to the original data to make it clear that there is corruption

17
Q

What are the uses of a checksum?

A
  • Confirm integrity of whole files or applications
  • Checksum is provided by the owners/publisher so that the checksums of applications can be checked to ensure file/application correctly download + not corrupted
18
Q

How can data become corrupted?

A
  • Cosmic rays
  • Magnets changing magnetic media
  • Scratches on a CD
  • Cables become damaged
19
Q

How does a check sum work?

A
  1. Checksum is calculated from the binary data before it is transmitted using a checksum algorithm
  2. Checksum is recalculated when the packet is received
  3. If the checksum received in packet matches recalculated checksum then data is correct. If it doesn’t match, it is corrupted
20
Q

Decimal digit character representations

A
  • character representations of decimal numbers take up more space to store and more bandwidth to transmit as they require 7/8 bits per digit
  • not possible to perform mathematical operations on the character representation of digits without casting them to numeric types

*important to cast

21
Q

Why is error checking important?

A

checks for corruption of data to ensure that data is not corrupt