xxchosenxx1012 xxchosenxx1012
  • 19-01-2018
  • Mathematics
contestada

6
c.find the domain and range of the function that assigns to a bit string the number of ones minus the number of zeros in the string

Respuesta :

mathmate
mathmate mathmate
  • 19-01-2018
Let bitstrings have a maximum length of L bits.
and f(x)=number of one-bits less number of zero-bits.
x=length of bitstring in bits.

Case 1: x=L, all L bits are ones
Then f(x)=L
Case 2: x=L, all L bits are zeroes
Then f(x)=-L

Then 
dom f(x)=[0,L]
range f(x) = [-L,L]


Answer Link

Otras preguntas

Which side of the heart carries poorly oxygenated (deoxygenated) blood? left or right
Please help. with this question ​
A scientist performs an experiment to see if acids have an effect on the health of a particular type of plant. Three sets of plants were treated with various ac
SOLVE THE FIRST ONE! TEN POINTS FOR THE BRAINLEIST:)))
Acompany makes toy plastic soccer balls each with a radius of 3 inches. How many square inches of plastic does the company need to make 5 toy soccer balls? Use
Based on a sample of 100 employees a 95% confidence interval is calculated for the mean age of all employees at a large firm. The interval is (34.5 years, 47.2
What? ✋ kinda confused tbh... Explain this if you want ♡︎
Solve x + 7 > 15 or 2x - 1 < 3.
The type of bond between two atoms of an element with atomic number 7 is?
What nutrient is found in the milk and milk products food group and must be in our bodies before we are 20 years old? * 5 points Sodium Protein Calcium