LIST
FEGURÐ OG VELLÍÐAN
HANDVERK
MENNING OG SAGA
SKEMMTUN
UMHVERFI
MATUR OG DRYKKUR
ÖFUGVERKFRÆÐI
VÍSINDI
ÍÞRÓTTIR
TÆKNI
KLÆÐANLEG TÆKNI
Parity Check
Mark

Búin til af

Mark

20. ágúst 2026FI
0
0
0
0
0

Parity Check

Add one extra bit to a block of data, chosen so that the total number of 1s is always even. If a single bit flips anywhere in transmission or storage, the count becomes odd and the error announces itself. One bit of overhead, and it costs a single count to verify. It cannot tell you WHICH bit went wrong, and it is blind to two simultaneous errors — but it is the cheapest error detection that exists, and the idea of adding structured redundancy so that corruption becomes visible is the seed of everything from checksums to the codes that let a spacecraft send pictures across the solar system. Arrange the same trick in two dimensions and it stops merely detecting errors and starts correcting them.
Byrjandi
1 hour

Leiðbeiningar

1

Add a parity bit

One extra bit that makes the count come out even.

  1. Write a seven-bit binary value.
  2. Count the 1s.
  3. Append a 0 if that count is already even, a 1 if it is odd.
The whole eight-bit block now always contains an even number of 1s, by construction. The receiver does not need to know what was sent — only that the count must be even, which is a property they can check with no other information.

Efni fyrir þetta skref:

Graph PaperGraph Paper1 pad
Graphite Pencil SetGraphite Pencil Set1 sett
2

Corrupt it and get caught

Play sender and attacker.

  1. Hand a parity-protected block to someone else.
  2. Have them flip exactly one bit, anywhere, without telling you which.
  3. Count the 1s.
Odd count, error detected — every time, wherever the flip happened, including in the parity bit itself. That universality is what makes it worth one bit.
3

Find both blind spots

Attack it deliberately, as with casting out nines.

  1. Flip TWO bits and re-count.
  2. Note the parity is correct again and the error is invisible.
  3. Also note that with a single detected error you cannot say WHICH bit is wrong.
Two limits, both fundamental: even numbers of errors cancel out, and detection is not correction. Knowing that something is wrong without knowing what is often useless if you cannot ask for a retransmission — which is exactly the situation of a probe at Jupiter.
4

Go two-dimensional and correct the error

Now make it locate the fault, not just report it.

  1. Lay 16 bits out in a 4×4 grid.
  2. Add a parity bit to each row and to each column.
  3. Have someone flip one bit; check every row and every column.
Exactly one row fails and exactly one column fails, and their intersection is the broken bit — so you can flip it back. Redundancy arranged in two directions turns detection into correction, and that is the entire idea behind Hamming codes and the RAID schemes that survive a failed disk.

Efni fyrir þetta skref:

Cardstock Assorted Pack (50 Sheets)Cardstock Assorted Pack (50 Sheets)1 pakki
5

History and context

Parity is as old as the machines that needed it. Early relay and valve computers were unreliable enough that checking mattered constantly, and parity bits were used in punched tape, magnetic tape and memory from the beginning.

Richard Hamming's frustration is the founding story of the field. Working at Bell Labs in the 1940s, he ran jobs on a relay machine over the weekend with no operators present; the machine would detect a parity error, give up, and drop the job, so he would return on Monday to nothing. His response — if it can detect the error, why can it not fix it — produced the Hamming code in 1950, which locates and corrects single-bit errors using cleverly overlapping parity checks rather than a full grid.

Where it goes from there: Reed-Solomon codes handle bursts of errors and are why a scratched CD still plays and why QR codes survive being partly obscured. Deep space probes use codes so strong that data arrives intact from billions of kilometres at signal levels barely above noise — Voyager's pictures reached Earth because of error correction, not despite the distance.

The general principle is worth naming because it recurs far outside computing: deliberately adding structured redundancy makes corruption detectable, and adding enough of it makes corruption repairable. The cost is always bandwidth or storage, and the design question is always how much error you expect and how expensive a retransmission would be.

Efni

3

Tengd Blueprint

Þessi blueprint deila þekkingu — tækni, efni eða meginreglur

CC0 opinbert ríki

Þessi teikning er gefin út undir CC0. Þér er frjálst að afrita, breyta, dreifa og nota þetta verk í hvaða tilgangi sem er, án þess að biðja um leyfi.

Studdu smiðinn með því að kaupa vörur í gegnum teikningu hans þar sem hann fær þóknun smiða sem seljendur ákvarða, eða búðu til nýja endurskoðun á þessari teikningu og tengdu hana sem tengingu í þinni eigin teikningu til að deila tekjum.

Umræða

(0)

Skrá inn til að taka þátt í umræðunni

Hleður athugasemdum...