mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 00:04:22 +02:00
DOC: Improve CCT documentation for HammingCodes (#167)
This commit is contained in:
@@ -272,8 +272,9 @@ The list contains the name of (i.e. the value returned by
|
||||
| HammingCodes: Integer to Encoded Binary | | You are given a decimal value. |
|
||||
| | | Convert it into a binary string and encode it as a 'Hamming-Code'. eg: |
|
||||
| | | Value 8 will result into binary '1000', which will be encoded |
|
||||
| | | with the pattern 'pppdpddd', where p is a paritybit and d a databit, |
|
||||
| | | or '10101' (Value 21) will result into (pppdpdddpd) '1001101011'. |
|
||||
| | | with the pattern 'pppdpddd', where p is a paritybit and d a databit. The encoding of |
|
||||
| | | 8 is 11110000. As another example, '10101' (Value 21) will result into (pppdpdddpd) |
|
||||
| | | '1001101011'. |
|
||||
| | | NOTE: You need an parity Bit on Index 0 as an 'overall'-paritybit. |
|
||||
| | | NOTE 2: You should watch the HammingCode-video from 3Blue1Brown, which |
|
||||
| | | explains the 'rule' of encoding, |
|
||||
|
||||
Reference in New Issue
Block a user