Let C be a binary linear code. Show that either every member of Chas even weight or exactly half the members of C have even weight.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Let C be a binary linear code. Show that either every member of C
has even weight or exactly half the members of C have even weight.

Expert Solution
Step 1

Let's see the solution. 

Step 2

Since I wrote the answer where the disputed statement appeared and the OP and @GitGud's discussion in the comments appears to be moving far too slowly toward a resolution, here are a few suggestions for an alternative strategy that will compel you to learn some crucial information about binary vectors along the way.

Assume that C stands for a linear binary code. Divide C into two subsets, C0 and C1, each containing all the words with an even Hamming weight and all the words with an odd Hamming weight.

Given that C' is a binary code, proving its linearity just needs demonstrating that the product of C"s two codewords occurs once more in C'. Let U and V be the parts of U and V that are in the linear code C (i.e., U and V without their parity check bits), where U and V are codewords of C'. The sum of the parity check bits for U' and V' is now U' + V' = U + V . U + V is in C since C is linear. The parity check for (U + V) must be equal to the total of the parity check bits of U' and V' in order for U' + V' to be in C'. U + V has an equal weight if U and V have the same parity (both even or both odd). The parity check bits of U' and V' in this instance are equal, therefore their sum is 0, making this the proper parity check for U + V. U + V, on the other hand, has an odd weight if U and V have distinct parities. Since one of them is 1 and the other is 0, the sum of the parity check bits for U' and V' is 1, making this the proper parity check for the odd weight U + V. Thus, U' + V' is in C' and C' is linear in all instances where the parity checks succeed.

 

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Problems on NP complete concept
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education