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

Evidence from the third paragraph suggests that recycling can save energy why might businesses want to save energy?
WILL GIVE BRAINLIST!!! How are population increases affect water resources in Texas?
Social change can be explained by using either the cyclical, evolutionary, equilibrium, or conflict theory. T F
Why do computers use binary code?
1) What did Israel do at 10AM today in memory of the six million Jews killed during the Holocaust? a)
I need helpp!!! I need a poem talking about the Declaration of Independence.
Exercice 4: Le cerveau humain est composé de 100 milliards de neurones. À partir de le cerveau humain est composé de 100 milliard de neurones.a partir de 30 ans
Jaylen and six of her younger siblings have ages that are consecutive. When they moved from San Francisco to Chicago, their ages (all seven of them) added up to
What causes a “white-out” in a blizzard ?
Joey realizes that he has charged too much on his credit card and has racked up $5,100 in debt. If he can pay $125 each month and the card charges 18 percent AP