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
Please help me!!
Ratling [72]

Answer:

E=1/2mv2, v/10./17

Step-by-step explanation:

<h2>i need brainlest <3</h2>
4 0
3 years ago
What number has factors that add up to thirty
NNADVOKAT [17]
29 = 1 * 29
1 + 29 = 30
thus answer is 29
5 0
3 years ago
A moon's physical diameter is about 3800.0 km, and its orbital distance from its planet varies between 360,000 km and 430000.0 k
Paul [167]

Answer:

c

Step-by-step explanation:

8 0
3 years ago
The points (0 1) and (1 4) are contained in the graph of an equation with only two variables x and y
Blababa [14]

The line that passes through (0 1) and (1 4) is a linear equation

The equation of the points is y = 3x + 1

<h3>How to determine the equation of the points?</h3>

The points are given as:

(x,y) = (0 1) and (1 4)

Start by calculating the slope (m)

m = (y₂ - y₁)/(x₂ - x₁)

So, we have:

m = (4 - 1)/(1 - 0)

Evaluate

m = 3

The equation is then calculated as:

y = m(x - x₁) + y₁

This gives

y = 3(x - 0) + 1

Evaluate the product

y = 3x + 1

Hence, the equation of the points is y = 3x + 1

Read more about linear equations at:

brainly.com/question/1884491

7 0
2 years ago
At a certain university, 42% of the students are women, and 18% are engineering majors. Of the engineers, 22% are women. If a st
Vsevolod [243]

Answer: 0.5604

Step-by-step explanation:

Let A represents the students who are women and B represents the students who are engineering majors.

Then , we have given that P(A)=0.42\ ;\ P(B)=0.18\ ;\ P(A|B)=0.22

By formula , P(A\cap B)=P(A|B)\times P(B)=0.22\times0.18=0.0396

Using formula, \text{P(A or B)=P(A)+P(B) - P(A and B)}, we have

\text{P(A or B)}=0.42+0.18-0.0396=0.5604

Hence, the probability that the selected person is either a woman or an engineering major = 0.5604

8 0
3 years ago
Read 2 more answers
Other questions:
  • How to right a precent of 53 over 200
    11·1 answer
  • Evaluate. Write your answer as a fraction or whole number without exponents. 7^–1 =
    15·1 answer
  • Which of the following statements indicates that parallelogram QRST is similar to parallelogram DEFG?
    15·1 answer
  • Please hurry~20 points
    13·1 answer
  • the choices are Is the number of gallons of water in the bathtub a function of time? 1) Yes because each t value is paired with
    7·2 answers
  • In 2011, the average daily temperature in Darrtown was 65°F. In 2012, the average daily temperature increased by 3% but then dec
    9·2 answers
  • PLEASE HELP ASAP <br><br> x^2-5x
    15·2 answers
  • Help please! Thank you! :)
    9·1 answer
  • A shop tech earns a base pay of ​$19.68 per​ hour, plus​ "time-and-a-half" for overtime​ (time exceeding 40​ hours). If he works
    12·1 answer
  • 2 ACTIVITY: Estimating a Percents
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!