A decimal instrument uses an excess-3 code: each decimal digit is encoded as the four-bit unsigned binary representation of that digit plus 3. Each row below is one independent four-bit group.
Decode each group. Enter an exact integer from 0 through 9 if it represents a decimal digit, or enter invalid otherwise. Validity is determined by the stated encoding rule.
Unlock full course notes by signing up
Convert a position label
A position sensor converts the five-bit unsigned binary index 101101011010110 into binary-reflected Gray code. Bits are written most significant first. The conversion copies the leftmost binary bit and forms each remaining Gray bit by taking the exclusive OR of adjacent binary bits. Which codeword should the sensor produce?
What a passing parity check establishes
A receiver expects two 8421 BCD digits followed by one even-parity bit. Parity covers all nine bits. It receives data groups 0110 00110110\ 00110110 0011 and a parity bit of 000. The transmitted word is unknown, and the channel may flip bits without inserting or deleting them. Which conclusion is justified?
Count words that satisfy both constraints
A meter transmits a fixed-length word containing three 8421 BCD digits followed by one even-parity bit. All decimal readings from 000000000 through 999999999 are permitted, including leading zeros. A valid word must contain three valid BCD digit groups and have an even total number of ones across all thirteen bits.
Of all possible thirteen-bit patterns, how many are valid meter words and how many are invalid?
When the nearest message is wrong
A telemetry link uses exactly four valid codewords:
The Hamming distance between two equal-length patterns is the number of positions in which their bits differ. The code's minimum distance, dmind_{\min}dmin, is the smallest distance between any two distinct valid codewords.
A validity checker rejects any received pattern outside the valid set. It guarantees detection of every error pattern containing from 1 through dmin−1d_{\min}-1dmin−1 flipped bits. A nearest-codeword decoder guarantees correction of up to ⌊(dmin−1)/2⌋\lfloor(d_{\min}-1)/2\rfloor⌊(dmin−1)/2⌋ flipped bits, where ⌊x⌋\lfloor x\rfloor⌊x⌋ means the greatest integer no larger than xxx.