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
Given the set of vertices, determine whether parallelogram ABCD is a rhombus, rectangle or square. List all that apply. A(7,-4),
Sloan [31]

Given:

Vertices of a parallelogram ABCD are A(7,-4), B(-1,-4), C(-1,-12), D(7, -12).

To find:

Whether the parallelogram ABCD is a rhombus, rectangle or square.

Solution:

Distance formula:

D=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}

Using distance formula, we get

AB=\sqrt{(-4-(-4))^2+(-1-7)^2}

AB=\sqrt{(-4+4)^2+(-8)^2}

AB=\sqrt{0+64}

AB=8

Similarly,

BC=\sqrt{(-1-(-1))^2+(12-(-4))^2}=8

CD=\sqrt{(7-(-1))^2+(-12-(-12))^2}=8

AD=\sqrt{(7-7)^2+(-12-(-4))^2}=8

All sides of parallelogram are equal.

AC=\sqrt{(-1-7)^2+(-12-(-4))^2}=8\sqrt{2}

BD=\sqrt{(7-(-1))^2+(-12-(-4))^2}=8\sqrt{2}

Both diagonals are equal.

Since, all sides are equal and both diagonals are equal, therefore, the parallelogram ABCD is a square.

We know that, a square is special case of rectangles and rhombus.

So, parallelogram ABCD is a rhombus, rectangle or square. Therefore, the correct option is c.

7 0
3 years ago
Enter the number in standard form.<br> 4.78 · 10-1
kogti [31]
The answer is 46.8
Plz mark me Brainly
8 0
3 years ago
Read 2 more answers
A polynomial p has zeros when I = 0.2 = -
Rainbow [258]

Answer:

p(x) = (5x - 1) (x + 3)

Step-by-step explanation:

I apologize if I couldn't answer correctly, the question was a bit hard to understand because of the formatting.

Also I didn't see my answer in the list of answer choices but here it is:

if the polynomial has zeros at 0.2 and -3 the equation would have to be:

p(x)=(x-0.2)(x+3)

This is because plugging either of those numbers into the polynomial would cause it to equal 0.

(x-0.2) can be simplified by multiplying everything in the parenthesis by 5, getting rid of all of the decimals, making the final answer:

p(x) = (5x - 1) (x + 3)

5 0
3 years ago
PLEASE HELP!
ELEN [110]

Answer:

Colin's mean score = 17.10

The new mean is 18.00

Step-by-step explanation:

Given scores: 31, 10, 26, 16, 28, 31, 9, 11, 8, 1

number of terms: 10

mean is calculated by given formula = sum of all the data set/ number of terms in the data set.

mean for the 10 scores = (31+ 10+ 26+ 16+ 28+ 31+ 9+ 11+ 8+ 1 )/10

                                       = 171/10 = 17.1

Colin's mean score = 17.10

____________________________________________

runs scored by Colin in 11th match = 27

number of terms: 11

new mean = new sum /number of terms

new mean = (old sum score + 27)/11 = (171+27)/11

new mean = 198/11 = 18

The new mean is 18.00

3 0
3 years ago
What is the answer to -3 1/2 divided by 1 1/4
Elenna [48]
The Answer is -2 4/5
4 0
4 years ago
Other questions:
  • I can’t solve this. Please explain!
    14·2 answers
  • If f(x) = (1/9)(9^x) what is f(3)
    15·2 answers
  • I can’t get the answer and I don’t get it?
    11·2 answers
  • Which relation is a function? {(1, 2), (2,4), (−1, 2), (0,3)}
    7·1 answer
  • 0.01x - 0.3y = 1
    14·2 answers
  • Find the value of y.
    15·1 answer
  • Help plz<br> Solve for f.<br> 4(f + 2) = 16
    6·1 answer
  • Can someone plssss solve number 54?????i need this
    7·1 answer
  • PLZ help me with this question
    6·1 answer
  • A mini-golf course is determining the par score for each of its holes. The dot plot shows the number of strokes required to plac
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!