|
||
Title: 7 Boolean Questions Post by continuum on Aug 29th, 2002, 7:44pm With 7 bits, you can have 4 of information (a number between 0 and 15) and 3 of redundance. If at most one of the 7 bits is changed you can find out which was by the break in the redundance. b0, b1, b2, b3 of information a0, a1, a3 of redundance b0 xor b1 xor b2 xor a0 = 0 b0 xor b1 xor b3 xor a1 = 0 b0 xor b2 xor b3 xor a2 = 0 Shouldn't it be in the CS section? Or there are other solutions? |
||
Title: Re: 7 Boolean Questions Post by wayne on Sep 20th, 2002, 7:11am So what are the question? |
||
Title: Re: 7 Boolean Questions Post by Jonathan_the_Red on Sep 20th, 2002, 11:40am on 09/20/02 at 07:11:10, wayne wrote:
Highlight the below to read: Considering your number's representation in binary: 1. Is the least significant bit (bit 0) set? 2. Is bit 1 set? 3. Is bit 2 set? 4. Is bit 3 set? 5. Of bits 0, 1, and 2, are an odd number set? 6. Of bits 0, 1, and 3, are an odd number set? 7. Of bits 0, 2, and 3, are an odd number set? Highlight below to see how to determine the number from the answers: Look at the answers to questions 5, 6, and 7. See if they're consistent with the answers to questions 1, 2, 3, and 4. If exactly one of 5, 6, and 7 is inconsistent with 1, 2, 3, 4, that's the question that was answered incorrectly. 1, 2, 3, and 4 were all answered correctly, and you can calculate the number. If more than one of 5, 6, and 7 is inconsistent with 1, 2, 3, or 4, whichever bit is common to all of the inconsistent "parity" questions was answered incorrectly. (That is, if all three of 5, 6, 7 are inconsistent, question 1 was answered incorrectly. If only 5 and 6 are inconsistent, question 2 was answered incorrectly, and so on) |
||
Powered by YaBB 1 Gold - SP 1.4! Forum software copyright © 2000-2004 Yet another Bulletin Board |