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
PLEASE ANSWER ASAP FOR BRIANLEST DUE IN 3 MIN!!!!!!!!!!!!!!!!!!!!!!!!!!!
bezimeni [28]

Answer: 3rd one

Step-by-step explanation:

5 0
3 years ago
A central angle in a circle with a radius of 3cm intercepts an arc with a length of 6cm. What is the radian measure of the centr
Nesterboy [21]
The correct answer for the question that is being presented above is this one: 

Radian Measure can be acquired by using the formula
Radian Measure = arc length / radius
Radian Measure = 6 cm / 3 cm
Radian Measure = 2 rad.
4 0
3 years ago
-X/10 = 1/5<br> What is the answer
Georgia [21]
The answer is x=-2

Solve for X by simplifying both sides of the equation, then isolating the variable.
7 0
3 years ago
How are 2-D and 3-D objects related to each other in real world​
stich3 [128]

Answer:

You can see 2-D flat shapes on the faces of 3-D objects.

For example: You go to the store and you see a box,

the box has 6 faces. The bottom of the box is one of It's faces which is 2-D.

Step-by-step explanation:

8 0
3 years ago
Problem Set
guapka [62]

Answer:idk

Step-by-step explanation:

4 0
4 years ago
Other questions:
  • Lower quartile of 6 8 10 12 14 15 15 20
    14·1 answer
  • What is the sum of 1.57 and 6.88?
    14·1 answer
  • If a person is paid $510 for 31 hours of work, what is the person's hourly wage?
    11·2 answers
  • In his free time, Gary spends 13 hours per week on the Internet and 9 hours per week playing video games. If Gary has five hours
    9·1 answer
  • Lisa has developed a new product, and knows that the graph of function R models her revenue from selling the item, after deducti
    6·2 answers
  • Find the value of y.
    12·1 answer
  • YALL HELP!!! YALL HELP!!! YALL HELP!!! YALL HELP!!! YALL HELP!!!
    9·2 answers
  • Identify the value of p for the parabola.<br> <img src="https://tex.z-dn.net/?f=y-5%3D%5Cfrac%7B1%7D%7B16%7D%20%28x-3%29%5E%7B2%
    10·2 answers
  • 9.888 a natural number
    12·1 answer
  • I need help SOO bad Help me please!!!!!
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!