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
valentinak56 [21]
3 years ago
13

Let a "binary code" be the set of all binary words, each consisting of 7 bits (i.e., 0 or 1 digits). For example, 0110110 is a c

odeword in this code.
a) How many different codewords are there?
b) How many codewords contain exactly four 1’s? c) How many codewords contain at most two 1’s?
Mathematics
2 answers:
Dmitry_Shevchenko [17]3 years ago
8 0

Answer:

a) 128 codewords

b) 35 codewords

c) 29 codewords

Step-by-step explanation:

a) Each 7 bits consist of 0 or 1 digits. Therefore the first bit is two choices (0 or 1), the second bit is also two choices (0 or 1), continues this way till the last bit.

So total number of different code words in 7 bits is 2×2×2×2×2×2×2 = 2⁷ = 128

There are 128 different codewords.

b) A code word contains exactly four 1's this means that  it has four 1's and three 0's . Therefore, in 7 bits, we have four of the same kind and three of the same kind. Hence, total number of code words containing exactly four 1's =7!/(4!*3!) = 35 codewords

c) number of code words containing at most two 1's  = codewords containing zero 1's + words containing one 1's + words containing two 1's

Now codewords containing zero 1's = 0000000 so 1 word

Codewords containing one 1's = 1000000,0100000,0010000,0001000,0000100,0000010,0000001. That's seven words

Codewords containing two 1's means word containing two 1's and five 0's. So out of seven, two are of one kind and five are of another kind

Therefore, the total number of such words=7!/(2!*5!)=21

Hence, codewords having at most two 1's = 21+7+1 =29 codewords

mylen [45]3 years ago
5 0

Answer:

a) 128 Code words

b) 35 Code words

c) 29 Code words

Step-by-step explanation:

There are 7 bits and each of the bit can either be 0 or 1.

so the first bit can be any of the 2 choices.

The second bit can be any of the 2 choices independent of the first one.

and so on.

a) so total number of different code words is 2*2*2*2*2*2*2 =2⁷ =128 Code words

b) a code word containing exactly 4 1's implies the code word has 4 1's and 3 0's

Therefore, out of 7 bits 4 are of same kind and 3 are of another kind

hence total number of such code words = 7!/(4!*3!) = 35 Code words

c) number of code words containing at most 2 1's

=words containing 0 1's + words containing 1 1's + words containing 2 1's

words containing 0 1's =0000000 so 1 word

words containing 1 1's=1000000,0100000,0010000,0001000,0000100,0000010,0000001 so 7 words

words containing 2 1's means word containing 2 1's and 5 0's so out of 7 2 are of one kind and 5 are of another kind

so total number of such words=7!/(2!*5!)=21

hence words having at most 2 1's=21+7+1= 29 Code words

You might be interested in
Angle A=3x-10 Angle C=45 Angle D=2x+10 <br> Please solve for x
kakasveta [241]

Answer:

27°

Step-by-step explanation:

Step 1:

∠A + ∠C + ∠D = 180°     Sum of a Δ

Step 2:

3x - 10 + 45 + 2x + 10 = 180        Input all values

Step 3:

5x + 45° = 180°     Combine Like Terms

Step 4:

5x = 135°        Subtract 45° on both sides

Step 5:

x = 135° ÷ 5       Divide

Answer:

x = 27°

Hope This Helps :)

8 0
4 years ago
Your annual salary is $61,061.83 what is your semimonthly salary
bazaltina [42]
This isn’t hard, but I’ll help you. I won’t give the answer though. Simply do 61,061.83 divided by 12. That answer of that, divide that by two and you should have your answer
7 0
3 years ago
I need help please thank you
Dafna11 [192]

Answer:

See attachment

Step-by-step explanation:

We can graph this line using the equation given to us. The equation is in slope-intercept form, y=mx+b. In this form, m = slope and b = the y-intercept.

So, we can tell that the slope is -\frac{1}{5} and the y-intercept is (2,0).

We begin by plotting on the graph the y-intercept, (2,0).

The slope also equals the \frac{rise}{run}. The slope is negative, so the line will slope down. From the point we have plotted, we will <em>rise</em> negative 1 unit. This means to move down<em> </em>1 unit. From this point, we will <em>run</em> 5 units. Because the line is negative, we will move 5 units to the left, not the right. We land on point (5,1).

Now, we will draw a line from these two points. This is the line shown in the equation.

Good luck ^^

3 0
3 years ago
The diameter of a<br> spherical ball is 30 cm, the volume<br> of the ball, in cube is?
Travka [436]

Answer:

14,130 cm³

Step-by-step explanation:

V = 4/3πr³

   = 4/3 x 3.14 x 15 x 15 x 15

   = 20 x 225 x 3.14

   = 706.5 x 20

   = 14,130 cm³

7 0
3 years ago
At 10:57 A.M. A submarine was at a depth of feet. Its depth then changed at a rate of -8 feet per minute. What was its depth at
Tatiana [17]

Answer:

<h3>48 feet</h3>

Step-by-step explanation:

First we need to get the total minutes used by the submarine from  10:57 A.M to  11:03 A.M. The total minutes used within the specified period of time is 6 minutes.

If its depth then changed at a rate of 8 feet per minute, the submarine depth after 6 minutes will be expressed as shown;

8 feet = 1minute

x feet = 6 minutes

cross multiply;

x * 1 = 8 * 6

x = 48 feet

Hence the submarine depth at 11.03AM is 48 feet

4 0
3 years ago
Other questions:
  • A point is chosen randomly on PS. Identify the probability that the point is on RS. Help, please?!
    9·1 answer
  • Gabe can now 2 1/2 acres oflawn in 1 day.how many acres of lawn can he now in 2 1/3 days?
    9·1 answer
  • What is 72% written as a fraction? (in simplest form)
    13·2 answers
  • The ratio of the sale price of a jacket to the original price is 3:4 the original price is $64 what is the sale price
    14·2 answers
  • The measure of the supplement of abc equals 180 minus m Abc this is the definition of supplement or complement angle
    14·1 answer
  • Find the inequality please
    13·1 answer
  • Enter a numerical expression for the word expression.<br> 11 decreased by 8
    15·1 answer
  • Amanda wants to save $400 in 8 weeks. She plans to save $100 each week. Will that be enough to reach
    15·1 answer
  • A signal can be sent from one location to another by running different colored flags up a flagpole, one above the other. There a
    8·1 answer
  • Use the line segments below to create a triangle with
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!