You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix typos
* Update exercises/intergalactic-transmission/instructions.md
Co-authored-by: András B Nagy <[email protected]>
* Update exercises/intergalactic-transmission/instructions.md
---------
Co-authored-by: András B Nagy <[email protected]>
Copy file name to clipboardExpand all lines: exercises/intergalactic-transmission/instructions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Your job is to help implement
7
7
8
8
A parity bit is simple way of detecting transmission errors.
9
9
The transmitters and receivers can only transmit and receive _exactly_ eight bits at a time (including the parity bit).
10
-
The parity bit is set so that there is an _even_ number 1s in each transmission and is always the first bit from the right.
10
+
The parity bit is set so that there is an _even_ number of 1 bits in each transmission, and the parity bit is always the first bit from the right.
11
11
So if the receiver receives `11000001`, `01110101` or `01000000` (i.e. a transmission with an odd number of 1 bits), it knows there is an error.
12
12
13
13
However, messages are rarely this short, and need to be transmitted in a sequence when they are longer.
@@ -40,7 +40,7 @@ Their parity bits are set to 1 so that they have an even number of 1 bits in the
40
40
They are transmitted as `01110001` and `00011011` (or `71` and `1B` in hex).
41
41
42
42
The last transmission (`1110`) has only four bits of data.
43
-
Since exactly eight bits are transmitted at a time and the parity bit is the right most bit, three 0 bits and then the parity bit are added to make up eight bits.
43
+
Since exactly eight bits are transmitted at a time and the parity bit is the rightmost bit, three 0 bits and then the parity bit are added to make up eight bits.
44
44
It now looks like this (where `_` is the parity bit):
0 commit comments