levo

Fundamentals of Data Representation

Error checking and correction

  • 3 things to know
  • Paper 2
Start revising · £5/month

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.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

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

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A driver is .
softwarehardwarestorage

Blank Blitz consolidates the facts

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

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

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

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

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.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

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