Does a binary code with length 6, size 32 and distance 2 exist?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












8












$begingroup$


The problem is to prove or disprove the existence of $C$, s.t., $|c| = 6,forall cin C$; $|C| = 32$; $d(c_i,c_j)geq2,1leq i<jleq32$. ($d$ stands for hamming distance)



I tried to construct a satisfying code. The best I can get is to let $C = C'times C'$, a concatenation of $C' = 000,011,110,101$, which is of size 16. 32 happens to be the theoretical upper bound of the size, now I don't know what to do next so as to solve the problem.










share|cite|improve this question











$endgroup$
















    8












    $begingroup$


    The problem is to prove or disprove the existence of $C$, s.t., $|c| = 6,forall cin C$; $|C| = 32$; $d(c_i,c_j)geq2,1leq i<jleq32$. ($d$ stands for hamming distance)



    I tried to construct a satisfying code. The best I can get is to let $C = C'times C'$, a concatenation of $C' = 000,011,110,101$, which is of size 16. 32 happens to be the theoretical upper bound of the size, now I don't know what to do next so as to solve the problem.










    share|cite|improve this question











    $endgroup$














      8












      8








      8





      $begingroup$


      The problem is to prove or disprove the existence of $C$, s.t., $|c| = 6,forall cin C$; $|C| = 32$; $d(c_i,c_j)geq2,1leq i<jleq32$. ($d$ stands for hamming distance)



      I tried to construct a satisfying code. The best I can get is to let $C = C'times C'$, a concatenation of $C' = 000,011,110,101$, which is of size 16. 32 happens to be the theoretical upper bound of the size, now I don't know what to do next so as to solve the problem.










      share|cite|improve this question











      $endgroup$




      The problem is to prove or disprove the existence of $C$, s.t., $|c| = 6,forall cin C$; $|C| = 32$; $d(c_i,c_j)geq2,1leq i<jleq32$. ($d$ stands for hamming distance)



      I tried to construct a satisfying code. The best I can get is to let $C = C'times C'$, a concatenation of $C' = 000,011,110,101$, which is of size 16. 32 happens to be the theoretical upper bound of the size, now I don't know what to do next so as to solve the problem.







      information-theory coding-theory encoding-scheme






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Feb 27 at 13:57







      Miangu

















      asked Feb 20 at 3:53









      MianguMiangu

      915




      915




















          2 Answers
          2






          active

          oldest

          votes


















          8












          $begingroup$

          Yes, there is such a set. You are actually on the right track to find the following example.



          Let $C = c$. You can check the following.




          • $|C|=32$.


          • $d(u,v)geq2$ for all $u,vin C$, $unot=v$. (In fact, $d(u,v)=2$ or 4 or 6.)


          Here are four related exercise, listed in the order of increasing difficulty. As in the question, only binary code is concerned.



          Exercise 1. Give another example of a set of 32 words of length 6 and pairwise distance at least 2.



          Exercise 2. Show that there are only two such sets, as given in the answer and in the exercise 1.



          Exercise 3. Generalize the above to words of any given length and pairwise distance at least 2. (Hint, $32=2^6-1$.)





          Exercise 4. (further generalization stated in Yuval's answer) If $A(n,d)$ is the maximum size of a code of length $n$ and minimum pairwise distance $d$, then $A(d,2d)=A(n-1,2d-1)$.








          share|cite|improve this answer











          $endgroup$








          • 1




            $begingroup$
            I think $d(u,v)$ may also be 6, specifically for $u=000000$ and $v=111111$, as both $uin C$ and $vin C$ because both have even number of 1's. Or am I missing something?
            $endgroup$
            – siegi
            Feb 20 at 11:26










          • $begingroup$
            @siegi, thanks. Updated.
            $endgroup$
            – Apass.Jack
            Feb 20 at 14:06


















          6












          $begingroup$

          All words of even parity from a linear code with $2^n-1$ codewords and minimum distance $2$.



          More generally, if $A_2(n,d)$ is the maximum size of a code of length $n$ and minimum distance $d$, then $A_2(n,2d) = A_2(n-1,2d-1)$.






          share|cite|improve this answer









          $endgroup$








          • 1




            $begingroup$
            Nice fact, upvoted. By the way, why not just $A(n,d)$ instead of $A_2(n,d)$? Oh, two letters.
            $endgroup$
            – Apass.Jack
            Feb 20 at 6:22







          • 1




            $begingroup$
            The subscript signifies the field $mathbbF_2$.
            $endgroup$
            – Yuval Filmus
            Feb 20 at 6:22










          Your Answer





          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "419"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f104581%2fdoes-a-binary-code-with-length-6-size-32-and-distance-2-exist%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          8












          $begingroup$

          Yes, there is such a set. You are actually on the right track to find the following example.



          Let $C = c$. You can check the following.




          • $|C|=32$.


          • $d(u,v)geq2$ for all $u,vin C$, $unot=v$. (In fact, $d(u,v)=2$ or 4 or 6.)


          Here are four related exercise, listed in the order of increasing difficulty. As in the question, only binary code is concerned.



          Exercise 1. Give another example of a set of 32 words of length 6 and pairwise distance at least 2.



          Exercise 2. Show that there are only two such sets, as given in the answer and in the exercise 1.



          Exercise 3. Generalize the above to words of any given length and pairwise distance at least 2. (Hint, $32=2^6-1$.)





          Exercise 4. (further generalization stated in Yuval's answer) If $A(n,d)$ is the maximum size of a code of length $n$ and minimum pairwise distance $d$, then $A(d,2d)=A(n-1,2d-1)$.








          share|cite|improve this answer











          $endgroup$








          • 1




            $begingroup$
            I think $d(u,v)$ may also be 6, specifically for $u=000000$ and $v=111111$, as both $uin C$ and $vin C$ because both have even number of 1's. Or am I missing something?
            $endgroup$
            – siegi
            Feb 20 at 11:26










          • $begingroup$
            @siegi, thanks. Updated.
            $endgroup$
            – Apass.Jack
            Feb 20 at 14:06















          8












          $begingroup$

          Yes, there is such a set. You are actually on the right track to find the following example.



          Let $C = c$. You can check the following.




          • $|C|=32$.


          • $d(u,v)geq2$ for all $u,vin C$, $unot=v$. (In fact, $d(u,v)=2$ or 4 or 6.)


          Here are four related exercise, listed in the order of increasing difficulty. As in the question, only binary code is concerned.



          Exercise 1. Give another example of a set of 32 words of length 6 and pairwise distance at least 2.



          Exercise 2. Show that there are only two such sets, as given in the answer and in the exercise 1.



          Exercise 3. Generalize the above to words of any given length and pairwise distance at least 2. (Hint, $32=2^6-1$.)





          Exercise 4. (further generalization stated in Yuval's answer) If $A(n,d)$ is the maximum size of a code of length $n$ and minimum pairwise distance $d$, then $A(d,2d)=A(n-1,2d-1)$.








          share|cite|improve this answer











          $endgroup$








          • 1




            $begingroup$
            I think $d(u,v)$ may also be 6, specifically for $u=000000$ and $v=111111$, as both $uin C$ and $vin C$ because both have even number of 1's. Or am I missing something?
            $endgroup$
            – siegi
            Feb 20 at 11:26










          • $begingroup$
            @siegi, thanks. Updated.
            $endgroup$
            – Apass.Jack
            Feb 20 at 14:06













          8












          8








          8





          $begingroup$

          Yes, there is such a set. You are actually on the right track to find the following example.



          Let $C = c$. You can check the following.




          • $|C|=32$.


          • $d(u,v)geq2$ for all $u,vin C$, $unot=v$. (In fact, $d(u,v)=2$ or 4 or 6.)


          Here are four related exercise, listed in the order of increasing difficulty. As in the question, only binary code is concerned.



          Exercise 1. Give another example of a set of 32 words of length 6 and pairwise distance at least 2.



          Exercise 2. Show that there are only two such sets, as given in the answer and in the exercise 1.



          Exercise 3. Generalize the above to words of any given length and pairwise distance at least 2. (Hint, $32=2^6-1$.)





          Exercise 4. (further generalization stated in Yuval's answer) If $A(n,d)$ is the maximum size of a code of length $n$ and minimum pairwise distance $d$, then $A(d,2d)=A(n-1,2d-1)$.








          share|cite|improve this answer











          $endgroup$



          Yes, there is such a set. You are actually on the right track to find the following example.



          Let $C = c$. You can check the following.




          • $|C|=32$.


          • $d(u,v)geq2$ for all $u,vin C$, $unot=v$. (In fact, $d(u,v)=2$ or 4 or 6.)


          Here are four related exercise, listed in the order of increasing difficulty. As in the question, only binary code is concerned.



          Exercise 1. Give another example of a set of 32 words of length 6 and pairwise distance at least 2.



          Exercise 2. Show that there are only two such sets, as given in the answer and in the exercise 1.



          Exercise 3. Generalize the above to words of any given length and pairwise distance at least 2. (Hint, $32=2^6-1$.)





          Exercise 4. (further generalization stated in Yuval's answer) If $A(n,d)$ is the maximum size of a code of length $n$ and minimum pairwise distance $d$, then $A(d,2d)=A(n-1,2d-1)$.









          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Feb 20 at 14:05

























          answered Feb 20 at 5:06









          Apass.JackApass.Jack

          12.8k1939




          12.8k1939







          • 1




            $begingroup$
            I think $d(u,v)$ may also be 6, specifically for $u=000000$ and $v=111111$, as both $uin C$ and $vin C$ because both have even number of 1's. Or am I missing something?
            $endgroup$
            – siegi
            Feb 20 at 11:26










          • $begingroup$
            @siegi, thanks. Updated.
            $endgroup$
            – Apass.Jack
            Feb 20 at 14:06












          • 1




            $begingroup$
            I think $d(u,v)$ may also be 6, specifically for $u=000000$ and $v=111111$, as both $uin C$ and $vin C$ because both have even number of 1's. Or am I missing something?
            $endgroup$
            – siegi
            Feb 20 at 11:26










          • $begingroup$
            @siegi, thanks. Updated.
            $endgroup$
            – Apass.Jack
            Feb 20 at 14:06







          1




          1




          $begingroup$
          I think $d(u,v)$ may also be 6, specifically for $u=000000$ and $v=111111$, as both $uin C$ and $vin C$ because both have even number of 1's. Or am I missing something?
          $endgroup$
          – siegi
          Feb 20 at 11:26




          $begingroup$
          I think $d(u,v)$ may also be 6, specifically for $u=000000$ and $v=111111$, as both $uin C$ and $vin C$ because both have even number of 1's. Or am I missing something?
          $endgroup$
          – siegi
          Feb 20 at 11:26












          $begingroup$
          @siegi, thanks. Updated.
          $endgroup$
          – Apass.Jack
          Feb 20 at 14:06




          $begingroup$
          @siegi, thanks. Updated.
          $endgroup$
          – Apass.Jack
          Feb 20 at 14:06











          6












          $begingroup$

          All words of even parity from a linear code with $2^n-1$ codewords and minimum distance $2$.



          More generally, if $A_2(n,d)$ is the maximum size of a code of length $n$ and minimum distance $d$, then $A_2(n,2d) = A_2(n-1,2d-1)$.






          share|cite|improve this answer









          $endgroup$








          • 1




            $begingroup$
            Nice fact, upvoted. By the way, why not just $A(n,d)$ instead of $A_2(n,d)$? Oh, two letters.
            $endgroup$
            – Apass.Jack
            Feb 20 at 6:22







          • 1




            $begingroup$
            The subscript signifies the field $mathbbF_2$.
            $endgroup$
            – Yuval Filmus
            Feb 20 at 6:22















          6












          $begingroup$

          All words of even parity from a linear code with $2^n-1$ codewords and minimum distance $2$.



          More generally, if $A_2(n,d)$ is the maximum size of a code of length $n$ and minimum distance $d$, then $A_2(n,2d) = A_2(n-1,2d-1)$.






          share|cite|improve this answer









          $endgroup$








          • 1




            $begingroup$
            Nice fact, upvoted. By the way, why not just $A(n,d)$ instead of $A_2(n,d)$? Oh, two letters.
            $endgroup$
            – Apass.Jack
            Feb 20 at 6:22







          • 1




            $begingroup$
            The subscript signifies the field $mathbbF_2$.
            $endgroup$
            – Yuval Filmus
            Feb 20 at 6:22













          6












          6








          6





          $begingroup$

          All words of even parity from a linear code with $2^n-1$ codewords and minimum distance $2$.



          More generally, if $A_2(n,d)$ is the maximum size of a code of length $n$ and minimum distance $d$, then $A_2(n,2d) = A_2(n-1,2d-1)$.






          share|cite|improve this answer









          $endgroup$



          All words of even parity from a linear code with $2^n-1$ codewords and minimum distance $2$.



          More generally, if $A_2(n,d)$ is the maximum size of a code of length $n$ and minimum distance $d$, then $A_2(n,2d) = A_2(n-1,2d-1)$.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Feb 20 at 5:04









          Yuval FilmusYuval Filmus

          195k14183347




          195k14183347







          • 1




            $begingroup$
            Nice fact, upvoted. By the way, why not just $A(n,d)$ instead of $A_2(n,d)$? Oh, two letters.
            $endgroup$
            – Apass.Jack
            Feb 20 at 6:22







          • 1




            $begingroup$
            The subscript signifies the field $mathbbF_2$.
            $endgroup$
            – Yuval Filmus
            Feb 20 at 6:22












          • 1




            $begingroup$
            Nice fact, upvoted. By the way, why not just $A(n,d)$ instead of $A_2(n,d)$? Oh, two letters.
            $endgroup$
            – Apass.Jack
            Feb 20 at 6:22







          • 1




            $begingroup$
            The subscript signifies the field $mathbbF_2$.
            $endgroup$
            – Yuval Filmus
            Feb 20 at 6:22







          1




          1




          $begingroup$
          Nice fact, upvoted. By the way, why not just $A(n,d)$ instead of $A_2(n,d)$? Oh, two letters.
          $endgroup$
          – Apass.Jack
          Feb 20 at 6:22





          $begingroup$
          Nice fact, upvoted. By the way, why not just $A(n,d)$ instead of $A_2(n,d)$? Oh, two letters.
          $endgroup$
          – Apass.Jack
          Feb 20 at 6:22





          1




          1




          $begingroup$
          The subscript signifies the field $mathbbF_2$.
          $endgroup$
          – Yuval Filmus
          Feb 20 at 6:22




          $begingroup$
          The subscript signifies the field $mathbbF_2$.
          $endgroup$
          – Yuval Filmus
          Feb 20 at 6:22

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Computer Science Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f104581%2fdoes-a-binary-code-with-length-6-size-32-and-distance-2-exist%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay