MESSAGE
DATE | 2014-12-14 |
FROM | Ruben Safir
|
SUBJECT | Subject: [LIU Comp Sci] NOTE ERROR:****Error in the Hamming notes on the final review
|
From owner-learn-outgoing-at-mrbrklyn.com Sun Dec 14 05:18:55 2014 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix) id 8A991161154; Sun, 14 Dec 2014 05:18:55 -0500 (EST) Delivered-To: learn-outgoing-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 28) id 74528161160; Sun, 14 Dec 2014 05:18:55 -0500 (EST) Delivered-To: learn-at-nylxs.com Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mrbrklyn.com (Postfix) with ESMTP id 9F3F4161154 for ; Sun, 14 Dec 2014 05:18:54 -0500 (EST) Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 2FC74133B2; Sun, 14 Dec 2014 05:18:53 -0500 (EST) Received: by panix2.panix.com (Postfix, from userid 20529) id DEA8033C87; Sun, 14 Dec 2014 05:18:53 -0500 (EST) Date: Sun, 14 Dec 2014 05:18:53 -0500 From: Ruben Safir To: Samir Iabbassen Cc: learn-at-nylxs.com Subject: [LIU Comp Sci] NOTE ERROR:****Error in the Hamming notes on the final review Message-ID: <20141214101853.GA4200-at-panix.com> References: <546A06A4.1070007-at-gmail.com> <20141117165251.GB13692-at-panix.com> <546A4D02.5050004-at-gmail.com> <546A5DDC.7020104-at-panix.com> <2D3BE06BCB240643A778D84268606B30026EB9BC58-at-B-EXH-MBX2.liunet.edu> <548A02BD.2090209-at-panix.com> <2D3BE06BCB240643A778D84268606B30027E907E50-at-B-EXH-MBX2.liunet.edu> <548CBB80.5080702-at-panix.com> <2D3BE06BCB240643A778D84268606B30027E907EDE-at-B-EXH-MBX2.liunet.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2D3BE06BCB240643A778D84268606B30027E907EDE-at-B-EXH-MBX2.liunet.edu> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: owner-learn-at-mrbrklyn.com Precedence: bulk Reply-To: learn-at-mrbrklyn.com
I'm looking at the hamming notes and I don't think it is right.
P4=P4 (x)? 0 (x)? 1 (x)??0 =1
Not accoding to how I see it
d8 d7 d6 d5 p4 d4 d3 d2 p3 d1 p2 p1 1100 1011 1010 1001 1000 0111 0110 0101 0100 0011 0010 0001 (r = 4) 1 0 1 0 1 0 0 1
P4 is 1 (x) 0 (x) 1 (x) 0 which is 0 (not 1)
The origianl party writen p4 -> p1 0010
After the flip of 5
0111
0010 0111 _____ 0101
which is the 5th position...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I don't understand why this is being done BACKWARD though.
According to the Specification why are you not counting from left to right from position 1 -> 12. It should look like this:
Draw the diagram
p1 p2 d1 p3 d2 d3 d4 p4 d5 d6 d7 d8 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 (r = 4) 1 0 1 0 1 0 0 1
p1 ~ xor(d1,d2,d4,d5,d7) all 0001 positions 1 xor 0 xor 0 xor 1 xor 0 = 0
p2 ~ d1 d3 d4 d6 d7 1 xor 1 xor 0 xor 0 xor 0 = 0
p3 ~ d2 d3 d4 d8 0 1 0 1 = 0
p4 ~ d5 d6 d7 d8 1 0 0 1 = 0
Parity Bits are 0000 Total Message is
0010010001001
if 5 flips
p1 p2 d1 p3 d2 d3 d4 p4 d5 d6 d7 d8 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 (r = 4) 1 0 1 0 0 0 0 1
the calculated parity is now
p1 10000 = 1 p2 11000 =0 p3 0101 = 0 p4 0001 = 1
0000 1001 ____ 1001 = d5
which means I need to read the question better because you asked to flip posiiton 5 in the stream and not position 5 of the data .... but the math all works.
NOTE: I couldn't understand why you reverse the order? Maybe this was an IBM Bigended bits problem. I don't know but it makes it a PIA to map out. And I thought it was inconstitant with the textbook but then I notices that although the text maps the data data like I do, he then, at the last step says
"Let us verify that this scheme works with an example. Assume that the 8-bit input word is 00111001, with data bit D1 in the rightmost position."
Damn - why do this backwards!
|
|