wu :: forums
« wu :: forums - 7 Boolean Questions »

Welcome, Guest. Please Login or Register.
Dec 22nd, 2024, 1:50pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   hard
(Moderators: SMQ, william wu, Eigenray, Grimbal, towr, Icarus, ThudnBlunder)
   7 Boolean Questions
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: 7 Boolean Questions  (Read 2716 times)
continuum
Newbie
*





25256369 25256369    
WWW

Gender: male
Posts: 14
7 Boolean Questions  
« on: Aug 29th, 2002, 7:44pm »
Quote Quote Modify Modify

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?
IP Logged
wayne
Guest

Email

Re: 7 Boolean Questions  
« Reply #1 on: Sep 20th, 2002, 7:11am »
Quote Quote Modify Modify Remove Remove

So what are the question?
IP Logged
Jonathan_the_Red
Junior Member
**





   
Email

Gender: male
Posts: 102
Re: 7 Boolean Questions  
« Reply #2 on: Sep 20th, 2002, 11:40am »
Quote Quote Modify Modify

on Sep 20th, 2002, 7:11am, wayne wrote:
So what are the question?

 
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)
IP Logged

My arcade cabinet
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board