CS FundamentalsHardGATE CS
A memory word holds 57 data bits protected by a SEC-DED code (single-error correcting, double-error detecting) built as a Hamming code plus one overall parity bit. How many check bits are needed in total?
- A. 6
- B. 7
- C. 8
- D. 5
Correct answer: B. 7
Hamming SEC needs 2ʳ ≥ m + r + 1: r = 6 gives 64 ≥ 57 + 6 + 1 = 64, just enough, and one overall parity bit adds double-error detection: 7 check bits, a (64, 57) code. Stopping at SEC gives 6, taking r = 7 before adding parity gives 8, and ⌈log₂ 57⌉ − 1 = 5 ignores the m + r + 1 term.
More Computer Networks questions
- Data is arranged as a block with an even-parity bit for every row and every column (2-D parity). Which error pattern is NOT detected?
- A 100 Mbps CSMA/CD network uses a 64-byte minimum frame. Signals travel at 2 × 10⁸ m/s, and the hubs on the longest path add a total…
- For classic Ethernet the efficiency is often approximated as 1/(1 + 5a), where a = propagation delay / frame transmission time. What is it…
- Five stations share a slotted-ALOHA channel; each transmits in a given slot independently with probability 0.2. What fraction of slots…
- Router C runs distance-vector routing. Its link costs are C–B 6, C–D 3, C–E 5. It receives these vectors (distances to A, B, C, D, E, F)…
- A BGP router (no vendor-specific weight, all routes learned over eBGP, all valid) has three routes to 203.0.113.0/24: X: LOCALPREF 200…