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

What military strategy defeated Cornwallis at Yorktown?
what is the phenotype of a heterozygous person using T for tall and t for short
Convert 3/11 into a percent?
Convert 3/11 into a percent?
Dennis had a piece of rope that was 2.7 m long. He cut the rope into 3 equal pieces. Was each piece of rope greater than or less than 1 m?
what is the phenotype of a heterozygous person using T for tall and t for short
please solve the following equation. x-6x=56
What military strategy defeated Cornwallis at Yorktown?
How do you use implicit differentiation to find x^2+3xy+y^3=10
each year the gardners plant 7/8 of an acre with tomatoes. They sell half of what they grow at a roadside stand. What part of an acre do the gardeners use for t