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?
combinatorics information-theory coding-theory
add a comment |
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?
combinatorics information-theory coding-theory
add a comment |
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?
combinatorics information-theory coding-theory
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
combinatorics information-theory coding-theory
asked Dec 3 at 3:40
XIIIX
608
608
add a comment |
add a comment |
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).$$
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
add a comment |
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).$$
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
add a comment |
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).$$
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
add a comment |
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).$$
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).$$
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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