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

HELP 5th Grade Science
How long was the first thanksgiving festivities?
2x + y = -2 x + y = 5 The x-coordinate of the solution to the system shown is _____.
snow was quickly piling up on the ground wind howled through trees karen wrapped a blanket around her and sighed as she watched the snow through her bedroom win
What is the solution of the system using the substitution method? y + 7 = 3x 6x - 2y = 12
Why did President Truman fire General MacArthur during the Korean War?
Why did the British General lose the battle of Saratoga?
A example for simile plz
For the data in the table does y vary directly with x? If it does write an equation for the direct variation X Y 16 4 32 16 48 36 A)yes; y=2x B)yes; y=1/4x C)
What cell shape might increase the surface area and decrease the volume?