CS FundamentalsHardGATE CS
A single-error-correcting Hamming code protects m data bits with r check bits satisfying 2^r >= m + r + 1. How many check bits are needed for m = 120 and for m = 121 data bits respectively?
- A. 7 and 8
- B. 6 and 7
- C. 7 and 7
- D. 8 and 8
Correct answer: A. 7 and 8
For m = 120, r = 7 works because 128 >= 120 + 7 + 1 = 128. For m = 121 the same r fails (128 < 129), so 8 check bits are required.
More Computer Networks questions
- A 12-bit CRC uses a generator polynomial of degree 12 with non-zero constant term. What are the probabilities that a burst error of length…
- A TCP connection runs over a 1 Gbps path with RTT = 100 ms. The 16-bit window field alone can express at most 65535 bytes; with the…
- A TCP connection sends at 40 Gbps. The sequence number counts bytes in a 32-bit field. Approximately how long does it take for the…
- In slotted ALOHA the total number of transmission attempts per slot is Poisson distributed with mean G = 1.5. What fraction of slots…
- A router output link runs at 10 Mbps and carries packets of average size 1250 bytes with exponentially distributed sizes; arrivals are…
- Six bridges B1-B6 (bridge IDs B1 < B2 < ... < B6, equal priorities) run the spanning tree protocol over these links with costs: B1-B2 4…