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
Solve the systems of equation by elimination. <br><br> x + 5y = -7<br> 2x + 7y = -8
labwork [276]
2x-7y=-6 but x = 5y , so

2(5y) - 7y = -6
7 0
3 years ago
BRAINLIEST FOR CORRECT ANSWER! <br> What is the transformation rule for a translation 3 units right?
Butoxors [25]

Answer:Translation happens when we move the image without changing anything in it. ...

Rotation is when we rotate the image by a certain degree. ...

Reflection is when we flip the image along a line (the mirror line). ...

Dilation is when the size of an image is increased or decreased without changing its shape.

5 0
3 years ago
Help please im marking brainliest
Strike441 [17]

The surface area of the triangular prism is of 140 cm².

<h3>What is the surface area of a prism?</h3>

It is the sum of the areas of all faces of a prism. In this problem, the prism has these following faces:

  • One rectangle of dimensions 8 cm and 6 + 4 + 5 = 15 cm.
  • Two right triangles with sides 4 cm and 5 cm.

For a rectangle, the area is given by the multiplication of the dimensions, hence:

Ar = 8 x 15 = 120 cm²

For each right triangle, the area is given by half the multiplication of the sides, hence:

At = 2 x 0.5 x 4 x 5 = 20 cm².

Then the surface area of the prism is:

S = 120 cm² + 20 cm² = 140 cm².

More can be learned about surface area at brainly.com/question/28123954

#SPJ1

3 0
2 years ago
Yellowstone National Park is a popular field trip destination. This year the senior class at High School A and the senior class
STALIN [3.7K]

Answer:

Your answer is.....

A Van carries 15.5 or about 16 students

A bus carries 20 students

Mark it as brainlist answer . follow me for more answer.

Step-by-step explanation:

8 0
3 years ago
The two-way table shows the distribution of book style to genre. Miguel claims that given that the book is paperback (PB) does n
Solnce55 [7]

The claim of Miguel is correct, as the two events are independent because P(NF|PB) = P(NF).

<h3>What is conditional probability?  </h3>

The conditional probability is the happening of an event, when the probability of occurring of other event is given.

P(A|B)=\dfrac{P(A\cap B)}{P(B)}

The probability of event A, given that the event B is occurred.

Independent events are those events whose occurrences do not depend on the other events.

The two-way table shows the distribution of book style to genre is given as,

The first column has entries paperback, hardcover, total.

The second column is labeled Fiction with entries     20,   10,   30.

The third column is labeled nonfiction with entries    60,   30,  90.

The fourth column is labeled total with entries           80,  40,  120.

Miguel claims that given that the book is paperback (PB) does not affect the outcome that the book is nonfiction (NF).

Suppose that two events are denoted by A and B. They are said to be an independent event if and only if:

P(A \cap B) = P(A)P(B)

Put the values as,

\dfrac{60}{120}=\dfrac{80}{120}\times\dfrac{90}{120}\\\dfrac{1}{2}=\dfrac{1}{2}

As both the values are equal. Thus, the claim of Miguel is correct because the two events are independent because P(NF|PB) = P(NF).

Learn more about the probability here;

brainly.com/question/24756209

Learn more about the independent events here;

brainly.com/question/12700357

4 0
2 years ago
Read 2 more answers
Other questions:
  • linear equations can be presented in multiple ways, one in which is called standard form. An equation in standard form will look
    6·2 answers
  • Subtract: (-1) - 9 8 10
    9·1 answer
  • A bookstore sells used books at 40% discount off the regular price of the book when it was new. The price of a used book is 18$.
    13·1 answer
  • 11 more than twice a number has the same value as 8 times the difference of the number and 5
    12·1 answer
  • What is the step of it
    10·2 answers
  • 25°<br> y<br> 30°<br> X = [ ? 1°<br> Enter
    14·2 answers
  • PLEASE HELP And show work if so thank you so much
    7·1 answer
  • Which statements describe the data in the bar graph? Check all that apply.
    14·1 answer
  • Who can help me with this??? it's for a grade
    8·2 answers
  • Point p is on a unit circle. Solve for the coordinates of p​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!