GATE Computer ScienceVery hardGATE CS (PYQ pattern)
How many 8-bit patterns have no two adjacent 1 bits and an even number of 1 bits?
- A. 28
- B. 27
- C. 55
- D. 64
Correct answer: B. 27
The number of k-subsets of 8 positions with no two adjacent is C(9 − k, k). For even k: k = 0 gives 1, k = 2 gives C(7,2) = 21, k = 4 gives C(5,4) = 5, total 27 (the odd weights give 28, so 55 in all).
More Digital Logic questions
- A memory word uses the (72, 64) SEC-DED code: a Hamming code with 7 check bits over the 64 data bits (71 bits in all), plus an overall…
- An (8, 4) SEC-DED code uses even-parity Hamming bits at positions 1, 2, 4, data bits d1..d4 at positions 3, 5, 6, 7 (positions numbered…
- A binary block code has minimum Hamming distance 6. A decoder must correct every pattern of up to 1 bit error and, at the same time…
- A binary (n, k) code correcting t errors is perfect if the radius-t spheres around its 2^k codewords exactly fill all 2^n words. Which of…
- A CRC uses the generator x³ + x + 1 (1011). The 9 data bits 110101101 are sent followed by their 3-bit CRC. Four corrupted 12-bit frames…
- A CRC uses the generator x⁴ + x + 1 (10011). Which of these error patterns (as bit strings added by XOR to the codeword) go undetected? I…