Probability and counting bit string
How many 10-bit strings are there subject to each of the following restrictions if the first two bits are the same as the last two bits?
My answer:
1) So for the first $2$ bits and the last $2$ bits we only have $2$ choices: either those $4$ bits are all 0s or all 1s. So $2$ choices.
2) Then we have $(10-2-2)$ $6$ bits left with $2$ choices so $6^2$.
Conclusion : $2 * 2^6$ or $2^7$
But, I just read that the solution is $2^8$ I don't understand why since 4 bits should be exactly the same
thanks
probability discrete-mathematics
add a comment |
How many 10-bit strings are there subject to each of the following restrictions if the first two bits are the same as the last two bits?
My answer:
1) So for the first $2$ bits and the last $2$ bits we only have $2$ choices: either those $4$ bits are all 0s or all 1s. So $2$ choices.
2) Then we have $(10-2-2)$ $6$ bits left with $2$ choices so $6^2$.
Conclusion : $2 * 2^6$ or $2^7$
But, I just read that the solution is $2^8$ I don't understand why since 4 bits should be exactly the same
thanks
probability discrete-mathematics
In step 1, you have two choices for each of the first two bits. Choosing the first two bits also determines the last two bits since they are the same. In step 2, you should have written $2^6$ since you have two choices for each of the six middle bits.
– N. F. Taussig
Nov 24 at 23:36
add a comment |
How many 10-bit strings are there subject to each of the following restrictions if the first two bits are the same as the last two bits?
My answer:
1) So for the first $2$ bits and the last $2$ bits we only have $2$ choices: either those $4$ bits are all 0s or all 1s. So $2$ choices.
2) Then we have $(10-2-2)$ $6$ bits left with $2$ choices so $6^2$.
Conclusion : $2 * 2^6$ or $2^7$
But, I just read that the solution is $2^8$ I don't understand why since 4 bits should be exactly the same
thanks
probability discrete-mathematics
How many 10-bit strings are there subject to each of the following restrictions if the first two bits are the same as the last two bits?
My answer:
1) So for the first $2$ bits and the last $2$ bits we only have $2$ choices: either those $4$ bits are all 0s or all 1s. So $2$ choices.
2) Then we have $(10-2-2)$ $6$ bits left with $2$ choices so $6^2$.
Conclusion : $2 * 2^6$ or $2^7$
But, I just read that the solution is $2^8$ I don't understand why since 4 bits should be exactly the same
thanks
probability discrete-mathematics
probability discrete-mathematics
edited Nov 24 at 23:50
Key Flex
7,52441232
7,52441232
asked Nov 24 at 22:40
Laura1999
202
202
In step 1, you have two choices for each of the first two bits. Choosing the first two bits also determines the last two bits since they are the same. In step 2, you should have written $2^6$ since you have two choices for each of the six middle bits.
– N. F. Taussig
Nov 24 at 23:36
add a comment |
In step 1, you have two choices for each of the first two bits. Choosing the first two bits also determines the last two bits since they are the same. In step 2, you should have written $2^6$ since you have two choices for each of the six middle bits.
– N. F. Taussig
Nov 24 at 23:36
In step 1, you have two choices for each of the first two bits. Choosing the first two bits also determines the last two bits since they are the same. In step 2, you should have written $2^6$ since you have two choices for each of the six middle bits.
– N. F. Taussig
Nov 24 at 23:36
In step 1, you have two choices for each of the first two bits. Choosing the first two bits also determines the last two bits since they are the same. In step 2, you should have written $2^6$ since you have two choices for each of the six middle bits.
– N. F. Taussig
Nov 24 at 23:36
add a comment |
3 Answers
3
active
oldest
votes
I think you misinterpreted "first two bits are the same as the last two bits."
It is possible that the first two bits are 01, and that the last two bits are 01, for example. Thus there are $4$ possibilities for these four bits, and then multiplied by $2^6$ for the remaining six bits yields $2^8$.
add a comment |
If the last two bits have to be the same as the first two bits, then effectively you can only vary the first $8$ bits. So: $2^8$possible bit strings
add a comment |
Each of the first $8$ bits can be either $0$ or $1$. Once the the first $8$ bits are determined, the last two
bits must match the first two bits, so there are no remaining choices for the string. Thus, the number of strings in which the first two bits are the same as the last two bits is $2^8$
add a comment |
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',
autoActivateHeartbeat: false,
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
});
}
});
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%2f3012188%2fprobability-and-counting-bit-string%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I think you misinterpreted "first two bits are the same as the last two bits."
It is possible that the first two bits are 01, and that the last two bits are 01, for example. Thus there are $4$ possibilities for these four bits, and then multiplied by $2^6$ for the remaining six bits yields $2^8$.
add a comment |
I think you misinterpreted "first two bits are the same as the last two bits."
It is possible that the first two bits are 01, and that the last two bits are 01, for example. Thus there are $4$ possibilities for these four bits, and then multiplied by $2^6$ for the remaining six bits yields $2^8$.
add a comment |
I think you misinterpreted "first two bits are the same as the last two bits."
It is possible that the first two bits are 01, and that the last two bits are 01, for example. Thus there are $4$ possibilities for these four bits, and then multiplied by $2^6$ for the remaining six bits yields $2^8$.
I think you misinterpreted "first two bits are the same as the last two bits."
It is possible that the first two bits are 01, and that the last two bits are 01, for example. Thus there are $4$ possibilities for these four bits, and then multiplied by $2^6$ for the remaining six bits yields $2^8$.
answered Nov 24 at 22:50
angryavian
38.9k23180
38.9k23180
add a comment |
add a comment |
If the last two bits have to be the same as the first two bits, then effectively you can only vary the first $8$ bits. So: $2^8$possible bit strings
add a comment |
If the last two bits have to be the same as the first two bits, then effectively you can only vary the first $8$ bits. So: $2^8$possible bit strings
add a comment |
If the last two bits have to be the same as the first two bits, then effectively you can only vary the first $8$ bits. So: $2^8$possible bit strings
If the last two bits have to be the same as the first two bits, then effectively you can only vary the first $8$ bits. So: $2^8$possible bit strings
answered Nov 24 at 23:07
Bram28
60.1k44590
60.1k44590
add a comment |
add a comment |
Each of the first $8$ bits can be either $0$ or $1$. Once the the first $8$ bits are determined, the last two
bits must match the first two bits, so there are no remaining choices for the string. Thus, the number of strings in which the first two bits are the same as the last two bits is $2^8$
add a comment |
Each of the first $8$ bits can be either $0$ or $1$. Once the the first $8$ bits are determined, the last two
bits must match the first two bits, so there are no remaining choices for the string. Thus, the number of strings in which the first two bits are the same as the last two bits is $2^8$
add a comment |
Each of the first $8$ bits can be either $0$ or $1$. Once the the first $8$ bits are determined, the last two
bits must match the first two bits, so there are no remaining choices for the string. Thus, the number of strings in which the first two bits are the same as the last two bits is $2^8$
Each of the first $8$ bits can be either $0$ or $1$. Once the the first $8$ bits are determined, the last two
bits must match the first two bits, so there are no remaining choices for the string. Thus, the number of strings in which the first two bits are the same as the last two bits is $2^8$
answered Nov 24 at 23:49
Key Flex
7,52441232
7,52441232
add a comment |
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%2f3012188%2fprobability-and-counting-bit-string%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
In step 1, you have two choices for each of the first two bits. Choosing the first two bits also determines the last two bits since they are the same. In step 2, you should have written $2^6$ since you have two choices for each of the six middle bits.
– N. F. Taussig
Nov 24 at 23:36