1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lapo4ka [179]
3 years ago
12

Counting bit strings. How many 10-bit strings are there subject to each of the following restrictions? (a) No restrictions. The

string starts with 001. The string starts with 001 or 10. The first two bits are the same as the last two bits. The string has exactly six o's. The string has exactly six O's and the first bit is 1. There is exactly one 1 in the first half and exactly three 1's in the second half.
Mathematics
1 answer:
-BARSIC- [3]3 years ago
5 0

Answer:

a) With no restrictions, there are 1024 possibilies

b) There are 128 possibilities for which the tring starts with 001

c) There are 256+128 = 384 strings starting with 001 or 10.

d) There are 128  possiblities of strings where the first two bits are the same as the last two bits

e)There are 210 possibilities in which the string has exactly six 0's.

f) 84 possibilities in which the string has exactly six O's and the first bit is 1

g) 50 strings in which there is exactly one 1 in the first half and exactly three 1's in the second half

Step-by-step explanation:

Our string is like this:

B1-B2-B3-B4-B5-B6-B7-B8-B9-B10

B1 is the bit in position 1, B2 position 2,...

A bit can have two values: 0 or 1

So

No restrictions:

It can be:

2-2-2-2-2-2-2-2-2-2

There are 2^{10} = 1024 possibilities

The string starts with 001

There is only one possibility for each of the first three bits(0,0 and 1) So:

1-1-1-2-2-2-2-2-2-2

There are 2^{7} = 128 possibilities

The string starts with 001 or 10

There are 128 possibilities for which the tring starts with 001, as we found above.

With 10, there is only one possibility for each of the first two bits, so:

1-1-2-2-2-2-2-2-2-2

There are 2^{8} = 256 possibilities

There are 256+128 = 384 strings starting with 001 or 10.

The first two bits are the same as the last two bits

The is only one possibility for the first two and for the last two bits.

1-1-2-2-2-2-2-2-1-1

The first two and last two bits can be 0-0-...-0-0, 0-1-...-0-1, 1-0-...-1-0 or 1-1-...-1-1, so there are 4*2^{6} = 256 possiblities of strings where the first two bits are the same as the last two bits.

The string has exactly six o's:

There is only one bit possible for each position of the string. However, these bits can be permutated, which means we have a permutation of 10 bits repeatad 6(zeros) and 4(ones) times, so there are

P^{10}_{6,4} = \frac{10!}{6!4!} = 210

210 possibilities in which the string has exactly six 0's.

The string has exactly six O's and the first bit is 1:

The first bit is one. For each of the remaining nine bits, there is one possiblity for each.  However, these bits can be permutated, which means we have a permutation of 9 bits repeatad 6(zeros) and 3(ones) times, so there are

P^{9}_{6,3} = \frac{9!}{6!3!} = 84

84 possibilities in which the string has exactly six O's and the first bit is 1

There is exactly one 1 in the first half and exactly three 1's in the second half

We compute the number of strings possible in each half, and multiply them:

For the first half, each of the five bits has only one possibile value, but they can be permutated. We have a permutation of 5 bits, with repetitions of 4(zeros) and 1(ones) bits.

So, for the first half there are:

P^{5}_{4,1} = \frac{5!}{4!1!} = 5

5 possibilies where there is exactly one 1 in the first half.

For the second half, each of the five bits has only one possibile value, but they can be permutated.  We have a permutation of 5 bits, with repetitions of 3(ones) and 2(zeros) bits.

P^{5}_{3,2} = \frac{5!}{3!2!} = 10

10 possibilies where there is exactly three 1's in the second half.

It means that for each first half of the string possibility, there are 10 possible second half possibilities. So there are 5+10 = 50 strings in which there is exactly one 1 in the first half and exactly three 1's in the second half.

You might be interested in
HELP MEH! I WILL MARK THE BEST ANSWER BRAINLIEST!
kherson [118]

Answer:

Step-by-step explanation:

32.12 meters below sea level. The diver ascended to the surface at a rate of 8.8 m/min. So the diver ascended 3.65 meters a minute.

a) Use d=rt. D=distance, t= minutes, r=rate

d=8.8t

b) The distance will never be a negative number because you can't have a negative distance to something.

c) 3.65 minutes for the diver to reach the surface.

5 0
4 years ago
Period 3.4 feet 0.4 feet 0.4 feet Miss Williams has a bag containing .25 ft.³ of soil. She wants to know if this bag is will be
Arisa [49]
The answer to this question is 5.25
4 0
3 years ago
Yolanda's club has 50 members. It's rules require that 60% of them must be present for any vote. At least how many members must
HACTEHA [7]
If you do 60% then you put the percent two times over the the left so 0.60 then you would do 0.60 times 50 so that would be 30. 30 of the members must vote. Hopefully that helped?
7 0
3 years ago
If a polynomial has one root in the form a-V6, it has a second root in the<br> form of a _Vb.
e-lub [12.9K]

Answer:

radical form, they occur as two conjugates.

That is,

The conjugate of (a + √b) is (a - √b) and vice versa.

To show that the given conjugates come from a polynomial, we should create the polynomial from the given factors.

3 0
2 years ago
Let f(x) = 5x – 8 and g(x) = 9 - 6x2.<br> -<br> (f o g)(-3) =
MArishka [77]

Step-by-step explanation:

f(x) = 5x - 8

g(x) = 9 - 6x²

= (fog)(-3)

= f( g(3) )

= 5x - 8

= 5(9 - 6x²) - 8

= 5(9 - 6(-3)² ) - 8

= 5(9 - 54) - 8

= 5(-45) - 8

= -225 - 8

= -233

(fog)(-3) = -233

3 0
3 years ago
Other questions:
  • 2(x+3)-2(x+1)7z=3x-1 <br>which two are possible correct first steps in solving this equation ?
    7·1 answer
  • Find the first four terms of a sequence using the recursive definition. Please help
    5·1 answer
  • Which sequence of transformations confirms congruence by mapping shape I onto shape II?
    7·2 answers
  • Which is the fraction for 29%?
    8·2 answers
  • Which is the best definition of a trapezoid?
    15·2 answers
  • Goldie is depositing checks of $49.37, $328.02, and $18.93 into her checking
    6·1 answer
  • A girl is twice as old as her brother and half as old as her dad. in 22 years, her brother will be half as old as his father. ho
    14·1 answer
  • How to do this here
    8·1 answer
  • If a line has a midpoint at (2,5), and the endpoints are (0,0) and (4,y), what is the value of y? Please explain each step for a
    6·1 answer
  • A savings account starts with $2,200. The total amount after 18 months was $2563. What is the annual interest
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!