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

Two parabolas are the graphs of the equations $y=2x^2-10x-10$ and $y=x^2-4x+6$. give all points where they intersect. list the points in order of increasing $x$
Which stage in the policy-making process is government recognition that a problem is worthy of consideration for governmental action?
In geographical context , the term projection refers to what?
What is one U.S. Middle East policy that has remained consistent since the late 1940s?
It is possible to drink too much and A , slow heart rate and breathing B, risk coma or death C , choke or suffocate on vomit D , all of above
What is the speed of an object that moves 100 km in 45 minutes?
Find the distance between the points (2, -3) and (5, -4)
Which process of soil erosion is being prevented by the activity shown below? a-Gravity b-Glaciers c-Moving water
Eric plans to rent a Beach House for a week. He has a coupon for 20% off the daily base rate of $200. He will also have to pay an additional $20 a day for utili
A line has a slope of -3/4 and passes through the point (–5, 4). Which is the equation of the line? a)y=-3/4x+1/4 b)y=-3/4x+4 c)y=-3/4x-2 d)y=-3/4x-1/4