Finding the Number of Bit Strings with 8 Zeros and 10 Ones

  • MHB
  • Thread starter alexmahone
  • Start date
  • Tags
    Bit Strings
In summary, the number of bit strings that contain exactly eight 0s and 10 1s, with each 0 immediately followed by a 1, is 45. This is found by arranging 10 objects, with 8 identical pairs and 2 identical single objects, which results in \dfrac{10!}{8!2!}=45 possible combinations.
  • #1
alexmahone
304
0
How many bit strings contain exactly eight 0s and 10 1s if every 0 must be immediately followed by a 1?
 
Physics news on Phys.org
  • #2
Alexmahone said:
How many bit strings contain exactly eight 0s and 10 1s if every 0 must be immediately followed by a 1?

Attempt? (Wondering)
 
  • #3
I like Serena said:
Attempt? (Wondering)

x01x01x01x01x01x01x01x01x

I thought that since there are 9 positions for the 9th 1 and 8 positions for the 10th 1, there would be 9x8=72 strings. But this is just wrong since the 1s are indistinguishable.
 
  • #4
Alexmahone said:
x01x01x01x01x01x01x01x01x

I thought that since there are 9 positions for the 9th 1 and 8 positions for the 10th 1, there would be 9x8=72 strings. But this is just wrong since the 1s are indistinguishable.

Two scenarios: either one of those x'es is 11 and the others are empty, or 2 of those 9 x'es are 1. (Thinking)
 
  • #5
My thinking goes like this.

You have ten objects to arrange: (01),(01),(01),(01),(01),(01),(01),(01),1,1

So the answer is \(\displaystyle \dfrac{10!}{8!2!}=45\)
 

FAQ: Finding the Number of Bit Strings with 8 Zeros and 10 Ones

How many bit strings can be created with n bits?

The number of possible bit strings that can be created with n bits is 2^n. This is because each bit can have two possible values (0 or 1), and the total number of combinations is equal to 2 multiplied by itself n times.

How does the number of bit strings change with the number of bits?

As the number of bits increases, the number of possible bit strings also increases. For example, with 2 bits, there are 4 possible bit strings (00, 01, 10, 11), while with 3 bits, there are 8 possible bit strings (000, 001, 010, 011, 100, 101, 110, 111).

Are all bit strings of the same length?

No, bit strings can have varying lengths depending on the number of bits used. For example, a 3-bit string is longer than a 2-bit string, and a 10-bit string is longer than a 5-bit string.

Can bit strings have repeating patterns?

Yes, bit strings can have repeating patterns. For example, a 4-bit string of 0101 has a repeating pattern of 01. However, not all bit strings will have repeating patterns.

How are bit strings used in computer programming?

Bit strings are commonly used in computer programming to represent and manipulate data. They are used in tasks such as encoding and decoding data, performing logical operations, and representing binary numbers. They are also used in computer algorithms and data structures.

Similar threads

Replies
2
Views
1K
Replies
3
Views
3K
Replies
32
Views
1K
Replies
2
Views
1K
Replies
7
Views
2K
Replies
2
Views
3K
Replies
6
Views
2K
Back
Top