levo

Fundamentals of Data Representation

Error checking and correction

  • 3 things to know
  • Paper 2

Overview

Recall questions on parity bits, majority voting, checksums and check digits, what each detects, and which of them can correct an error rather than only spot one.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Numbers

The seven data bits 1010011 are to be sent. State the parity bit under even parity and under odd parity.

Evaluation

Describe how a checksum is used.

Evaluation

Describe how a check digit works.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Why do transmitted or stored data need error checking?

    Model answer

    Because bits can be corrupted. Electrical interference, noise on a line, a weak signal, a damaged storage medium or a mistyped entry can all change a 0 into a 1 or the reverse. Without a check, the receiving system has no way of knowing that what arrived is not what was sent, so it would act on wrong data.

  2. 2

    Describe how a parity bit works.

    Model answer

    An extra bit is added to each group of bits, usually to each byte, before it is sent. Its value is chosen so that the total number of 1s in the group obeys an agreed rule. The receiver counts the 1s in what arrives; if the rule is broken, at least one bit has been corrupted and the data can be rejected or a retransmission requested. Sender and receiver must agree the rule beforehand.

  3. 3

    The seven data bits 1010011 are to be sent. State the parity bit under even parity and under odd parity.

    Model answer

    The data contains four 1s. Under even parity the total number of 1s must be even, and four already is, so the parity bit is 0. Under odd parity the total must be odd, so the parity bit is 1, making five 1s in all.

  4. 4

    What errors can a parity bit detect, and what can it not do?

    Model answer

    It detects any odd number of corrupted bits — one, three, five — because the count of 1s changes parity. It cannot detect an even number of errors, since two bits flipping restores the original parity, and it is completely blind to two bits swapping values. It also cannot say which bit is wrong, so it can never correct an error, only report that one has occurred.

  5. 5

    Describe majority voting.

    Model answer

    Each bit is transmitted more than once, typically three times. The receiver compares the copies of each bit and takes the value that appears most often as the true value. So if the three copies of a bit arrive as 1, 1, 0 the bit is taken to be 1, on the assumption that a single copy was corrupted.

  6. 6

    A receiver using three-fold majority voting receives the triples 111, 101 and 000. What data bits does it accept?

    Model answer

    1, 1 and 0. In the first triple all copies agree. In the second, two of the three copies are 1 so the bit is taken as 1 and the corrupted middle copy is corrected. In the third all copies agree on 0.

Other ways to work this

The same content, four other ways.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

Fundamentals of Programming
Fundamentals of Data Structures
Fundamentals of Algorithms
Theory of Computation

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

A driver is .
softwarehardwarestorage

Blank Blitz makes facts automatic

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

AThe integer 5 is 0101.
B0.75 is 1/2 + 1/4.
CThe fraction bits are 1100.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

Head means the first single element of a non-empty list.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Fundamentals of Data Representation, on a schedule.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.