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
3. The Parkers spent $142.78, $145.91, and $141.15 in 3 visits to the
vladimir2022 [97]

Answer:

$20.16

Step-by-step explanation:

all the costs from the trips added up is $429.84, so subtract that from $450.00 and that's the answer

4 0
3 years ago
A baby pool is shaped like a short, wide cylinder and holds 52 ft3 of water. A medium pool measures 4 times the height and width
otez555 [7]
The volume of a cylinder is the area of the base, times the height. 
<span>The area of the circular base is, of course, π times the square of its radius. </span>
<span>So the volume of a cylinder, V, is </span>
<span>V = π h r^2 </span>
<span>where h is the height and r is the radius. </span>

<span>If we multiply the height by 3, the new height is 3h. </span>
<span>If we multiply the width by 3, that multiplies the radius (which is half the width) by 3 also. </span>
<span>So the new volume would be </span>
<span>π (3h) (3r)^2 = π (3h) (9r^2) = 27π h r^2 </span>
<span>which is 27 times π h r^2, the volume of the smaller pool. But we know that volume is 37 cubic feet. </span>

<span>So the volume of the larger pool is </span>
<span>27 * 37 cubic feet = 999 cubic feet [answer B] </span>


<span>This is an instance of a general rule: </span>
<span>If we multiply ALL the linear dimensions of an object by a factor F, </span>
<span>while keeping the shape the same (often termed "similar" in geometry), </span>
<span>that multiplies the volume by F^3 (the cube of F). </span>

<span>It also multiplies the surface area by F^2. </span>

<span>These rules are very useful, especially when you hit these questions on an exam under time constraints. If you know them, you'll save time you can use to work other questions.</span>
3 0
3 years ago
Some fractions can give us whole numbers by dividing the numerator by the denominator . Give the whole number for each fraction.
Flura [38]

Answer: 6,5,1,3,5,4,6,8,9

Step-by-step explanation:

All in order

4 0
3 years ago
Read 2 more answers
If there are 48 oranges then how many apples are there?
UkoKoshka [18]
If this is a actual question then you are missing parts of it! Please leave a comment with the full question and I would be glad to help you out! If looking at what is given then 0 apples as all that is stated is only 48 oranges and no apples.
5 0
3 years ago
Read 2 more answers
In a sample of 400 voters, 360 indicated they favor the incumbent governor. The 95% confidence interval of voters not favoring t
Andru [333]

Answer:

0.071 to 0.129

Step-by-step explanation:

In a sample with a number n of people surveyed with a probability of a success of \pi, and a confidence interval 1-\alpha, we have the following confidence interval of proportions.

\pi \pm z\sqrt{\frac{\pi(1-\pi)}{n}}

In which

z is the zscore that has a pvalue of 1 - \frac{\alpha}{2}.

For this problem, we have that:

In a sample of 400 voters, 360 indicated they favor the incumbent governor. This means that 400-360 = 40 do not favor the incumbent governor. So n = 400, \pi = \frac{40}{400} = 0.1

95% confidence interval

So \alpha = 0.05, z is the value of Z that has a pvalue of 1 - \frac{0.05}{2} = 0.975, so Z = 1.96.

The lower limit of this interval is:

\pi - z\sqrt{\frac{\pi(1-\pi)}{n}} = 0.10 - 1.96\sqrt{\frac{0.10*0.90}{400}} = 0.071

The upper limit of this interval is:

\pi + z\sqrt{\frac{\pi(1-\pi)}{n}} = 0.10 + 1.96\sqrt{\frac{0.10*0.90}{400}}= 0.129

The correct answer is:

0.071 to 0.129

7 0
3 years ago
Other questions:
  • What is the area of the triangle. in square centimeters? reward is brainly
    12·1 answer
  • Help me for number 5 &amp; 7 not 6 I need work PLZ!!!!!!!!!!
    15·1 answer
  • A painter spends three hours working on a painting. A sculptor spends 2 2/3 as long working on a sculpture. How long does the sc
    8·1 answer
  • What is the median for the set of data?<br><br> A. 70<br> B. 71<br> C. 72<br> D. 74
    13·2 answers
  • When i was 18 years old, my sister was half my age. Now I am 82 years. How old is my sister now?​
    12·2 answers
  • What pattern do you notice in the numbers below?
    14·2 answers
  • Jenny read 150 pages of a book in 5 hours. Which rate is proportional to the rate at which Jenny read?
    6·1 answer
  • What is the solution to the inequality
    15·1 answer
  • 20 points answer this randomly!<br><br> Birthday?
    6·1 answer
  • 2x+y=-4<br><br> find x and y plzzzzz
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!