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 is encapsulation and what are its advantages? a) Encapsulation is hiding the internal state of an object and only exposing the necessary functionality. Adv
What are the short junk-collecting aliens on Tatooine called?
At least how often, the DO destroys spoiled checks locally by shredding or burning?
What did the speaker remark to Lucy about the photo of their child as a blastocyst taken just before implantation?
In 1959, after their defeat, Labour decided they needed to focus not just on social equality but what other kind of equality too?
The visible part of the spectrum occupies the region between approximately ________?
What is the principle of justice in transfer according to Nozick's entitlement theory?
Venice. 117____islands joined together became a thriving center of commerce. _____from the Middle East. _____from India. And key to its wealth, _____from Africa
What occurs to blood pressure when there is a loss of blood volume?
Who kills Tanalan in battle and wins Oathbringer in The Rift?a) Dalinarb) Kaladinc) Adolind) Shallan