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
Copy file name to clipboardExpand all lines: exercises/practice/intergalactic-transmission/.docs/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):
There are 64 codons which in turn correspond to 20 amino acids; however, all of the codon sequences and resulting amino acids are not important in this exercise.
15
-
If it works for one codon, the program should work for all of them.
16
-
However, feel free to expand the list in the test suite to include them all.
17
-
18
-
There are also three terminating codons (also known as 'STOP' codons); if any of these codons are encountered (by the ribosome), all translation ends and the protein is terminated.
19
-
20
-
All subsequent codons after are ignored, like this:
0 commit comments