Bound on code: $A(n,d) leq 2A(n-1,d)$











up vote
1
down vote

favorite












Note: We are talking about binary codes.



Definition 1: For integers $1 ≤ d ≤ n$, a code $C$ is an $(n, d)$-code if it has length $n$ and minimum distance $d_H (C) ≥ d$. An $(n, M, d)$-code is an $(n,d)$-code of size $M$.



Definition 2: For integers $1 ≤ d ≤ n$, let $A(n,d)$ be the largest $M$ such that there exists an $(n, M, d)$-code. An $(n, d)$-code is optimal if has size $A(n, d)$.



Prove that for any integer $n ≥ 2$ and $1 ≤ d ≤ n$, we have $$A(n, d) ≤ 2A(n − 1, d)$$.



What I did: It suffices to prove that given $C$, a $(n,d)$-code, we can find $C'$, a $(n-1,d)$-code, such that $|C| leq 2|C'|.$



Next what I think is that we have to truncate $C$ by deleting the last bit of every codeword. This will make $C'$ a code of length $n-1$ but doing so will affect the minimum distance as we might delete the bits where the two codes are distinct. Any Idea how to proceed?










share|cite|improve this question


























    up vote
    1
    down vote

    favorite












    Note: We are talking about binary codes.



    Definition 1: For integers $1 ≤ d ≤ n$, a code $C$ is an $(n, d)$-code if it has length $n$ and minimum distance $d_H (C) ≥ d$. An $(n, M, d)$-code is an $(n,d)$-code of size $M$.



    Definition 2: For integers $1 ≤ d ≤ n$, let $A(n,d)$ be the largest $M$ such that there exists an $(n, M, d)$-code. An $(n, d)$-code is optimal if has size $A(n, d)$.



    Prove that for any integer $n ≥ 2$ and $1 ≤ d ≤ n$, we have $$A(n, d) ≤ 2A(n − 1, d)$$.



    What I did: It suffices to prove that given $C$, a $(n,d)$-code, we can find $C'$, a $(n-1,d)$-code, such that $|C| leq 2|C'|.$



    Next what I think is that we have to truncate $C$ by deleting the last bit of every codeword. This will make $C'$ a code of length $n-1$ but doing so will affect the minimum distance as we might delete the bits where the two codes are distinct. Any Idea how to proceed?










    share|cite|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Note: We are talking about binary codes.



      Definition 1: For integers $1 ≤ d ≤ n$, a code $C$ is an $(n, d)$-code if it has length $n$ and minimum distance $d_H (C) ≥ d$. An $(n, M, d)$-code is an $(n,d)$-code of size $M$.



      Definition 2: For integers $1 ≤ d ≤ n$, let $A(n,d)$ be the largest $M$ such that there exists an $(n, M, d)$-code. An $(n, d)$-code is optimal if has size $A(n, d)$.



      Prove that for any integer $n ≥ 2$ and $1 ≤ d ≤ n$, we have $$A(n, d) ≤ 2A(n − 1, d)$$.



      What I did: It suffices to prove that given $C$, a $(n,d)$-code, we can find $C'$, a $(n-1,d)$-code, such that $|C| leq 2|C'|.$



      Next what I think is that we have to truncate $C$ by deleting the last bit of every codeword. This will make $C'$ a code of length $n-1$ but doing so will affect the minimum distance as we might delete the bits where the two codes are distinct. Any Idea how to proceed?










      share|cite|improve this question













      Note: We are talking about binary codes.



      Definition 1: For integers $1 ≤ d ≤ n$, a code $C$ is an $(n, d)$-code if it has length $n$ and minimum distance $d_H (C) ≥ d$. An $(n, M, d)$-code is an $(n,d)$-code of size $M$.



      Definition 2: For integers $1 ≤ d ≤ n$, let $A(n,d)$ be the largest $M$ such that there exists an $(n, M, d)$-code. An $(n, d)$-code is optimal if has size $A(n, d)$.



      Prove that for any integer $n ≥ 2$ and $1 ≤ d ≤ n$, we have $$A(n, d) ≤ 2A(n − 1, d)$$.



      What I did: It suffices to prove that given $C$, a $(n,d)$-code, we can find $C'$, a $(n-1,d)$-code, such that $|C| leq 2|C'|.$



      Next what I think is that we have to truncate $C$ by deleting the last bit of every codeword. This will make $C'$ a code of length $n-1$ but doing so will affect the minimum distance as we might delete the bits where the two codes are distinct. Any Idea how to proceed?







      combinatorics information-theory coding-theory






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 3 at 3:40









      XIIIX

      608




      608






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Proof



          Let $C$ be an $(n,d)$-code.



          Let $n(0)$ and $n(1)$ denote the number of codewords in $C$ ending with $0$ and $1$, respectively.



          We claim that either $n(0)$ or $n(1)$ $geq |C|/2.$



          Proof of claim:



          If either $n(0)$ or $n(1) = |C|/2$, we are done.



          Assume $ n(1) < |C|/2$. We need to show $n(0)> |C|/2.$
          $$|C|=n(0)+n(1)< n(0)+|C|/2.$$
          So, $$n(0)> |C|/2.$$
          This proves the claim.



          Now, WOLG, assume $n(0) geq |C|/2.$



          Consider $C^* subset C $ containing only codes ending with $0$, i.e, we have $|C^*|=n(0).$



          Define $C'$ to be a code obtained by deleting the last bit of codewords in $C^*$.



          Note that $d_H(C')=d_H(C) geq d$, $C'$ is a code of lenght $n-1$, and $|C'|=|C^*|$.



          Moreover, from the claim, $$|C'|=|C^*|=n(0) geq |C|/2.$$



          This proves that given any $C$, a $(n,d)$-code, we can find $C'$, a $(n-1,d)$-code such that $$|C| leq 2|C'|.$$



          Hence, for $n geq 2$, and $1leq d leq n$, $$A(n,d)≤2A(n−1,d).$$






          share|cite|improve this answer

















          • 1




            A small point of order - this holds for $d < n,$ not $d le n.$ This is easy to see - a $n-1$ length code cannot have distance $n$.
            – stochasticboy321
            Dec 4 at 6:25











          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: "69"
          };
          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',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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
          },
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3023587%2fbound-on-code-an-d-leq-2an-1-d%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          Proof



          Let $C$ be an $(n,d)$-code.



          Let $n(0)$ and $n(1)$ denote the number of codewords in $C$ ending with $0$ and $1$, respectively.



          We claim that either $n(0)$ or $n(1)$ $geq |C|/2.$



          Proof of claim:



          If either $n(0)$ or $n(1) = |C|/2$, we are done.



          Assume $ n(1) < |C|/2$. We need to show $n(0)> |C|/2.$
          $$|C|=n(0)+n(1)< n(0)+|C|/2.$$
          So, $$n(0)> |C|/2.$$
          This proves the claim.



          Now, WOLG, assume $n(0) geq |C|/2.$



          Consider $C^* subset C $ containing only codes ending with $0$, i.e, we have $|C^*|=n(0).$



          Define $C'$ to be a code obtained by deleting the last bit of codewords in $C^*$.



          Note that $d_H(C')=d_H(C) geq d$, $C'$ is a code of lenght $n-1$, and $|C'|=|C^*|$.



          Moreover, from the claim, $$|C'|=|C^*|=n(0) geq |C|/2.$$



          This proves that given any $C$, a $(n,d)$-code, we can find $C'$, a $(n-1,d)$-code such that $$|C| leq 2|C'|.$$



          Hence, for $n geq 2$, and $1leq d leq n$, $$A(n,d)≤2A(n−1,d).$$






          share|cite|improve this answer

















          • 1




            A small point of order - this holds for $d < n,$ not $d le n.$ This is easy to see - a $n-1$ length code cannot have distance $n$.
            – stochasticboy321
            Dec 4 at 6:25















          up vote
          1
          down vote



          accepted










          Proof



          Let $C$ be an $(n,d)$-code.



          Let $n(0)$ and $n(1)$ denote the number of codewords in $C$ ending with $0$ and $1$, respectively.



          We claim that either $n(0)$ or $n(1)$ $geq |C|/2.$



          Proof of claim:



          If either $n(0)$ or $n(1) = |C|/2$, we are done.



          Assume $ n(1) < |C|/2$. We need to show $n(0)> |C|/2.$
          $$|C|=n(0)+n(1)< n(0)+|C|/2.$$
          So, $$n(0)> |C|/2.$$
          This proves the claim.



          Now, WOLG, assume $n(0) geq |C|/2.$



          Consider $C^* subset C $ containing only codes ending with $0$, i.e, we have $|C^*|=n(0).$



          Define $C'$ to be a code obtained by deleting the last bit of codewords in $C^*$.



          Note that $d_H(C')=d_H(C) geq d$, $C'$ is a code of lenght $n-1$, and $|C'|=|C^*|$.



          Moreover, from the claim, $$|C'|=|C^*|=n(0) geq |C|/2.$$



          This proves that given any $C$, a $(n,d)$-code, we can find $C'$, a $(n-1,d)$-code such that $$|C| leq 2|C'|.$$



          Hence, for $n geq 2$, and $1leq d leq n$, $$A(n,d)≤2A(n−1,d).$$






          share|cite|improve this answer

















          • 1




            A small point of order - this holds for $d < n,$ not $d le n.$ This is easy to see - a $n-1$ length code cannot have distance $n$.
            – stochasticboy321
            Dec 4 at 6:25













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          Proof



          Let $C$ be an $(n,d)$-code.



          Let $n(0)$ and $n(1)$ denote the number of codewords in $C$ ending with $0$ and $1$, respectively.



          We claim that either $n(0)$ or $n(1)$ $geq |C|/2.$



          Proof of claim:



          If either $n(0)$ or $n(1) = |C|/2$, we are done.



          Assume $ n(1) < |C|/2$. We need to show $n(0)> |C|/2.$
          $$|C|=n(0)+n(1)< n(0)+|C|/2.$$
          So, $$n(0)> |C|/2.$$
          This proves the claim.



          Now, WOLG, assume $n(0) geq |C|/2.$



          Consider $C^* subset C $ containing only codes ending with $0$, i.e, we have $|C^*|=n(0).$



          Define $C'$ to be a code obtained by deleting the last bit of codewords in $C^*$.



          Note that $d_H(C')=d_H(C) geq d$, $C'$ is a code of lenght $n-1$, and $|C'|=|C^*|$.



          Moreover, from the claim, $$|C'|=|C^*|=n(0) geq |C|/2.$$



          This proves that given any $C$, a $(n,d)$-code, we can find $C'$, a $(n-1,d)$-code such that $$|C| leq 2|C'|.$$



          Hence, for $n geq 2$, and $1leq d leq n$, $$A(n,d)≤2A(n−1,d).$$






          share|cite|improve this answer












          Proof



          Let $C$ be an $(n,d)$-code.



          Let $n(0)$ and $n(1)$ denote the number of codewords in $C$ ending with $0$ and $1$, respectively.



          We claim that either $n(0)$ or $n(1)$ $geq |C|/2.$



          Proof of claim:



          If either $n(0)$ or $n(1) = |C|/2$, we are done.



          Assume $ n(1) < |C|/2$. We need to show $n(0)> |C|/2.$
          $$|C|=n(0)+n(1)< n(0)+|C|/2.$$
          So, $$n(0)> |C|/2.$$
          This proves the claim.



          Now, WOLG, assume $n(0) geq |C|/2.$



          Consider $C^* subset C $ containing only codes ending with $0$, i.e, we have $|C^*|=n(0).$



          Define $C'$ to be a code obtained by deleting the last bit of codewords in $C^*$.



          Note that $d_H(C')=d_H(C) geq d$, $C'$ is a code of lenght $n-1$, and $|C'|=|C^*|$.



          Moreover, from the claim, $$|C'|=|C^*|=n(0) geq |C|/2.$$



          This proves that given any $C$, a $(n,d)$-code, we can find $C'$, a $(n-1,d)$-code such that $$|C| leq 2|C'|.$$



          Hence, for $n geq 2$, and $1leq d leq n$, $$A(n,d)≤2A(n−1,d).$$







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Dec 4 at 5:42









          XIIIX

          608




          608








          • 1




            A small point of order - this holds for $d < n,$ not $d le n.$ This is easy to see - a $n-1$ length code cannot have distance $n$.
            – stochasticboy321
            Dec 4 at 6:25














          • 1




            A small point of order - this holds for $d < n,$ not $d le n.$ This is easy to see - a $n-1$ length code cannot have distance $n$.
            – stochasticboy321
            Dec 4 at 6:25








          1




          1




          A small point of order - this holds for $d < n,$ not $d le n.$ This is easy to see - a $n-1$ length code cannot have distance $n$.
          – stochasticboy321
          Dec 4 at 6:25




          A small point of order - this holds for $d < n,$ not $d le n.$ This is easy to see - a $n-1$ length code cannot have distance $n$.
          – stochasticboy321
          Dec 4 at 6:25


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Mathematics 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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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.


          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%2fmath.stackexchange.com%2fquestions%2f3023587%2fbound-on-code-an-d-leq-2an-1-d%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

          Bressuire

          Cabo Verde

          Gyllenstierna