Prove that in a self-complementing code the sum of the
weights must be 9?

Answer Posted / aamod joshi

Lets assume that the weights are w1,w2,w3 and w4.

Assume the first code is X1X2X3X4 and second number is
Y1Y2Y3Y4 where X1X2X3X4 + Y1Y2Y3Y4 = 9. e.g. if the weights
are 2,4,2,1 then 1011 = (1*2)+(0*4)+(1*2)+(1*2) = 5 and
0100 = (0*2)+(1*4)+(0*2)+(0*2)= 4 i.e. 1011+0100=4+5=9.

Putting this in mathematical equation,
(W1X1 + W2X2 + W3X3 + W4X4)
+ (W1Y1 + W2Y2 + W3Y3 + W4y4)
= 9

Which means
W1(X1+Y1) + W2 (X2+Y2) + W3 (X3+Y3) + W4 (X4+Y4) = 9

Now, as X1X2X3X4 and Y1Y2Y3Y4 are self-complementing, at a
time either of X1 and Y1 can be 1, the other will be zero.
Same for X2,Y2 and X3,Y3 and X4,Y4. Which further means
that X1+Y1 = 1, X2+Y2=1, X3+Y3=1, X4+Y4=1.

So,
W1(1) + W2(1) + W3(1) + W4(1) = 9

i.e. W1+W2+W3+W4 = 9 thus it proves that sum of the weights
has to be 9.

Is This Answer Correct ?    86 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between core java and advance java

1475


how u test the idoc in inbound and outbound?

1580


What is spooling and buffering?

1280


i m doing engg in IT .for getting job which courses i have to do?

1495


why does the array will be start on size 0?

1580






what are the various height of GSM mount and its base width ashim.port@gmail.com

1402


Give a brief description of the following terms: a) Play head b) Symbol c) Tweening d) ActionScript e) Frame rate f) Library panel g) Masking h) Context – sensitive Property Inspector i) Bandwidth Profiler j) Frame Label

1999


Q1 Design a webpage for a hotel which displays all the information of the hotel such as rooms available, facilities, and packages along with rate list. Apply the different tags available to give it a good style.

1292


how to reuse an outdated laptop?

1574


a book consists of chapter ,chapter consist of sections and sections consists of subsections.construct a tree and print the node.

5003


what are the Types of End User in dbms?

2776


How can I boldly face the interview? Request:I am eagerly waiting for your replay.

2505


which are the books available in, India for STONE COLUMNS/GRANULAR PILES?

1329


hey,,,hi have taken an emergency date of 21st july...i was continuously checking for dates n i was not able to get a normal date n my school is starting from 8th of september...so plz tell me can i get a rejection based on this, that i have taken an emergency date?????

1359


is the RKDF university is aicte approved for b.tech in computer

1535